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