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

    how to deploy ejb on both iiop and jndi

    pwijntjes Newbie

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