Hello,
In one computer ejb3 appl with web client working fine but when I put client on the another host I got following errors ->
5:58:55,453 ERROR [STDERR] javax.naming.CommunicationException [Root exception is java.rmi.NoSuchObjectException: no such object in table]
15:58:55,453 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:780)
15:58:55,453 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
15:58:55,843 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialContext.java:351)
---
Here is my lookup
Hashtable environment = new Hashtable();
environment.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
environment.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
environment.put(Context.PROVIDER_URL, "jnp://some_IP:1099");
InitialContext context = new InitialContext(environment);
BeanRemote bean = (BeanRemote) context.lookup("ejb/MyBean/remote");
------
I use JBoss 4.2.2, What is the problem?
Hi,
You can use the JMX-Console to see if the EJB is corretly bind to this name.
Can you also post your SessionBean code ?