This content has been marked as final.
Show 2 replies
-
1. Re: Getting caller principal into SSB connection?
petertje Jul 12, 2005 7:34 AM (in response to kellyschrock)Using JNDI properties might work with other application servers, but that's not the way it is done in JBoss. Your plain Java app should do a JAAS login, using the JBoss ClientLoginModule. This module will take care of passing security information (e.g. user name) to the EJB stubs, so that the EJB container can identify the caller (and you can request this information with getCallerPrincipal()).
-
2. Re: Getting caller principal into SSB connection?
darranl Jul 12, 2005 10:43 AM (in response to kellyschrock)It is possible to pass in the login principle and credentials when obtaining the InitialContext: -
http://wiki.jboss.org/wiki/Wiki.jsp?page=LoginInitialContextFactory
http://wiki.jboss.org/wiki/Wiki.jsp?page=JndiLoginInitialContextFactory
The server will still need to be configured to peroform the actual authentication.