1 Reply Latest reply on Mar 25, 2014 6:24 AM by Wolf-Dieter Fink

    Conditional Selection Among EJB Remote Hosts

    8f4xd7qigkwkp Newbie

      Using J-boss's EJB client to route from one J-boss server to another works for me with J-boss 7.2/EAP 6.1 by utilizing the "jboss-ejb-client.xml" file. But I'm interested in sending some heavier requests to a different host than the first, default server in that file. Is there any way to conditionally select among the EJB remote hosts?


      Rearranging the EJB remoting configuration is an option if it can be done with J-boss 7.2/EAP 6.1.

        • 1. Re: Conditional Selection Among EJB Remote Hosts
          Wolf-Dieter Fink Master

          If the EJB for the heavier request is unique deployed on that server you can simple add it to the ejb-client, the client decided based on the EJB name where to go.

          If you have the same EJB name a solution might be to use the 'distinct' name to make it unique, i.e. if you set the distinct name for the server in ejb3 subsystem to heavy you can call the EJB  myapp/ejb//MyBean!My with myapp/ejb/heavy/MyBean!My and the request will go to the marked server.