Section 2. Except as provided in section twenty-one of chapter two hundred and eighteen, a transitory action in a district court shall be brought in a court in the judicial district where one of the parties lives or has his usual place of business or in a court, the judicial district of which is adjacent to the judicial district where one of the parties lives or has his usual place of business or, if in connection with the commencement of such an action the approval of trustee process is sought, that action shall be brought in a court in the judicial district where one of the parties or any person alleged to be trustee lives or has a usual place of business, or in a court the judicial district of which adjoins the judicial district where one of the parties or one of the alleged trustees lives or has a usual place of business; provided, however, that an action may be brought in the municipal court of the city of Boston as provided in section fifty-four of chapter two hundred and eighteen.
Said courts shall have jurisdiction of a transitory action against a defendant who is not an inhabitant of the commonwealth, if personal service or an effectual attachment of property is made within the commonwealth; and such action may be brought in any of said courts in the county where the service or attachment was made.