Java EE 6 comes with EJB 3.1 and CDI. You could work exclusively with EJB 3.1 or CDI, but you will not end up with the simplest possible solution. CDI comes with typesafe and scalable (=start easy, but sky is the limit) DI, events, decorators and "glue" logic.CDI, however, is missing some EJB 3.1 features:
- Asynchronous, transactional execution with Future support
- Pooling: important for throttling and prevention of denial of service attacks
- Monitoring - all EJBs are exposed via JMX and can be so monitored with JConsole
- Declarative, "Convention Over Configuration" transactions. Without EJB 3 you will end up in a considerable bloat
Web Apps, SPA, PWA with vanilla Java Script (ES 6+), CSS 3 and WebStandards only. As simple as possible, but not simpler. See you at: (Progressive) Web apps, Single Page Apps and WebStandards airhacks workshops at MUC airport, Winter Edition
airhacks.fm the podcast:
Stay in touch: airhacks.news.