<?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>

  <enterprise-beans>

    <session>
      <ejb-name>CartExample</ejb-name>
      <home>examples.CartHome</home>
      <remote>examples.Cart</remote>
      <ejb-class>examples.CartBean</ejb-class>
      <session-type>Stateful</session-type>
      <transaction-type>Container</transaction-type>
    </session>

  </enterprise-beans>
  
  <assembly-descriptor>

    <security-role>
      <description>
	This role represents everyone who is allowed full access to the bean.
      </description>
      <role-name>everyone</role-name>
    </security-role>

    <method-permission>
      <role-name>everyone</role-name>
      <method>
	<ejb-name>CartExample</ejb-name>
	<method-name>*</method-name>
      </method>
    </method-permission>
    
    <container-transaction>
      <method>
	<ejb-name>CartExample</ejb-name>
        <method-name>*</method-name>
      </method>
      <trans-attribute>Required</trans-attribute>
    </container-transaction>

  </assembly-descriptor>

</ejb-jar>
