Class 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 Detail

      • CamelTargetAdapter

        public CamelTargetAdapter()
    • Method Detail

      • setReplyChannel

        public void setReplyChannel​(org.springframework.messaging.MessageChannel channel)
      • getReplyChannel

        public org.springframework.messaging.MessageChannel getReplyChannel()
      • getCamelTemplate

        public org.apache.camel.ProducerTemplate getCamelTemplate()
      • send

        public boolean send​(org.springframework.messaging.Message<?> message)
                     throws Exception
        Throws:
        Exception
      • handleMessage

        public void handleMessage​(org.springframework.messaging.Message<?> message)
                           throws org.springframework.messaging.MessageDeliveryException
        Specified by:
        handleMessage in interface org.springframework.messaging.MessageHandler
        Throws:
        org.springframework.messaging.MessageDeliveryException