am trying to call the create() of a stateful session bean which resides on another jboss instance (but on the same machine). The lookup works ok, but when the create
is called i get java.rmi.NoSuchObjectException: no such object in table. If I call the create() from within the same jboss instance, everything works ok. Is it something to do with the rmiclass loader being disabled.
If so, how do I get it enabled.
java.util.Properties env = new java.util.Properties();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
// remote jboss server ........
env.put(Context.PROVIDER_URL, "jnp://jbsyscc6:9099");
Object objref = jndiContext.lookup("java:comp/env/ejb/chatmessages");
chatHome = (ChatMessagesHome)PortableRemoteObject.narrow(objref, ChatMessagesHome.class);
// abends here .......
chatRemote = chatHome.create();
[10:26:55,440,Default] Create com/pcl/avon/chatmessagesSysHome
[10:26:55,830,ProxyBean] TRANSACTION ROLLBACK EXCEPTION:
javax.transaction.TransactionRolledbackException: no such object in table; nested exception is:
java.rmi.NoSuchObjectException: no such object in table
at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:188)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:347)
at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:86)
at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:103)
thanks
Richard
The problem was the remote jboss server's standardjboss.xml. I had a stray ServerSocketConnection tag which I removed and hey presto it worked perfectly.