-
1. Re: security domain in jboss.xml
halliballi Jun 11, 2012 7:41 AM (in response to halliballi)Removing java:/jaas/ does not seem to work for me either.
Any tips?
-
2. Re: security domain in jboss.xml
halliballi Jun 11, 2012 10:21 AM (in response to halliballi)just to make sure. With setting the security-domain parameter in jboss.xml should deny access to the beans given in the same file.
So if the Domain like here "MyDomain" does not exist, it should not be possible to access and use any of the defined Beans, right?
Thanks
-
3. Re: security domain in jboss.xml
jaikiran Jun 11, 2012 10:28 AM (in response to halliballi)AS7 does not support jboss.xml. It's renamed to jboss-ejb3.xml. And when you add the security-domain tag, you don't need the java:jaas prefix.
-
4. Re: security domain in jboss.xml
halliballi Jun 11, 2012 10:43 AM (in response to jaikiran)ok, but it seems as if the xml is read and interpreted because my beans are deployed.
I will change the filenames and report if this will solve my problem.
Thank you very much
-
5. Re: security domain in jboss.xml
jaikiran Jun 11, 2012 10:49 AM (in response to halliballi)1 of 1 people found this helpfulHalli Balli wrote:
ok, but it seems as if the xml is read and interpreted because my beans are deployed.
No it's not read. The beans are being deployed either because you have a ejb-jar.xml listing those beans or your beans are annotated.
-
6. Re: security domain in jboss.xml
jaikiran Jun 11, 2012 11:07 AM (in response to jaikiran)By the way, here's how the security-domain configuration in jboss-ejb3.xml should look like https://community.jboss.org/message/648313#648313
-
7. Re: security domain in jboss.xml
halliballi Jun 11, 2012 11:15 AM (in response to jaikiran)so, if I understand the linked post correctly, I can not add the security to all beans at once, I have to add the security-domain information to each bean?
Or do I have to edit ejb-jar.xml file?
-
8. Re: security domain in jboss.xml
jaikiran Jun 11, 2012 11:15 AM (in response to halliballi)Halli Balli wrote:
so, if I understand the linked post correctly, I can not add the security to all beans at once, I have to add the security-domain information to each bean?
No. You can just set ejb-name to * to imply all beans.
-
9. Re: security domain in jboss.xml
jaysensharma Jun 11, 2012 11:15 AM (in response to halliballi)1 of 1 people found this helpfulHalli Balli,
If you will notice the above link https://community.jboss.org/message/648166#648166 carefully then you will see the following kind of jboss-ejb3.xml
<?xml version="1.0"?>
<jboss:ejb-jar xmlns:jboss="http://www.jboss.com/xml/ns/javaee"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:s="urn:security"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-ejb3-2_0.xsd
http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd"
version="3.1"
impl-version="2.0">
<assembly-descriptor>
<s:security>
<ejb-name>*</ejb-name>
<s:security-domain>other</s:security-domain>
</s:security>
</assembly-descriptor>
</jboss:ejb-jar>In the abovve XML file due to
<ejb-name>*</ejb-name>
all the Ejbs present in this module will be assigned to the security domain "other" -
10. Re: security domain in jboss.xml
halliballi Jun 12, 2012 2:53 AM (in response to jaysensharma)Thank you two for helping me.