The building blocks of JMS

The basic building blocks of any JMS application consists of the following:

  • Administered objects—connection factories and destinations
  • Connections
  • Sessions
  • Message producers
  • Message consumers
  • Messages

Some of these elements are explained as follows:

A connection factory object encapsulates a set of connection configuration parameters that have been defined by an administrator. A client uses it to create a connection with a JMS provider. A connection factory hides provider-specific details from JMS clients and abstracts administrative information into objects in the Java programming language.

A destination is the component a client uses to specify the target of messages it produces and the source of messages it consumes. In the ...

Get JBoss AS 7 Development now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.