ยง 1501. Actions against persons jointly liable; service of summons; judgment. Where less than all of the named defendants in an action based upon a joint obligation, contract or liability are served with the summons, the plaintiff may proceed against the defendants served, unless the court otherwise directs, and if the judgment is for the plaintiff it may be taken against all the defendants.