1 Reply Latest reply on Sep 23, 2014 4:25 AM by sulabh.agarwal

    Problem with connecting EJB remotely from JBOSS to JBOSS without using outbound-connection

    sulabh.agarwal

      Hi,

       

      I am facing a problem while connecting EJB remotely where EJB client (consumer) and EJB producer both are running on different JBOSS servers. Where there are many EJB producers and one EJB client and client needs to connect to different EJB producer based on the connection details given by the user.



      I have gone through below link which actually works but the requirement is, there will many EJB producers running on different locations on JBOSS and client should connect dynamically to these different EJB producers based on the hostIP and connection details.



      https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+server+instance?_sscc=t



      Would be great if anyone can help.

       

      Thanks.

        • 1. Re: Problem with connecting EJB remotely from JBOSS to JBOSS without using outbound-connection
          sulabh.agarwal

          I am able to give more that one connection in jboss-ejb-client.xml like below and jboss is able to handshake at the time of deployment of the jar. but still i need jboss-ejb-client.xml outside so that anyone can configure it i.e. can add more connection later without updating the jar. would be helpful, If someone has some idea about this.

           

          <jboss-ejb-client xmlns="urn:jboss:ejb-client:1.0">

               <client-context>

                  <ejb-receivers>

                      <remoting-ejb-receiver outbound-connection-ref="remote-ejb-connection"/>

                  </ejb-receivers>

              </client-context>

              <client-context>

                  <ejb-receivers>

                      <remoting-ejb-receiver outbound-connection-ref="remote-ejb-connection1"/>

                  </ejb-receivers>

              </client-context>

          </jboss-ejb-client>