Joining single elements to open ends of tubular or hollow articles or to the ends of bars