1 Reply Latest reply on Feb 1, 2012 2:39 AM by jaikiran

    Static ejb host to host remoting reconnect issue

    bjorn.palmqvist

      Hi,

       

      In waiting for the dynamic way of doing this, we partly solved the problem with the static way of doing ejb lookups between hosts.

       

      We now have a problem if host A is connected to host B and host B must be restarted, then host A do not reconnect to host B and the only way of solving this is to restart host A too.

       

      Have I missed a configuration option for the connection or is it supposed to work this way?

       

      Our standalone.xml contains the following...

       

          <subsystem xmlns="urn:jboss:domain:remoting:1.1">

             <connector name="remoting-connector" socket-binding="remoting"/>

             <outbound-connections>

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

                     <connection-creation-options>

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

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

                     </connection-creation-options>

                 </remote-outbound-connection>

              </outbound-connections>

          </subsystem>

       

      In the socket-binding-group:

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

              <remote-destination host="localhost" port="34447"/>

         </outbound-socket-binding>

       

      In the jboss-ejb-client.xml

          <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>

          </jboss-ejb-client>

       

      Is there any way of getting the channel back up one it has closed?