Your haven't defined the transaction scope on your ejb methods. Try adding
the annotation @TransactionAttribute(TransactionAttributeType.REQUIRED) to
your getCustomer method...
@Override
@TransactionAttribute(TransactionAttributeType.REQUIRED)
public Customer getCustomer(
String customerId, String sessionId) throws
OpenflowException{
Session session = sessionBean.isSessionValid(sessionId);
if(session!=null) {
Customer customer = (Customer)
entityManager.find(Customer.class, customerId);
if(customer==null) {
throw new OpenflowException("Customer does
not exists >>> "+customerId);
}
customer.getContactList();
return customer;
}
return null;
}
--
View this message in context:
http://openejb.979440.n4.nabble.com/CMP-failed-with-3-layered-Object-structure-tp4655311p4655586.html
Sent from the OpenEJB User mailing list archive at Nabble.com.