OK, I know, this is a FAQ (or should be) but I cannot find the answer.

I have an MDB. It is configured for a durable subscription using mdb-user, 
mdb-password in jboss.xml and it has a security-identity/run-as/role-name in 
the ejb-jar.xml.

But, it needs to call into an entity bean and needs to be authenticated for 
that.

How do I declare the authentication (username/credential)? 

Currently we have an explicit jaas login/logout at the start and end of the 
onMessage() method (with hard coded username/password) but this doesn't seem 
to be right to me.

Is there a better way to do this. I would have thought that I should be able 
to declare the login details for the MDB in the deployment descriptor.

thanks,
brian wallis...



-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to