JMS Resource Adapter
JBoss implements a JMS ResourceAdapter. It can be used from the Servlet, EJB containers and a JMX MBean.
Features
It offers:
Automatic Transaction enlistment
Security injection
Pooling
Works with any spec compliant JMS server
Default Configuration
The default configuration in
deploy/jms/[hajndi-]jms-ds.xml
, binds the connection factory at java:/JmsXA. A component uses this version of the connection factory by looking up the JMSRA based on the jndi name defined in its configuration:
InitialContext ctx = new InitialContext(); ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:/JmsXA"); ...
Details
It is made up of three components:
A jms provider - the provider identifies how to connect to the jms server.
The rar - the jms resource adapter jmsra.rar.
A connection factory deployment - the deployment of the connection factory.
You can deploy as many jms providers and connection factories as you like.
NOTE: The jms provider is also used by the MDB.
Referenced by:
Comments