This content has been marked as final.
Show 2 replies
-
1. Re: Way to access mdb-user from MDB code
genman Oct 17, 2006 4:03 PM (in response to cjd11)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. -
2. Re: Way to access mdb-user from MDB code
genman Oct 17, 2006 4:08 PM (in response to cjd11)Forget using getCallerPrincipal() ...