2 Replies Latest reply on Jul 25, 2017 2:57 AM by kRyszard Zklanu

    WildFly 8.2.0 Final: How to Access Remote EJBs via multiple Interfaces

    Enrico Leipold Newbie


      I have a Question regarding the Remote ejb configuration in WildFly.

      If I have a Server with multiple NICs and Interfaces configured on it , like this



              <interface name="public">

                  <inet-address value="${jboss.bind.address.public:}"/>


              <interface name="unsecure">

                  <inet-address value="${jboss.bind.address.unsecure:}"/>





      <socket-binding-group name="standard-sockets"  default-interface="public"  .........

                <socket-binding name="http" port="${jboss.http.port:8080}"/>

                <socket-binding name="http2" interface="unsecure" port="${jboss.http.port:8080}"/>



      Then it was my understanding that I would need multiple HTTP Listeners on undertow to cover those interfaces for connectivity..

      <subsystem xmlns="urn:jboss:domain:undertow:1.2">

                  <buffer-cache name="default"/>

                  <server name="default-server">

                      <http-listener name="default" socket-binding="http"/>

                      <http-listener name="mirror" socket-binding="http2"/>



      And reference those via remoting configuration:

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

                  <endpoint worker="default"/>

                  <http-connector name="http-remoting-connector" connector-ref="default" security-realm="ApplicationRealm"/>

                  <http-connector name="http-remoting-connector2" connector-ref="mirror" security-realm="ApplicationRealm"/>


      But in the EJB Subsystem there can only be a single <remote> entry.


      <remote connector-ref="http-remoting-connector" thread-pool-name="default"/>

      Additional Entries will not be accepted. So how do I tell the System to accept multiple connectors for remote EJB invocation ?

      The WildFly Model Reference says here Wildfly Model Reference

      it should be possible to set multiple connector ref Entries to a single http-connector.

      connector-ref The name (or names) of a connector in the Undertow subsystem to connect to.


      But i did not find a way of setting multiple entries neither in the config (I tried different combinations like :

      <http-connector name="http-remoting-connector" connector-ref="default,mirror" security-realm="ApplicationRealm"/>

      <http-connector name="http-remoting-connector" connector-ref="default","mirror" security-realm="ApplicationRealm"/>

      <http-connector name="http-remoting-connector" connector-ref="default" connector-ref="mirror" security-realm="ApplicationRealm"/>

      CLI also forbid me from doing it (which returns an Exception that says expected value is STRING, not LIST)


      Help would be greatly appreciated !