0 Replies Latest reply on Feb 9, 2004 3:01 PM by markxue

    Multiple invoker for the same ejb

    markxue

      Hello,

      I need both local user and remote user (behind firewall) to access the same ejb, local user uses stateless-rmi-invoker, remote user uses stateless-http-invoker, I have no problem with local user, but remote user still uses stateless-rmi-invoker.

      My jboss.xml configuration is as below:


      <ejb-name>TestEjb</ejb-name>
      <jndi-name>TestSessionBean</jndi-name>
      <invoker-bindings>

      <invoker-proxy-binding-name>stateless-rmi-invoker</invoker-proxy-binding-name>


      <invoker-proxy-binding-name>stateless-http-invoker</invoker-proxy-binding-name>

      </invoker-bindings>


      <invoker-proxy-bindings>
      <!-- A custom invoker for RMI/HTTP -->
      <invoker-proxy-binding>
      stateless-http-invoker
      <invoker-mbean>jboss:service=invoker,type=http</invoker-mbean>
      <proxy-factory>org.jboss.proxy.ejb.ProxyFactory</proxy-factory>
      <proxy-factory-config>
      <client-interceptors>

      org.jboss.proxy.ejb.HomeInterceptor
      org.jboss.proxy.SecurityInterceptor
      org.jboss.proxy.TransactionInterceptor
      org.jboss.invocation.InvokerInterceptor


      org.jboss.proxy.ejb.StatelessSessionInterceptor
      org.jboss.proxy.SecurityInterceptor
      org.jboss.proxy.TransactionInterceptor
      org.jboss.invocation.InvokerInterceptor

      </client-interceptors>
      </proxy-factory-config>
      </invoker-proxy-binding>

      </invoker-proxy-bindings>

      If I only set one invoker at a time, local user can access ejb by stateless-rmi-invoker, and remote user can access ejb by stateless-http-invoker. but when I set them together, it doesn't work.

      Any helps are appreciated.

      Mark