The free JavaMagazine article "Lightweight Publish-Subscribe Communication" discusses the use of Java EE 6 (CDI / EJB 3.1) for the implementation of local communication. On the way it also deprecates some J2EE patterns. Enjoy reading and code deleting! :-)
On demand workshops: Java EE 7: Bootstrap, Effective, Testing and Microservices available for streaming.