I've modified the jaas example to my aplication, and it runs ok.
But now, I've a problem. My jboss 3.2.4 is a container of various EJB applications, they are independent, but they are using the same ejb-jar.xml and jboss.xml.
So, I would like to apply different login modules (different application policy in login-config.xml) to different applications. When I do this, it throws an Authentication exception.
In jboss.xml, I only have a security-domain (XXX) and the application policy have another name different.
But, it seems don't work.
How can I do? How I use different application policy to different applications that are under the same ejb-jar.xml and jboss.xml??
Can anyone help me??
You can't. What you really want to do use use different Roles for the applications