• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with security

 
Ralph Jaus
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a standalone java client I'm accessing an EJB through The bean class isUnfortunately the printed principal is "ANONYMOUS" instead of "user". How can I manage to progagate the client's security settings to the EJB ?
[ August 16, 2008: Message edited by: Ralph Jaus ]
 
Ralph Jaus
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I could figure it out: Specifying principal and credentials in the initial context doesn't work in general (it works with some vendor specific naming factories). In order to authenticate at the EJB the client has to do a JAAS login (using for example ProgrammaticLogin, if glassfish is app server).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!