You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by John Burk <jo...@gmail.com> on 2008/11/21 07:55:18 UTC

How to access EJB from customized logon module

Hi,
  I in struggling in accessing EJB from the customized logon module of
geronimo application. Use @EJB or InitialContext.lookup always return null
point. Is there any way to use EJB in the logonmodule?
-- 
View this message in context: http://www.nabble.com/How-to-access-EJB-from-customized-logon-module-tp20616064s134p20616064.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: How to access EJB from customized logon module

Posted by David Jencks <da...@yahoo.com>.
On Nov 20, 2008, at 10:55 PM, John Burk wrote:

>
> Hi,
>  I in struggling in accessing EJB from the customized logon module of
> geronimo application. Use @EJB or InitialContext.lookup always  
> return null
> point. Is there any way to use EJB in the logonmodule?


You'll have to look the ejb up in the global jndi space.  If you  
examine the var/log/geronimo.log file where your ejb app is getting  
started you can see the jndi names the ejbs are bound under.

You'll have to run your ejbs with a default subject or without  
security.... no security identity is available until after login  
completes.

thanks
david jencks

>
> -- 
> View this message in context: http://www.nabble.com/How-to-access-EJB-from-customized-logon-module-tp20616064s134p20616064.html
> Sent from the Apache Geronimo - Users mailing list archive at  
> Nabble.com.
>