Examples
Endpoints
Code Block | ||
---|---|---|
| ||
<jms:consumer service="my:ConsumerService"
endpoint="jbi"
destinationName="my.queue"
connectionFactory="#connectionFactory"
concurrentConsumers="8" />
|
Code Block | ||
---|---|---|
| ||
<jms:soap-consumer wsdl="classpath:service.wsdl"
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:
Code Block | ||
---|---|---|
| ||
<beans xmlns:amqpool="http://jencks.org/amqpool/2.0">
<amqpool:xa-pool id="connectionFactory"
url="tcp://localhost:61616"
transactionManager="#transactionManager" />
</beans>
|
Take a look at the documentation from the Jencks project for more informations
Reference
...
Common properties
Name | Type | Description | Required |
---|---|---|---|
service | QName | the service name of the proxied endpoint | yes |
endpoint | String | the endpoint name of the proxied endpoint | yes |
interfaceName | QName | the interface name of the proxied endpoint |
|
|
|
|
|
targetService | QName | the service name of the target endpoint | no (defaults to the service attribute) |
targetEndpoint | String | the endpoint name of the target endpoint | no (defaults to the endpoint attribute) |
targetInterface | QName | the interface name of the target endpoint | no |
targetUri | String | the URI of the target endpoint | no |
|
|
|
|
marshaler |
|
|
|
synchronous |
|
|
|
destinationChooser |
|
|
|
destinationResolver |
|
|
|
pubSubDomaom |
|
|
|
connectionFactory |
|
|
|
|
|
|
|
useMessageIdInResponse | Boolean |
|
|
replyDestination | Destination |
|
|
replyDestinationName | String |
|
|
replyExplicitQosEnabled | boolean |
|
|
replyDeliveryMode | int |
|
|
replyPriority | int |
|
|
replyTimeToLive | long |
|
|
replyProperties | Map |
|
|
|
|
|
|
stateless | boolean |
|
|
storeFactory | StoreFactory |
|
|
store | Store |
|
|
...
Name | Type | Description | Required |
---|---|---|---|
resourceAdapter | ResourceAdapter |
| yes |
activationSpec | ActivationSpec |
| yes |
bootstrapContext | BootstrapContext |
| no (a default one will be created) |
Examples
Code Block | ||
---|---|---|
| ||
<jms:consumer service="my:ConsumerService"
endpoint="jbi"
destinationName="my.queue"
connectionFactory="#connectionFactory"
concurrentConsumers="8" />
|
Code Block | ||
---|---|---|
| ||
<jms:soap-consumer wsdl="classpath:service.wsdl"
destinationName="my.queue"
connectionFactory="#connectionFactory"
concurrentConsumers="8" />
|
...
lang | xml |
---|
...