problem calling a remote ejb from a servlet in a cluster env
gdevito Jun 9, 2005 1:21 PMI've three jboss instances on different machine in the same network:
1. Jboss (A) running a web application
2. Jboss (B) running some ejbs
3. Jboss (C) running some ejbs
Jboss (B) and Jboss (C) are in the same partition.
In a servlet, running in the first jboss intance (A), I call an ejb
deployed in the cluster (B,C) using autodiscovery (using jnp.port,
jnp.partitionName etc..).
You suppose the Jboss C responds to this call (made from servlet).
If the server C goes down the next call to this ejb throws this error :
java.rmi.ConnectException: Connection refused to host: serverC; nested exception is:
java.net.ConnectException: Connection refused
at sun.rmi.transport.tcp.TCPEndpoint.newSocket()Ljava.net.Socket;(Optimized Method)
at sun.rmi.transport.tcp.TCPChannel.createConnection()Lsun.rmi.transport.Connection;(Optimized Method)
at sun.rmi.transport.tcp.TCPChannel.newConnection()Lsun.rmi.transport.Connection;(Optimized Method)
at sun.rmi.server.UnicastRef.invoke(Ljava.rmi.Remote;Ljava.lang.reflect.Method;[Ljava.lang.Object;J)Ljava.lang.Object;(Optimized Method)
at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(Optimized Method)
at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(JRMPInvokerProxy.java:118)
at org.jboss.invocation.InvokerInterceptor.invokeInvoker(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(InvokerInterceptor.java:227)
at org.jboss.invocation.InvokerInterceptor.invoke(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(InvokerInterceptor.java:167)
at org.jboss.proxy.TransactionInterceptor.invoke(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(TransactionInterceptor.java:46)
at org.jboss.proxy.SecurityInterceptor.invoke(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(SecurityInterceptor.java:55)
at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(StatelessSessionInterceptor.java:97)
at org.jboss.proxy.ClientContainer.invoke(Ljava.lang.Object;Ljava.lang.reflect.Method;[Ljava.lang.Object;)Ljava.lang.Object;(ClientContainer.java:86)
Anyone could help me ?
BEST REGARDS.