-
1. Re: is there any replacement for SecurityProxy with ejb3
wolfc May 23, 2007 5:50 AM (in response to gmuzzillo)You can use EJB 3 interceptors. (EJB3-Core Chapter 12)
-
2. Re: is there any replacement for SecurityProxy with ejb3
gmuzzillo May 23, 2007 11:19 AM (in response to gmuzzillo)Wolfc Thank you.
Now, could you please put some example? or do you have the exact title of the book? thanks. -
3. Re: is there any replacement for SecurityProxy with ejb3
wolfc May 25, 2007 6:15 AM (in response to gmuzzillo)JSR 220: Enterprise JavaBeans(tm),Version 3.0 Final Release
EJB Core Contracts and Requirements -
4. Re: is there any replacement for SecurityProxy with ejb3
gmuzzillo May 25, 2007 9:17 AM (in response to gmuzzillo)thank you Wolfc. I´ve mannaged to set up my custom security code as a default interceptor for all my EJB´s.
The problem i´m facing now is that i´m on Jboss 4.0.4GA with ejb3 (RC7?).
It seems that javax.interceptor.InvocationContext Interface doesn´t expose getEJBContext method (It is supposed to be there). I think that RC7 doesnt follow current ejb3 specs?. -
5. Re: is there any replacement for SecurityProxy with ejb3
wolfc May 25, 2007 9:39 AM (in response to gmuzzillo)There is no getEJBContext in InvocationContext, you either use JNDI lookup of java:comp/EJBContext or injection (in the interceptor class).
@SessionContext ejbContext;
RC7 doesn't follow the final EJB3 spec. Upgrade to AS 4.2.0.GA as it is more aligned with the spec.