JBoss.orgCommunity Documentation

Chapter 4. Bridging the Gap

4.1. Routing CDI Events to JMS
4.1.1. Configuration
4.1.2. Usage
4.1.3. Egress Routing Sample
4.2. CDI Events from JMS Messages

This chapter is designed to detail how to configure the CDI to JMS event bridge. Routing has two sides, sending of events to JMS destinations and translating received messages from JMS destinations back into CDI events. The sections of this chapter will describe how to achieve both.

The act of simply sending a message to a JMS destination involves a few players: Connection, Session, Destination, and the message itself. Surely you can inject all required resources and perform the forwarding yourself but that takes away from the whole reason you're using a tool in the first place! Let's let a little configuration do the work for us.

TODO Add documentation when implemented