The moose likes EJB and other Java EE Technologies and the fly likes Authentication JMS/MDB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Authentication JMS/MDB" Watch "Authentication JMS/MDB" New topic

Authentication JMS/MDB

Mirko Bernardini

Joined: Oct 28, 2007
Posts: 7
Hi everybody,

I'm trying to connect a MDB consumer application A1 to another application A2. When A2 retrive the messages from the queue I would like fix a user in the MDB context to log him.

Now the getMessageDrivenContext().getCallerPrincipal() is <anonymous>.
How can I add the user to the MessageDrivenBean Context to perform also a security access to A1?

Help me!!!


Il dubbio � il padre del sapere.
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
Please explain what you mean by "a MDB consumer application".

Is A2 retrieving messages from a non-MDB message queue?

The messages for a MDB queue and the messages for a non-MDB queue do not have the same context.
I agree. Here's the link:
subject: Authentication JMS/MDB
It's not a secret anymore!