org.apache.activemq.camel.converter
Class ActiveMQMessageConverter
java.lang.Object
org.apache.activemq.camel.converter.ActiveMQMessageConverter
@Converter
public class ActiveMQMessageConverter
- extends Object
- Version:
- $Revision: 758789 $
Method Summary |
org.apache.camel.component.jms.JmsBinding |
getBinding()
|
void |
setBinding(org.apache.camel.component.jms.JmsBinding binding)
|
ActiveMQMessage |
toMessage(org.apache.camel.Exchange exchange)
Converts the inbound message exchange to an ActiveMQ JMS message |
org.apache.camel.Processor |
toProcessor(MessageListener listener)
Allows a JMS MessageListener to be converted to a Camel Processor
so that we can provide better
Bean Integration so that we can use any JMS MessageListener in
in Camel as a bean |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActiveMQMessageConverter
public ActiveMQMessageConverter()
toMessage
@Converter
public ActiveMQMessage toMessage(org.apache.camel.Exchange exchange)
throws JMSException
- Converts the inbound message exchange to an ActiveMQ JMS message
- Returns:
- the ActiveMQ message
- Throws:
JMSException
toProcessor
@Converter
public org.apache.camel.Processor toProcessor(MessageListener listener)
- Allows a JMS
MessageListener
to be converted to a Camel Processor
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)
Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.