JBoss.orgCommunity Documentation

JBoss Seam 3 JMS Module

Reference Guide


Seam JMS can be used by including a few libraries in your application's library folder:

If you are using Maven as your build tool use the following dependency:


<dependency>
   <groupId>org.jboss.seam</groupId>
   <artifactId>seam-jms</artifactId>
   <version>${seam.jms.version}</version>
</dependency>

Tip

Define or replace the property ${seam.jms.version} with a valid version of Seam JMS.

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.