org.apache.camel.component.spring.integration.adapter
Class CamelTargetAdapter

java.lang.Object
  extended by org.apache.camel.component.spring.integration.adapter.AbstractCamelAdapter
      extended by 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: 792334 $

Constructor Summary
CamelTargetAdapter()
           
 
Method Summary
 ProducerTemplate<Exchange> getCamelTemplate()
           
 org.springframework.integration.core.MessageChannel getReplyChannel()
           
 void handleMessage(org.springframework.integration.core.Message<?> message)
           
 boolean send(org.springframework.integration.core.Message<?> message)
           
 void setReplyChannel(org.springframework.integration.core.MessageChannel channel)
           
 
Methods inherited from class org.apache.camel.component.spring.integration.adapter.AbstractCamelAdapter
getCamelContext, getCamelEndpointUri, isExpectReply, setCamelContext, setCamelEndpointUri, setExpectReply
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CamelTargetAdapter

public CamelTargetAdapter()
Method Detail

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


Apache CAMEL