PDA

View Full Version : Access Principal from POJO


ram_2000
Jan 10th, 2005, 04:35 AM
I need access to Principal in my Service (implemented as a POJO).

I would use 'EJBContext.getCallerPrincipal()' in the EJB....but how can i get access to the principle in a POJO?

Can Spring Proxy make this info available via some ThreadLocal variable?

- Ram.

Rod Johnson
Jan 11th, 2005, 04:48 AM
Look at Acegi Security for Spring.