-
1. client side socket timeout
mayankmit2002 Mar 19, 2011 1:01 AM (in response to mayankmit2002)Forget to mention:
Jboss AS : 4.2.3 GA
Jboss Remoting: 2.4.0 SP1
-
2. client side socket timeout
ron_sigal Apr 21, 2011 2:10 PM (in response to mayankmit2002)Hi Mayank,
Remoting has a per invocation timeout facility, but I don't believe there's any way to access it using an EJB3 proxy. The best you can do would be to set a global timeout in $JBOSS_HOME/server/$CONFIG/deploy/ejb3.deployer/META-INF/jboss-service.xml:
<mbean code="org.jboss.remoting.transport.Connector"
name="jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3">
<depends>jboss.aop:service=AspectDeployer</depends>
<attribute name="InvokerLocator">socket://${jboss.bind.address}:3873/?timeout=xyz</attribute> <<=== here
<attribute name="Configuration">
<handlers>
<handler subsystem="AOP">org.jboss.aspects.remoting.AOPRemotingInvocationHandler</handler>
</handlers>
</attribute>
</mbean>
-Ron
-
3. client side socket timeout
mayankmit2002 Apr 22, 2011 12:25 AM (in response to ron_sigal)Hello Ron,
Thanks for your reply. But this solution is not going to help me. As what we exactly want is to configure the socket time out for a particular method of ClusteredStatelessProxy.
As what we have number of calls that requires long time to get processed, but we have a heartbeat sort of call that need to be timeout if the server is not available, and this detection is to be done ASAP, let say in 200 ms.
-
4. client side socket timeout
ron_sigal Apr 22, 2011 3:04 PM (in response to mayankmit2002)Hi Mayank,
Sorry I couldn't help you. You might want to take a look at the byteman project (http://www.jboss.org/byteman), which lets you inject code into existing code. I know very little about it, but it sounds like it might be useful.
Good luck,
Ron
-
5. client side socket timeout
mayankmit2002 Apr 23, 2011 12:04 PM (in response to ron_sigal)Hello Ron,
Thanks for your reply ... Not an issue... I know we are trying something for which JBR is not designed for. We've to go for some out-of-the box solution... Thanks for suggesting Byteman project...
-
6. client side socket timeout
ron_sigal Apr 23, 2011 1:42 PM (in response to mayankmit2002)Ok, good luck.