Im trying to get my head around CDI and EJB and the Entity Boundary Control (ECB) pattern. My understanding of the ECB pattern is that the Boundary is the start and end of the transaction boundary. Further to that, CDI doesn't provide transaction support like an EJB does.
So if I want to implement the ECB pattern successfully, then the following are true;
- I can Implement the Boundary portion with EJB's (i.e. @stateless, @stateful, @singleton) and the Control layer with CDI or EJB's.
- I can Implement the Boundary and Control portion with CDI but implement transaction support in the Boundary similar to (http://smokeandice.blogspot.com/2009/12/cdi-and-declarative-transactions.html)
- I can not implement the Boundary with CDI and then start using EJB's in the Control layer.
Thanks