org.apache.camel.component.jms
Class EndpointMessageListener<E extends org.apache.camel.Exchange>
java.lang.Object
org.apache.camel.component.jms.EndpointMessageListener<E>
- All Implemented Interfaces:
- MessageListener
public class EndpointMessageListener<E extends org.apache.camel.Exchange>
- extends Object
- implements MessageListener
A JMS MessageListener
which can be used to delegate processing to a
Camel endpoint.
- Version:
- $Revision: 563665 $
Constructor Summary |
EndpointMessageListener(org.apache.camel.Endpoint<E> endpoint,
org.apache.camel.Processor processor)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EndpointMessageListener
public EndpointMessageListener(org.apache.camel.Endpoint<E> endpoint,
org.apache.camel.Processor processor)
onMessage
public void onMessage(Message message)
- Specified by:
onMessage
in interface MessageListener
createExchange
public JmsExchange createExchange(Message message)
getBinding
public JmsBinding getBinding()
setBinding
public void setBinding(JmsBinding binding)
- Sets the binding used to convert from a Camel message to and from a JMS
message
- Parameters:
binding
- the binding to use
Copyright © 2007 Apache Software Foundation. All Rights Reserved.