I have an app which requires that on system startup, various initialisation is performed, which results a) in system delivered data being created, and b) some utility objects being bound into JNDI.
I am doing this work in the init() method of a servlet which is deployed within my EAR. Unfortunately, if I secure my EJBs, then the servlet cannot access them, as it runs under a null user principal. Run-as role doesn't help that. I tried doing an explicit client login to the domain in question within the init() method. The login succeeds, but I still get the same null principal errors when it tries to access the secured EJBs. Can anyone suggest how I should perform this initialisation in a secured environment? I need to be portable, which is why I have used a servlet init() method up to now. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3887024#3887024 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3887024 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
