>From my point of view: 1) getCallerPrincipal will throw an exception in case you deploy your bean outside of a security domain;
2) in case your bean is stateless session bean, the EntityContext method getCallerPrincipal is prohibited to call inside ejbCreate or ejbRemove methods (see specification) again - it is only my personal opinion, and may be it is wrong. Alexander View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3855335#3855335 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3855335 ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user