views:

92

answers:

2

I found some nice hints on how to write a custom realm and loginModule. I'm wondering though if it is possible to access a remote EJB within the custom loginModule.

In my case, I have remote EJBs that provide access to user-entities (via JPA) -- can I use them (e.g. via @EJB annotation)?

A: 

Ok, I found the answer myself: works fine! I can get a reference to the remote SLSB via an InitialContext.

(If anyone wants to see the code, pls let me know and I'll update this.)

Hank
A: 

Yes, if you could show some realm/ loginModule/ JAAS configuration code, this would be great!

Thanks.

-Puce

Puce