View Single Post
  #3 (permalink)  
Old 10-07-2005
brian brian is offline
Registered User
 
Name: brian whitney
Organization: boulder research and development
Project: MarketBank
 
Join Date: Oct 2003
Posts: 119
Good point. the ObjectOutputStream is constructed this way:

ServerSocket serverSocket = new ServerSocket( somePort );
Socket socket = serverSocket.accept();
ObjectOutputStream oos = new ObjectOutputStream( socket.getOutputStream() );

.....
while(...)
oos.writeObject(...)

The ObjectInputStream construction:

Socket socket = RMISocketFactory.getDefaultSocketFactory().createS ocket( InetAddress.getLocalHost().getHostName, port );
...
ObjectInputStream ois = new ObjectInputStream( socket.getInputStream() );
...

while( ... )
ois.readObject();

I suppose we can experiment with setting socket buffer sizes, but wanted your opinion if you thought Ice might be better is this situation for some reason. This connection will always be Java<->Java.

THanks again,

Brian
__________________
Brian Whitney
Boulder Research and Development
www.robotrade.com
Reply With Quote