This content has been marked as final.
Show 1 reply
-
1. Re: How does the client know the Network connection is drope
adrian.brock May 24, 2004 9:50 AM (in response to cold_lin)It depends upon the protocol used.
e.g. if you are using the default RMI method, you should check the options available
in the jdk documentation.
You should also check your OS settings.
Alternatively, where relevant, JBoss allows you to override the socket creation
so you can configure whatever you like using client/server socket factories.
e.g. for RMI in conf/jboss-service.xml<!-- RMI/JRMP invoker --> <mbean code="org.jboss.invocation.jrmp.server.JRMPInvoker" name="jboss:service=invoker,type=jrmp"> <attribute name="RMIObjectPort">4444</attribute> <attribute name="ServerAddress">${jboss.bind.address}</attribute> <!-- <attribute name="RMIClientSocketFactory">custom</attribute> <attribute name="RMIServerSocketFactory">custom</attribute> <attribute name="SecurityDomain">ssl-domain-name</attribute> --> <depends>jboss:service=TransactionManager</depends> </mbean>
uncomment and replace custom with your implementation, e.g. one
that sets a read timeout on the socket.
You might also try java 1.4 which is a lot better than previous versions
at detecting network problems.