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

2007-11-12 Thread rotten_ritz
I have the following interface and bean userProfile.java //interface userProfileBean.java //implementation and i do the following from a servlet private userProfile UserProfile; Context context = new InitialContext(); UserProfile = (userProfile)context.lookup("userProfileBean/remote"); It works

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

2006-12-18 Thread 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