Listing 5. ejb-jar.xml, the Deployment Descriptor for Our Entity Bean
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar>
<description>ATF Book Bean</description>
<display-name>ATF Book</display-name>
<enterprise-beans>
<entity>
<description>Models a book</description>
<ejb-name>Book</ejb-name>
<home>il.co.lerner.book.BookHome</home>
<remote>il.co.lerner.book.Book</remote>
<ejb-class>il.co.lerner.book.BookBean
</ejb-class>
<persistence-type>Container</persistence-type>
<reentrant>False</reentrant>
<prim-key-class>il.co.lerner.book.BookPK
</prim-key-class>
<cmp-field><field-name>id</field-name>
</cmp-field>
<cmp-field><field-name>author</field-name>
</cmp-field>
<cmp-field><field-name>title</field-name>
</cmp-field>
<cmp-field><field-name>publisher</field-name>
</cmp-field>
<cmp-field><field-name>usDollarPrice
</field-name></cmp-field>
</entity>
</enterprise-beans>
</ejb-jar>