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 ]
SCJP 5 (98%) - SCBCD 5 (98%)
posted 8 years ago
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).