Thank you for you Adrian, I don't understand your answer in detail but I am 
going to have a look at this ExceptionListener.

Nonetheless, here is the scenario:

  | *  Local JBoss and Remote JBoss are started
  | *  Remote JBoss is stopped and then restarted
  | *  Local JBoss try to send JMS message to a Queue located on the Remote 
JBoss. This Queue is accessed through an ExternalContext MBean (see my first 
post)
  | 
And now here is the stack trace. The problem doesn't come from the 
ConnectionFactory but from the Queue I got from JNDI registry through the 
ExternalContext :
2005-03-14 08:23:08,898 ERROR [org.jboss.ejb.plugins.LogInterceptor] 
TransactionRolledbackLocalException in method: public abstract void 
com.mycompany.myproject.bean.MyServiceLocal.sendMessage(int,java.lang.String,java.lang.String)
 throws javax.jms.JMSException, causedBy:
  | com.mycompany.myproject.ServiceLocatorException: Objet not found in the 
JNDI registry: java:comp/env/jms/Queue
  |     at com.mycompany.myproject.ServiceLocator.lookup(ServiceLocator.java:38)
  |     at 
com.mycompany.myproject.ServiceLocator.getObject(ServiceLocator.java:26)
  |     at 
com.mycompany.myproject.bean.MyServiceBean.getQueue(MyServiceBean.java:84)
  |     at 
com.mycompany.myproject.bean.MyServiceBean.sendMessage(MyServiceBean.java:105)
  | (... cut here ...)
  | Caused by: javax.naming.NamingException: Could not dereference object [Root 
exception is javax.naming.CommunicationException [Root exception is 
java.rmi.NoSuchObjectException: no such object in table]]
  |     at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:999)
  |     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629)
  |     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:658)
  |     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:520)
  |     at javax.naming.InitialContext.lookup(InitialContext.java:347)
  |     at com.mycompany.myproject.ServiceLocator.lookup(ServiceLocator.java:36)
  |     ... 66 more
  | Caused by: javax.naming.CommunicationException [Root exception is 
java.rmi.NoSuchObjectException: no such object in table]
  |     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:663)
  |     at javax.naming.InitialContext.lookup(InitialContext.java:351)
  |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |     at java.lang.reflect.Method.invoke(Method.java:324)
  |     at 
org.jboss.naming.ExternalContext$CachedContext.invoke(ExternalContext.java:528)
  |     at $Proxy41.lookup(Unknown Source)
  |     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
  |     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:520)
  |     at javax.naming.InitialContext.lookup(InitialContext.java:347)
  |     at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:993)
  |     ... 71 more
  | Caused by: java.rmi.NoSuchObjectException: no such object in table
  |     at 
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
  |     at 
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
  |     at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
  |     at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
  |     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:544)
  |     ... 82 more
  | 

Why do I get a NamingException given that the remote JBoss with the referenced 
Queue has restarted?

Again thanks for your help, it is very appreciated!
GÃrald

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

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


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to