<?xml version="1.0" encoding="UTF-8"?>

<ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" id="ejb-jar_ID"
         version="2.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
   <enterprise-beans>
      <session id="BeanA">
         <ejb-name>BeanA</ejb-name>
         <home>org.jboss.test.security.clientlogin.IClientLoginHome</home>
         <remote>org.jboss.test.security.clientlogin.IClientLogin</remote>
         <ejb-class>org.jboss.test.security.clientlogin.BeanA</ejb-class>
         <session-type>Stateless</session-type>
         <transaction-type>Container</transaction-type>
         <ejb-ref>
            <ejb-ref-name>TargetBean</ejb-ref-name>
            <ejb-ref-type>Session</ejb-ref-type>
            <home>org.jboss.test.security.clientlogin.IClientLoginHome</home>
            <remote>org.jboss.test.security.clientlogin.IClientLogin</remote>
            <ejb-link>BeanB</ejb-link>
         </ejb-ref>
      </session>

      <session id="BeanB">
         <ejb-name>BeanB</ejb-name>
         <home>org.jboss.test.security.clientlogin.IClientLoginHome</home>
         <remote>org.jboss.test.security.clientlogin.IClientLogin</remote>
         <ejb-class>org.jboss.test.security.clientlogin.BeanB</ejb-class>
         <session-type>Stateless</session-type>
         <transaction-type>Container</transaction-type>
         <ejb-ref>
            <ejb-ref-name>TargetBean</ejb-ref-name>
            <ejb-ref-type>Session</ejb-ref-type>
            <home>org.jboss.test.security.clientlogin.IClientLoginHome</home>
            <remote>org.jboss.test.security.clientlogin.IClientLogin</remote>
            <ejb-link>BeanC</ejb-link>
         </ejb-ref>
      </session>

      <session id="BeanC">
         <ejb-name>BeanC</ejb-name>
         <home>org.jboss.test.security.clientlogin.IClientLoginHome</home>
         <remote>org.jboss.test.security.clientlogin.IClientLogin</remote>
         <ejb-class>org.jboss.test.security.clientlogin.BeanC</ejb-class>
         <session-type>Stateless</session-type>
         <transaction-type>Container</transaction-type>
      </session>
   </enterprise-beans>

   <assembly-descriptor>
      <method-permission id="callerA">
         <role-name>CanCallA</role-name>
         <method>
            <ejb-name>BeanA</ejb-name>
            <method-name>*</method-name>
         </method>
      </method-permission>
      <method-permission id="callerB">
         <role-name>CanCallB</role-name>
         <method>
            <ejb-name>BeanB</ejb-name>
            <method-name>*</method-name>
         </method>
      </method-permission>
      <method-permission id="callerC">
         <role-name>CanCallC</role-name>
         <method>
            <ejb-name>BeanC</ejb-name>
            <method-name>*</method-name>
         </method>
      </method-permission>
   </assembly-descriptor>
</ejb-jar>
