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.messaging.MessageHandler
public class CamelTargetAdapter
extends AbstractCamelAdapter
implements org.springframework.messaging.MessageHandler
CamelTargetAdapter 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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.camel.ProducerTemplate
org.springframework.messaging.MessageChannel
void
handleMessage
(org.springframework.messaging.Message<?> message) boolean
send
(org.springframework.messaging.Message<?> message) void
setReplyChannel
(org.springframework.messaging.MessageChannel channel) Methods inherited from class org.apache.camel.component.spring.integration.adapter.AbstractCamelAdapter
getCamelContext, getCamelEndpointUri, isExpectReply, setCamelContext, setCamelEndpointUri, setExpectReply
-
Constructor Details
-
CamelTargetAdapter
public CamelTargetAdapter()
-
-
Method Details
-
setReplyChannel
public void setReplyChannel(org.springframework.messaging.MessageChannel channel) -
getReplyChannel
public org.springframework.messaging.MessageChannel getReplyChannel() -
getCamelTemplate
public org.apache.camel.ProducerTemplate getCamelTemplate() -
send
- Throws:
Exception
-
handleMessage
public void handleMessage(org.springframework.messaging.Message<?> message) throws org.springframework.messaging.MessageDeliveryException - Specified by:
handleMessage
in interfaceorg.springframework.messaging.MessageHandler
- Throws:
org.springframework.messaging.MessageDeliveryException
-