Reason why you are getting the exception is : anonymous wrote : The security methods--getCallerPrincipal() and isCallerInRole()--also throw a RuntimeException if invoked on a MessageDrivenContext. When an MDB services a JMS message there is no "caller," so there is no security context to be obtained from the caller. Remember that JMS is asynchronous and doesn't propagate the sender's security context to the receiver--that wouldn't make sense, since senders and receivers tend to operate in different environments.
Have a look at: Section MessageDrivenContext at: http://www.onjava.com/pub/a/onjava/excerpt/ejb3_ch13/?page=5 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3894890#3894890 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3894890 ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user