<?xml version="1.0"?>

<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_2.dtd'>

<ejb-jar>
    <enterprise-beans>
      <entity>
	<ejb-name>StockBean</ejb-name>
	<home>examples.ejb.extensions.readMostly.StockHome</home>
	<remote>examples.ejb.extensions.readMostly.Stock</remote>
	<ejb-class>examples.ejb.extensions.readMostly.StockBean</ejb-class>
	<persistence-type>Container</persistence-type>
	<prim-key-class>java.lang.String</prim-key-class>
	<reentrant>False</reentrant>
	<cmp-field>
	  <field-name>symbol</field-name>
	</cmp-field>
	<cmp-field>
	  <field-name>price</field-name>
	</cmp-field>
	<cmp-field>
	  <field-name>yearHigh</field-name>
	</cmp-field>
	<cmp-field>
	  <field-name>yearLow</field-name>
	</cmp-field>
	<cmp-field>
	  <field-name>volume</field-name>
	</cmp-field>

	<primkey-field>symbol</primkey-field>
      </entity>

      <entity>
	<ejb-name>StockWriterBean</ejb-name>
	<home>examples.ejb.extensions.readMostly.StockWriterHome</home>
	<remote>examples.ejb.extensions.readMostly.StockWriter</remote>
	<ejb-class>examples.ejb.extensions.readMostly.StockWriterBean</ejb-class>
	<persistence-type>Container</persistence-type>
	<prim-key-class>java.lang.String</prim-key-class>
	<reentrant>False</reentrant>
	<cmp-field>
	  <field-name>symbol</field-name>
	</cmp-field>
	<cmp-field>
	  <field-name>price</field-name>
	</cmp-field>
	<cmp-field>
	  <field-name>yearHigh</field-name>
	</cmp-field>
	<cmp-field>
	  <field-name>yearLow</field-name>
	</cmp-field>
	<cmp-field>
	  <field-name>volume</field-name>
	</cmp-field>
	<primkey-field>symbol</primkey-field>
      </entity>

    </enterprise-beans>

    <assembly-descriptor>
      <container-transaction>
	<method>
	  <ejb-name>StockWriterBean</ejb-name>
	  <method-intf>Remote</method-intf>
	  <method-name>*</method-name>
	</method>
	<trans-attribute>Required</trans-attribute>
      </container-transaction>
    </assembly-descriptor>

    
  </ejb-jar>

