[jboss-dev-forums] [Design of EJB 3.0] - Re: Passivating EJB 3 Stateful Session Beans stops the World
andy.miller@jboss.com
do-not-reply at jboss.com
Wed Oct 22 14:45:38 EDT 2008
Brian,
Sure thing. I don't have any ejb-jar.xml or jboss.xml files at all. I tried to use all the defaults as well (convention over configuration) for everything that I could. So here is the class declaration:
| package services.ejb;
|
| import java.io.Serializable;
| import java.util.ArrayList;
| import java.util.List;
|
| import javax.ejb.Remove;
| import javax.ejb.Stateful;
| import javax.persistence.EntityManager;
| import javax.persistence.PersistenceContext;
|
| import org.jboss.annotation.ejb.Clustered;
| import services.entities.Order;
|
| @Clustered
| @Stateful
| public class OrderInquiryBean implements OrderInquiry, Serializable {
|
Here is the interface as well:
| package services.ejb;
|
| import java.util.List;
| import services.entities.Order;
|
| public interface OrderInquiry {
|
| public int getPaginationForInquiries();
|
| public List<Order> findOrdersByCustomer(long customerId);
|
| public void cancelSession();
|
| }
|
Like I said. I kept everything as simple as possible.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4183957#4183957
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4183957
More information about the jboss-dev-forums
mailing list