1 Reply Latest reply on May 9, 2006 3:53 AM by marcreis

    How to deploy a session bean so that its JNDI binding is exa

    xyli33

      Good afternoon!

      Can anybody tell me how to deploy a ssesion bean so that its JNDI binding will be exactly "java:comp/env/ejb/mybean"? This sounds weired, but it is really necessary since Sun Java Studio Creator JSC always looks up the EJB using something like
      ctx.lookup( "java:comp/env/ejb/HelloWorldBean" )

      Thanks in advance and have a nice weekend.

      Daniel

        • 1. Re: How to deploy a session bean so that its JNDI binding is
          marcreis

          One way you can tell your bean how it should be placed into the JNDI Tree is with annotations

          //Bind the remote interface under "EJBTEST/NatPerLstBean/remote" into the //JNDI Tree
          @RemoteBinding( jndiBinding="EJBTEST/ThisIsYourtBean/remote")
          @LocalBinding( jndiBinding="comp/env/EJBTEST/ThisIsYourtBean/local")
          


          you should also be able to do this in the corresponding xml file.