In stateful ejb session Bean1 I have reference on another stateful ejb session Bean2 ? bean2Ref.
I can correctly call any method from bean2Ref until calling processOrder from that bean that rises exception during data flushing to database.
This is definition of processOrder() method in Bean2
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
public void processOrder() {
//? some code
}
bean2Ref.startProcessing();
try {
bean2Ref.processOrder(saveTry);
} catch(Exception ex) {
log.error("error - " + ex.getMessage());
}
bean2Ref.finalProcessing();