T
tremalnaik
Hello,
I'm trying something maybe impossible: I'd like to read
programmatically the list of security roles I've defined in the file
ejb-jar.xml (I'm delpoying my application in Jboss). So, given the
following entries :
<assembly-descriptor>
<security-role>
<role-name>BITAStarUser</role-name>
</security-role>
<security-role>
<role-name>BITAStarAdminUsers_r</role-name>
</security-role>
......
is it possible to get a list of all those security roles using a
syntax similar to:
javax.naming.Context ctx = new javax.naming.InitialContext();
javax.naming.Context env = ctx.lookup("java:comp/env");
More: I'd like to read the list of roles defined in a method
permission part also:
<method-permission>
<role-name>BITAStarUser</role-name>
<role-name>BITAStarClientHome_r</role-name>
<role-name>BITAStarClientHome_w</role-name>
<role-name>BITAStarClientList_r</role-name>
<role-name>BITAStarClientList_w</role-name>
.....
Is that possible? I think maybe it's not permitted due to security
reasons.
Thanks
TN
I'm trying something maybe impossible: I'd like to read
programmatically the list of security roles I've defined in the file
ejb-jar.xml (I'm delpoying my application in Jboss). So, given the
following entries :
<assembly-descriptor>
<security-role>
<role-name>BITAStarUser</role-name>
</security-role>
<security-role>
<role-name>BITAStarAdminUsers_r</role-name>
</security-role>
......
is it possible to get a list of all those security roles using a
syntax similar to:
javax.naming.Context ctx = new javax.naming.InitialContext();
javax.naming.Context env = ctx.lookup("java:comp/env");
More: I'd like to read the list of roles defined in a method
permission part also:
<method-permission>
<role-name>BITAStarUser</role-name>
<role-name>BITAStarClientHome_r</role-name>
<role-name>BITAStarClientHome_w</role-name>
<role-name>BITAStarClientList_r</role-name>
<role-name>BITAStarClientList_w</role-name>
.....
Is that possible? I think maybe it's not permitted due to security
reasons.
Thanks
TN