<?xml version="1.0" encoding="ISO-8859-1"?>

<ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee"
		 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"
		 version="2.1">

  <description>secured session bean JOnAS example</description>

  <display-name>secusb (earsample)</display-name>

  <enterprise-beans>
    <session>
      <ejb-name>EarOp</ejb-name>
      <home>org.ow2.jonas.earsample.beans.secusb.OpHome</home>
      <remote>org.ow2.jonas.earsample.beans.secusb.Op</remote>
      <local-home>org.ow2.jonas.earsample.beans.secusb.OpLocalHome</local-home>
      <local>org.ow2.jonas.earsample.beans.secusb.OpLocal</local>
      <ejb-class>org.ow2.jonas.earsample.beans.secusb.OpBean</ejb-class>
      <session-type>Stateful</session-type>
      <transaction-type>Container</transaction-type>
    </session>
  </enterprise-beans>

  <assembly-descriptor>
    <security-role>
      <role-name>tomcat</role-name>
    </security-role>
    <security-role>
      <role-name>jetty</role-name>
    </security-role>

    <method-permission>
      <role-name>tomcat</role-name>
      <method>
	    <ejb-name>EarOp</ejb-name>
	    <method-name>*</method-name>
      </method>
    </method-permission>

    <method-permission>
      <role-name>jetty</role-name>
      <method>
	    <ejb-name>EarOp</ejb-name>
	    <method-name>*</method-name>
      </method>
    </method-permission>

    <container-transaction>
      <method>
	<ejb-name>EarOp</ejb-name>
	<method-name>*</method-name>
      </method>
      <trans-attribute>Supports</trans-attribute>
    </container-transaction>

  </assembly-descriptor>

</ejb-jar>
