Tags

links:
http://stackoverflow.com/questions/13487987/where-to-use-ejb-3-1-and-cdi

summary:
– ejb >= cdi
– Default to POJOs, then CDI, then EJB
– use CDI cases: injection, events, interceptors, decorators, lifecycle tracking
– use ejb cases:
jax-ws, jax-rs, @Startup, @Asynchronous, @Schedule or ScheduleExpression, Using EntityManagers in a JTA transaction, Keeping JTA managed EntityManager, @Lock(READ) and @Lock(WRITE)

Advertisements