org.apache.camel.component.spring.integration.adapter
Class CamelTargetAdapter
java.lang.Object
org.apache.camel.component.spring.integration.adapter.AbstractCamelAdapter
org.apache.camel.component.spring.integration.adapter.CamelTargetAdapter
- All Implemented Interfaces:
- org.springframework.integration.message.MessageHandler
public class CamelTargetAdapter
- extends AbstractCamelAdapter
- implements org.springframework.integration.message.MessageHandler
CamelTargeAdapter will redirect the Spring Integration message to the Camel context.
When we inject the camel context into it, we need also specify the Camel endpoint url
we will route the Spring Integration message to the Camel context
- Version:
- $Revision: 711528 $
- Author:
- Willem Jiang
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CamelTargetAdapter
public CamelTargetAdapter()
setReplyChannel
public void setReplyChannel(org.springframework.integration.core.MessageChannel channel)
getReplyChannel
public org.springframework.integration.core.MessageChannel getReplyChannel()
getCamelTemplate
public ProducerTemplate<Exchange> getCamelTemplate()
send
public boolean send(org.springframework.integration.core.Message<?> message)
throws org.springframework.integration.message.MessageRejectedException,
org.springframework.integration.message.MessageDeliveryException
- Throws:
org.springframework.integration.message.MessageRejectedException
org.springframework.integration.message.MessageDeliveryException
handleMessage
public void handleMessage(org.springframework.integration.core.Message<?> message)
- Specified by:
handleMessage in interface org.springframework.integration.message.MessageHandler
Copyright © 2009 Apache Software Foundation. All Rights Reserved.