Class ActiveMQMessageConverter
- java.lang.Object
-
- org.apache.camel.component.activemq.converter.ActiveMQMessageConverter
-
@Converter(generateLoader=true) public class ActiveMQMessageConverter extends Object
-
-
Constructor Summary
Constructors Constructor Description ActiveMQMessageConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.camel.component.jms.JmsBinding
getBinding()
void
setBinding(org.apache.camel.component.jms.JmsBinding binding)
org.apache.activemq.command.ActiveMQMessage
toMessage(org.apache.camel.Exchange exchange)
Converts the inbound message exchange to an ActiveMQ JMS messageorg.apache.camel.Processor
toProcessor(javax.jms.MessageListener listener)
Allows a JMSMessageListener
to be converted to a CamelProcessor
so that we can provide better Bean Integration so that we can use any JMS MessageListener in in Camel as a bean
-
-
-
Method Detail
-
toMessage
@Converter public org.apache.activemq.command.ActiveMQMessage toMessage(org.apache.camel.Exchange exchange) throws javax.jms.JMSException
Converts the inbound message exchange to an ActiveMQ JMS message- Returns:
- the ActiveMQ message
- Throws:
javax.jms.JMSException
-
toProcessor
@Converter public org.apache.camel.Processor toProcessor(javax.jms.MessageListener listener)
Allows a JMSMessageListener
to be converted to a CamelProcessor
so that we can provide better Bean Integration so that we can use any JMS MessageListener in in Camel as a bean- Parameters:
listener
- the JMS message listener- Returns:
- a newly created Camel Processor which when invoked will invoke
MessageListener.onMessage(Message)
-
getBinding
public org.apache.camel.component.jms.JmsBinding getBinding()
-
setBinding
public void setBinding(org.apache.camel.component.jms.JmsBinding binding)
-
-