[jboss-user] [EJB/JBoss] - Calling a bean in another JBoss

rafael_rech do-not-reply at jboss.com
Wed Mar 21 09:40:31 EDT 2007


Hi,
I thought I´ve posted this yesterday. Found out I haven't.
Well, I have two JBoss running. One at 10.0.0.1 and the other one at 10.0.0.2. Both have exactly the same JARs deployed to. 
I need that one of my session beans (called CentralService) be executed *always* at 10.0.0.2. 
So I have a bean (MyService) that loads CentralService using context.lookup("jnp://10.0.0.2/CentralService/remote"). But if I am at 10.0.0.1, since this bean exists at 10.0.0.1, JBoss loads the bean from the "local" server. 
Is this correct? What should I do to "centralize" the execution of a session bean without taking it of my JARs in other JBoss servers?

Thanks,
Rafael

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030232#4030232

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030232




More information about the jboss-user mailing list