Deploying an Entity Bean Using BMP

After you’ve defined a bean’s home and component interfaces and developed a bean implementation class, the last step is to provide the deployment information for it. As you’ve seen throughout the chapter, this information controls a number of characteristics of a bean. Listing 6.14 shows a complete ejb-jar.xml deployment descriptor for the auction, item, and bidder entity beans.

Listing 6.14. ejb-jar.xml–XML Deployment Descriptor
 <?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> <entity> <ejb-name>EnglishAuction</ejb-name> <local-home>com.que.ejb20.auction.model.EnglishAuctionHome</local-home> ...

Get Special Edition Using Enterprise JavaBeans™ 2.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.