Avi Kivity wrote:
> > InitialContext context = new InitialContext();
> That's the generic and simple way. Recommended.
On a related note: I've observed with Weblogic and other ejb containers
that if you include SECURITY_PRINCIPAL and SECURITY_CREDENTIALS in this
new InitialContext() call that this applicable-to-JNDI-only information
is used to seed the *ejb container's* calling principal! This is also
(oddly enough) encouraged in some example code that I've seen. Surely
this is wrong?! The SECURITY_PRINCIPAL etc. used at the JNDI layer is
NOT the same as the calling principal at the EJB layer, correct?
But then there doesn't seem to be a container-independent way to set the
calling principal on the EJB side, does there?
Cheers,
Laird
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".