-
1. Re: session-roles, stateful-session-roles, and entity?
starksm64 Sep 19, 2001 12:48 PM (in response to jochenriekhof)You can add a security-domain element as a toplevel jboss.xml element to secure all ejbs in a jar, or you can add a security-domain element to the entity container configuration:
<jboss> <container-configurations> <container-configuration> <container-name>Standard CMP EntityBean</container-name> <security-domain>java:/jaas/mydomain</security-domain> </container-configuration> </container-configurations> </jboss>
-
2. Re: session-roles, stateful-session-roles, and entity?
jochenriekhof Sep 20, 2001 5:07 AM (in response to jochenriekhof)Hmm, perhaps I did not understand the meaning of this config. I figured out the "stateful-session-roles" entry myself so it seems that something inside jboss needs this entry with exactly this value?!
Anyway, if I specify
<security-domain>java:/jaas/myentry</security-domain>
where myentry is the entry in my servers auth.conf, is this enough to secure all beans? -
3. Re: session-roles, stateful-session-roles, and entity?
starksm64 Sep 20, 2001 2:12 PM (in response to jochenriekhof)Yes and this is the preferred way of setting the security domain.
-
4. Re: session-roles, stateful-session-roles, and entity?
jochenriekhof Sep 21, 2001 4:34 AM (in response to jochenriekhof)Thanks a lot! I removed all container-configuration tags and it still works!
It would probably be a good idea to emphasize this in the docs.
Ciao and thanks again!
...Jochen