Deploying a Session Bean

The deployment information for a session bean must identify the associated interfaces and classes, specify a session bean type, and select the transaction management option. It also must declare any EJB reference, environment entries, and transaction attributes. You’ll see more about these entries in Chapter 12 and Chapter 15, “Deployment.” For now, the relevant portions of a deployment descriptor for the auction house stateless session bean are shown in the following:

 <ejb-jar> <enterprise-beans> ... <session> <ejb-name>AuctionHouse</ejb-name> <home>com.que.ejb20.auction.controller.AuctionHouseHome</home> <remote>com.que.ejb20.auction.controller.AuctionHouse</remote> <ejb-class>com.que.ejb20.auction.controller.AuctionHouseBean</ejb-class> ...

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.