Collision with join

Hi people.
I have ball connected by join like this
Image
I want to implement collision with join line. I must to bind body to this line, but join line can scale.
I need that would have the balls to collide with connections.
How to do it?
Can you use a prismatic joint with two rigid bodies?
http://img.alibaba.com/photo/51171076/Tie_Rod_Hydraulic_Cylinder.jpg

Original thread: https://box2d.org/forum/viewtopic.php?t=4073