...
- create by default a temporary inbound queue
- set the JMSReplyTo destination on the request message
- set the JMSCorrelationID on the request message
- send the request message
- consume the response and associate the inbound message to the request using the JMSCorrelationID (as you may be performing many concurrent request/responses).
Explicitly specifying InOut
...
Code Block |
---|
jms:MyQueue?exchangePattern=InOut
|
NOTE
From Camel 1.5.1 you You can specify the exchange pattern in DSL rule or Spring configuration.
Wiki Markup |
---|
{snippet:id=example|lang=java|url=activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/SetExchangePatternTest.java} |
Wiki Markup |
---|
{snippet:id=example|lang=xml|url=activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/setExchangePattern.xml} |
Include Page |
---|
| CAMEL:Using This PatternCAMEL: |
---|
| Using This Pattern |
---|
|