When a try to get caller principal in an MDB (jboss messaging), I get the Exception "IllegalStateException".
This problem is preventing me to call an EJB from the MDB. When I call the EJB, I get the exception:
"javax.ejb.EJBTransactionRolledbackException: No valid security context for the caller identity"
I'm not using authentication for EJBs. The JMS queue uses the default guest role.
Anyone knows what's the problem ?
Thanks in advance!
In general, there is no caller of MDBs so there can be caller principal.
Authentication with the JMS server to create the receiver is very different
from the JMS Server invoking on the MDB on a different thread.