This content has been marked as final.
Show 2 replies
-
1. Re: Accessing secured session bean method from MDB (revisite
adrian.brock Sep 9, 2004 11:33 AM (in response to smapjb)An interceptor does not return before your bean is invoked.
public Object invoke(Invocation mi) throws Exception { login(); try { return getNext().invoke(mi); } finally { logout(); } }
If you don't logout(), the next user of the thread has your established credentials. -
2. Re: Accessing secured session bean method from MDB (revisite
smapjb Sep 9, 2004 11:58 AM (in response to smapjb)
Thanks for the quick response.. of course, the 'like a linked list' bit makes sense now..
Just so I understand this completely; is an interceptor the only way of achieving this?
Did I understand the SecurityProxy correctly.. i.e returns before bean method is called?
Yours
Phil