Does a stateless session bean have access to the User Principal?
posted 12 years ago
Can a method of a stateless session bean know which user calls it? If not, how about a stateful session bean? What I'm looking for is the username (Principal) specified during the JNDI lookup of the context used to retrieve the home interface.
Thats right. Each user will get an instance of the stateless session bean from a pool and the method will return the correct principal for each one. [ September 16, 2005: Message edited by: Dave Salter ]