Because, in your code, you are not calling client/server or remote EJBs. Once you start doing that, you are no longer in thread context, and thus Shiro's subject will no longer automatically be with your EJB
On May 27, 2014, at 1:35 PM, P82 wrote: > lprimak, I appreciate your help but I can't understand why you don't > understand me. If it's not done automatically why then I get such results > running my ejb. Can you answer or give me a link where I can find the > answer. > > > > -- > View this message in context: > http://shiro-user.582556.n2.nabble.com/Shiro-session-for-EJB-tp7579994p7579999.html > Sent from the Shiro User mailing list archive at Nabble.com. >
