org.apache.camel.component.jms
Class EndpointMessageListener<E extends org.apache.camel.Exchange>

java.lang.Object
  extended by 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: 534145 $

Constructor Summary
EndpointMessageListener(org.apache.camel.Endpoint<E> endpoint, org.apache.camel.Processor processor)
           
 
Method Summary
 JmsExchange createExchange(Message message)
           
 JmsBinding getBinding()
           
 void onMessage(Message message)
           
 void setBinding(JmsBinding binding)
          Sets the binding used to convert from a Camel message to and from a JMS message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndpointMessageListener

public EndpointMessageListener(org.apache.camel.Endpoint<E> endpoint,
                               org.apache.camel.Processor processor)
Method Detail

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.