[jboss-user] [EJB 3.0] - Re: How to Call one EJB from another remotely?
artd
do-not-reply at jboss.com
Wed May 23 07:31:14 EDT 2007
Check the jndi path for your remote interface through the jmx console..
This works for me:
| Properties properties = new Properties();
| properties.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
| properties.put("java.naming.factory.url.pkgs","=org.jboss.naming:org.jnp.interfaces");
|
| properties.put("java.naming.provider.url","remotehostname:1099");
| Context context = new InitialContext(properties);
| SomeRemoteInterface oRemote= (SomeRemoteInterface)context.lookup("/myejbs/remote/SomeRemoteBean");
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047869#4047869
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047869
More information about the jboss-user
mailing list