O'Reilly logo

Sams Teach Yourself EJB in 21 Days by Krishna Kothapalli, Ragae Ghaly

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing the Enterprise Bean Classes

Listing 12.7 shows the OrderEJB bean class.

Listing 12.7. The Full Text of day12/OrderEJB.java
 package day12; import java.util.*; import java.io.*; import java.rmi.*; import javax.naming.*; import javax.ejb.*; public abstract class OrderEJB implements EntityBean { protected EntityContext ctx; /* get and set methods for cmp fields */ public abstract String getOrderId(); public abstract void setOrderId(String orderId); public abstract String getStudentId(); public abstract void setStudentId(String studentid); public abstract java.sql.Timestamp getOrderDate(); public abstract void setOrderDate(java.sql.Timestamp timestamp); public abstract String getStatus(); public abstract void setStatus(String status); ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required