[jboss-user] [Messaging, JMS & JBossMQ] - Re: Way to access mdb-user from MDB code

genman do-not-reply at jboss.com
Tue Oct 17 16:03:25 EDT 2006


Not sure about this. In my experience, it's not very symmetrical.

The MessageDrivenContext has a getCallerPrincipal() method. I don't think there's a way to get the password.

You can set the username/password for connections using the outbound connection pool:

http://wiki.staging.jboss.com/wiki/Wiki.jsp?page=ConfigJMSRA

Put this in your 

tibco-jms-ds.xml (or whatever you use)

This way your MDB doesn't have to know about passwords.  I'm not sure this is what you want though.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978872#3978872

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978872



More information about the jboss-user mailing list