//ObjectInputStream objStream = new ObjectInputStream(bufStream);
//Object obj = objStream.readObject();
ObjectInput containerInput = new JBossObjectInputStream(bufStream);
TestProxy objRead = (TestProxy)containerInput.readObject();
int result = objRead.getProxy().doSomething();
BufferedOutputStream bufOut = new BufferedOutputStream(socket.getOutputStream());
JBossObjectOutputStream objOut = new JBossObjectOutputStream(bufOut);