[jboss-user] [EJB 3.0] - Context Lookup

aslocal do-not-reply at jboss.com
Mon Dec 18 22:33:30 EST 2006


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.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994869#3994869

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994869



More information about the jboss-user mailing list