*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Authentication JMS/MDB" Watch "Authentication JMS/MDB" New topic
Author

Authentication JMS/MDB

Mirko Bernardini
Greenhorn

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!!!

Mirko


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: http://aspose.com/file-tools
 
subject: Authentication JMS/MDB
 
Similar Threads
How two different web application communicate with each other
1:n join
Is this explanation correct?
exam lab gc question
Garbage collection