[jboss-user] [EJB 3.0] - Calling EJB3 bean from another host, fail
armen2010
do-not-reply at jboss.com
Thu Jun 26 08:03:40 EDT 2008
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?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160833#4160833
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160833
More information about the jboss-user
mailing list