[jboss-user] [EJB 3.0] - Re: Access a file resource from EJB3.0

2007-10-25 Thread gmuzzillo
Hi!! Inside an EJB you can have a FileStream representation using the classloader and Threadl. here goes a little sample: ClassLoader loader = Thread.currentThread().getContextClassLoader(); | InputStream stream = loader |

[jboss-user] [EJB 3.0] - Re: How to get a reference to Subject

2007-07-04 Thread gmuzzillo
Hi berrysx: you can use the following to retrieve the subject on ejb3. Subject subject = (Subject) ic.lookup(java:jaas/your protection domain/subject); where your protection domain stands for the protection domain name you've declared login-config.xml Best regards. Gustavo View the

[jboss-user] [EJB 3.0] - Re: is there any replacement for SecurityProxy with ejb3

2007-05-25 Thread 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

[jboss-user] [EJB 3.0] - Re: is there any replacement for SecurityProxy with ejb3

2007-05-23 Thread gmuzzillo
Wolfc Thank you. Now, could you please put some example? or do you have the exact title of the book? thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4047947#4047947 Reply to the post :

[jboss-user] [EJB 3.0] - is there any replacement for SecurityProxy with ejb3

2007-05-22 Thread gmuzzillo
I'm dealing with an application that requieres custom security. Originally security was dealt using a class implementing SecurityProxy interface, declared on jboss.xml deployment descriptor. After try the same configuration with ejb3 i've realized the proxy is not being loaded or activated. Is