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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...