3 Replies Latest reply on Dec 20, 2006 12:49 AM by alrubinger

    Context Lookup

    aslocal

      Hello. I have a bean called ListingManagerBean

      @Stateless(name="ListingManager")

      In order to get the context name in a servlet I always have to define it as:

      InitialContext ic = new InitialContext();
      ListingManager lmb = (ListingManager) ic.lookup( "proj/ListingManager/local" );

      "proj" is the name of my ear file. Is there a way that it won't require the 'proj' part of it. My concern is if I ever rename the ejb file.

      Thanks, Graeme.