Hi, I am trying to call a remote stateless session bean from another server within a servlet.
In the servlet I have: Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.HttpNamingContextFactory" ); env.put(Context.PROVIDER_URL, "http://borg:8080/invoker/JNDIFactory"); env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces"); InitialContext ic = new InitialContext(env); Object objref = ic.lookup("java:comp/env/ejb/remoteTest"); Object obj = PortableRemoteObject.narrow(objref, RemoteEJBTestHome.class); RemoteEJBTestHome testHome = (RemoteEJBTestHome)obj; testHome.create(); I have deployed the ear to both servers and when I call the servlet on one, the jndi lookup is successful. However, the bean executes in the ejb container of the local server rather than the remote one. This can be verified by the number of instances in the JMX console. How can I get the bean to execute on the remote server instead? Thanks. Peter View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3850393#3850393 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3850393 ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
