[jboss-user] [Remoting] - Re: Simple Socket Server (TEXT)?

ron.sigal@jboss.com do-not-reply at jboss.com
Sat Jul 7 02:34:02 EDT 2007


anonymous wrote : One other question that cam up was how and where do we close the socket ofter the socket client has been served and sent a result back?

I take it you are asking about closing the socket on the server side?  You really shouldn't have to worry about it. 

The default socket transport behavior is for each socket to be held by a worker thread, which, after processing an invocation, sits in a read() waiting for the next invocation.  The default timeout is 60000 ms, after which the socket will be closed.  You can change the timeout by adding a "timeout" attribute:


  |            <invoker transport="socket">
  |                <attribute name="timeout">5000</attribute>
  | 

By the way, "socketTimeout" is obsolete - it really should be removed from jboss-service.xml.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061551#4061551

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061551



More information about the jboss-user mailing list