40The party who sets the action down for trial shall, at least ten clear days before the day fixed for the trial, unless the judge directs that a shorter notice may be given, serve a notice of trial, which may be according to the form prescribed by regulation, on all lienholders who have filed their liens as required by this Act, and on all other persons having a registered charge, encumbrance or claim on the land affected by the lien, who are not parties or who, being parties, appear personally in the action; and the service on those not parties shall be personal, unless otherwise directed by the judge, who may direct in what manner the notice of trial may be served.