1 Reply Latest reply on Sep 5, 2014 4:05 AM by Wolf-Dieter Fink

    Is it possible to have more than one remoting ejb receiver element (<remoting-ejb-receiver>) in jboss-ejb-client.xml?

    bibhu nayak Newbie

      Hi

      We are having 3 jboss nodes node1,node2 and node3. Node1 will deploy ejb client and node2 and node3 will deploy ejb service. Node1 ejb client will access both Node2 and Node3 ejb services.EJB client war contains jboss-ejb-client.xml.If i remove one remoting ejb receiver element from jboss-ejb-client.xml then deployment is successfull.

      Here i am pasting content of the xml file

       

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

          <client-context>

              <ejb-receivers>

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

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

              </ejb-receivers>

          </client-context>

      </jboss-ejb-client>

       

      Here is socket bindning snippet

      <outbound-socket-binding name="remote-ejb">

                  <remote-destination host="10.60.217.32" port="4547"/>

              </outbound-socket-binding>

        <outbound-socket-binding name="remote-ejb1">

                  <remote-destination host="10.60.217.32" port="4647"/>

              </outbound-socket-binding>

       

      Remoting subsystem snippet

      <outbound-connections>

                      <remote-outbound-connection name="remote-ejb-connection" outbound-socket-binding-ref="remote-ejb" username="test" security-realm="ejb-security-realm">

                          <properties>

                              <property name="SASL_POLICY_NOANONYMOUS" value="false"/>

                              <property name="SSL_ENABLED" value="false"/>

                          </properties>

                      </remote-outbound-connection>

                      <remote-outbound-connection name="remote-ejb-connection1" outbound-socket-binding-ref="remote-ejb1" username="test" security-realm="ejb-security-realm">

                          <properties>

                              <property name="SASL_POLICY_NOANONYMOUS" value="false"/>

                              <property name="SSL_ENABLED" value="false"/>

                          </properties>

                      </remote-outbound-connection>

                  </outbound-connections>

       

      Security realm snippet

      <security-realm name="ejb-security-realm">

                      <server-identities>

                          <secret value="dGVzdDEyMw=="/>

                      </server-identities>

                  </security-realm>

       

      With above configuration my client deployment is failing.

      Please help in resolving the issue.

       

      Thanks in advance

      Bibhu