0 Replies Latest reply on Mar 21, 2007 9:40 AM by Rafael Rech

    Calling a bean in another JBoss

    Rafael Rech Newbie

      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