User: starksm
Date: 02/03/12 17:31:02
Added: src/resources/security-srp/ejb-inf ejb-jar.xml jboss.xml
Log:
SRP tests
Revision Changes Path
1.1 jbosstest/src/resources/security-srp/ejb-inf/ejb-jar.xml
Index: ejb-jar.xml
===================================================================
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC
"-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
"http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<display-name>SRP Tests</display-name>
<enterprise-beans>
<session>
<description>A secured trival echo session bean</description>
<ejb-name>StatelessSession</ejb-name>
<home>org.jboss.test.security.interfaces.StatelessSessionHome</home>
<remote>org.jboss.test.security.interfaces.StatelessSession</remote>
<ejb-class>org.jboss.test.security.ejb.StatelessSessionBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<!-- Use the 'EchoCaller' role name in the bean code to test role
linking with use of isCallerInRole().
-->
<security-role-ref>
<role-name>EchoCaller</role-name>
<role-link>Echo</role-link>
</security-role-ref>
</session>
</enterprise-beans>
<assembly-descriptor>
<security-role>
<description>The role required to invoke the echo method</description>
<role-name>Echo</role-name>
</security-role>
<!-- The methods the Echo role can access -->
<method-permission>
<role-name>Echo</role-name>
<method>
<ejb-name>StatelessSession</ejb-name>
<method-name>*</method-name>
</method>
</method-permission>
</assembly-descriptor>
</ejb-jar>
1.1 jbosstest/src/resources/security-srp/ejb-inf/jboss.xml
Index: jboss.xml
===================================================================
<?xml version="1.0"?>
<!-- The jboss.xml descriptor for the security-srp.jar ejb unit.
-->
<jboss>
<security-domain>java:/jaas/srp-test</security-domain>
<container-configurations>
<container-configuration>
<container-name>Standard Stateless SessionBean</container-name>
<!-- Override the container socket factories -->
<container-invoker-conf>
<Optimized>true</Optimized>
<RMIObjectPort>4445</RMIObjectPort>
<RMIClientSocketFactory>org.jboss.test.jrmp.ejb.CompressionClientSocketFactory</RMIClientSocketFactory>
<RMIServerSocketFactory>org.jboss.test.jrmp.ejb.CompressionServerSocketFactory</RMIServerSocketFactory>
</container-invoker-conf>
</container-configuration>
</container-configurations>
<enterprise-beans>
<session>
<ejb-name>StatelessSession</ejb-name>
<jndi-name>spec.StatelessSession</jndi-name>
<configuration-name>Standard Stateless SessionBean</configuration-name>
</session>
</enterprise-beans>
</jboss>
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development