User: starksm 
  Date: 01/05/05 21:13:44

  Modified:    src/resources/web/META-INF ejb-jar.xml jboss.xml
  Log:
  Add secure access tests
  
  Revision  Changes    Path
  1.2       +33 -1     jbosstest/src/resources/web/META-INF/ejb-jar.xml
  
  Index: ejb-jar.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jbosstest/src/resources/web/META-INF/ejb-jar.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ejb-jar.xml       2001/05/05 20:56:55     1.1
  +++ ejb-jar.xml       2001/05/06 04:13:44     1.2
  @@ -38,5 +38,37 @@
               <transaction-type>Container</transaction-type>
           </session>
       </enterprise-beans>
  -</ejb-jar>
   
  +    <!-- Security constraints for the SecuredEJB -->
  +    <security-role>
  +        <description>An anonymous unauthenticated user</description>
  +        <role-name>Anonymous</role-name>
  +    </security-role>
  +    <security-role>
  +        <description>An authenticated user</description>
  +        <role-name>AuthorizedUser</role-name>
  +    </security-role>
  +
  +    <!-- The methods an Anonymous user can access -->
  +    <method-permission>
  +        <role-name>Anonymous</role-name>
  +        <method>
  +            <ejb-name>SecuredEJB</ejb-name>
  +            <method-name>create</method-name>
  +        </method>
  +        <method>
  +            <ejb-name>SecuredEJB</ejb-name>
  +            <method-name>echo</method-name>
  +        </method>
  +    </method-permission>
  +
  +    <!-- The methods an AuthorizedUser user can access -->
  +    <method-permission>
  +        <role-name>AuthorizedUser</role-name>
  +        <method>
  +            <ejb-name>SecuredEJB</ejb-name>
  +            <method-name>*</method-name>
  +        </method>
  +    </method-permission>
  +
  +</ejb-jar>
  
  
  
  1.2       +36 -0     jbosstest/src/resources/web/META-INF/jboss.xml
  
  Index: jboss.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jbosstest/src/resources/web/META-INF/jboss.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- jboss.xml 2001/05/05 20:56:55     1.1
  +++ jboss.xml 2001/05/06 04:13:44     1.2
  @@ -5,6 +5,42 @@
           <session>
               <ejb-name>SecuredEJB</ejb-name>
               <jndi-name>jbosstest/ejbs/SecuredEJB</jndi-name>
  +            <configuration-name>Secure Stateless SessionBean</configuration-name>
           </session>
       </enterprise-beans>
  +
  +    <container-configurations>
  +        <container-configuration>
  +            <container-name>Secure Stateless SessionBean</container-name>
  +            <call-logging>false</call-logging>
  +            
<container-invoker>org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker</container-invoker>
  +            <container-interceptors>
  +                <interceptor>org.jboss.ejb.plugins.LogInterceptor</interceptor>
  +                <interceptor>org.jboss.ejb.plugins.SecurityInterceptor</interceptor>
  +                <!-- CMT -->
  +                <interceptor 
transaction="Container">org.jboss.ejb.plugins.TxInterceptorCMT</interceptor>
  +                <interceptor transaction="Container" 
metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor</interceptor>
  +                <interceptor 
transaction="Container">org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor</interceptor>
  +                <!-- BMT -->
  +                <interceptor 
transaction="Bean">org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor</interceptor>
  +                <interceptor 
transaction="Bean">org.jboss.ejb.plugins.TxInterceptorBMT</interceptor>
  +                <interceptor transaction="Bean" 
metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor</interceptor>
  +            </container-interceptors>
  +            
<instance-pool>org.jboss.ejb.plugins.StatelessSessionInstancePool</instance-pool>
  +            <instance-cache></instance-cache>
  +            <persistence-manager></persistence-manager>
  +            <transaction-manager>org.jboss.tm.TxManager</transaction-manager>
  +            <container-invoker-conf>
  +                <RMIObjectPort>4444</RMIObjectPort>
  +                <Optimized>True</Optimized>
  +            </container-invoker-conf>
  +            <container-pool-conf>
  +                <MaximumSize>100</MaximumSize>
  +                <MinimumSize>10</MinimumSize>
  +            </container-pool-conf>
  +            <role-mapping-manager>java:/jaas/other</role-mapping-manager>
  +            <authentication-module>java:/jaas/other</authentication-module>
  +        </container-configuration>
  +    </container-configurations>
  +
   </jboss>
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to