Community

Security principal propagation accross ejb3 modules

created by Davide Tabarelli in EJB 3.0 - View the full discussion

Hi,

 

I'm developing an enterprise application within JBoss 5.

 

I have multiple EJB3 modules in a single ear, each one under the same security domain.

Authentication works properly and the ClientLoginModule is required in the application policy.

 

My question is the following: if the client (or the web tier) calls EJB 1 that in turns call EJB 2 (both secured) is the security Principal propagated correctly?

 

It is giving me a principal: null exception when the second EJB is called in the stack ..

 

Where I'm wrong?

 

Thanks in advance.

 

D.

Reply to this message by going to Community

Start a new discussion in EJB 3.0 at Community