You need to create the ObjectOutputStream before you create the
ObjectInputStream. This is because when you try to create an
ObjectInputStream Java will first check if there is a corresponding
ObjectOutputStream at the other end and will wait until one is created
until it creates the ObjectInputStream. Thus, if you try to create both
ObjectInputStreams first, both copies of Java will sit there and
wait for the other application to create an ObjectInputStream. Thus,
nothing will ever happen.
Hope this helps.
Henry