2 Replies Latest reply on Dec 10, 2003 11:59 AM by pwijntjes

    how to deploy ejb on both iiop and jndi

    pwijntjes

      in server.xml i have

      <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE jboss PUBLIC "-JBossDTD JBOSS//EN" "http://www.jboss.org/j2ee/dtd/jboss.dtd">



      <enterprise-beans>

      <ejb-name>test/MyTestSession</ejb-name>
      <jndi-name>ejb/test/MyTestSessionBean</jndi-name>
      <configuration-name>Standard Stateless SessionBean</configuration-name>
      <invoker-bindings>

      <invoker-proxy-binding-name>iiop</invoker-proxy-binding-name>

      </invoker-bindings>

      </enterprise-beans>
      <resource-managers>
      </resource-managers>



      when I try to get the home interface through jndi a NamingException is thrown
      InitialContext ctx.lookup("ejb/test/MyTestSessionBean")

        • 1.

          You need to use two proxy-bindings, one for RMI and one for iiop

          Regards,
          Adrian

          • 2.
            pwijntjes

            thanks
            but how do I specify the second proxy binding and what are the allowed values
            (in other words what is allowed instead of iiop as proxy-binding-name and what should i use)


            Peter