Table of Contents | ||||
---|---|---|---|---|
|
Consumer endpoints
Simple examples
Code Block | ||
---|---|---|
| ||
<jms:consumer service="my:ConsumerService" endpoint="jbi" destinationName="my.queue" connectionFactory="#connectionFactory" concurrentConsumers="8" /> |
...
Code Block | ||
---|---|---|
| ||
<jms:jca-consumer service="my:ConsumerService" endpoint="jbi" destinationName="my.queue" connectionFactory="#connectionFactory" resourceAdapter="#ra" activationSpec="#as" /> |
Connection Factory
ActiveMQ
We recommend jencks specific ActiveMQ connection pool if you use ActiveMQ.
Just add jencks-amqpool to your classpath. Then you can define a connection pool the following way:
...
Take a look at the documentation from the Jencks project for more informations
Other JMS providers
For other JMS providers, the ConnectionFactory is usually retrieved using JNDI.
...
Name | Type | Description | Required |
---|---|---|---|
resourceAdapter | ResourceAdapter |
| yes |
activationSpec | ActivationSpec |
| yes |
bootstrapContext | BootstrapContext |
| no (a default one will be created) |