org.apache.activemq.camel
Class CamelMessageProducer

java.lang.Object
  extended by org.apache.activemq.ActiveMQMessageProducerSupport
      extended by org.apache.activemq.camel.CamelMessageProducer
All Implemented Interfaces:
javax.jms.MessageProducer, Closeable
Direct Known Subclasses:
CamelQueueSender, CamelTopicPublisher

public class CamelMessageProducer
extends ActiveMQMessageProducerSupport

A JMS MessageProducer which sends message exchanges to a Camel Endpoint

Version:
$Revision: $

Field Summary
protected  org.apache.camel.Producer producer
           
 
Fields inherited from class org.apache.activemq.ActiveMQMessageProducerSupport
defaultDeliveryMode, defaultPriority, defaultTimeToLive, disableMessageID, disableMessageTimestamp, sendTimeout, session
 
Constructor Summary
CamelMessageProducer(CamelDestination destination, org.apache.camel.Endpoint endpoint, ActiveMQSession session)
           
 
Method Summary
protected  void checkClosed()
           
 void close()
           
 CamelDestination getDestination()
           
 org.apache.camel.Endpoint getEndpoint()
           
 void send(javax.jms.Destination destination, javax.jms.Message message, int deliveryMode, int priority, long timeToLive)
           
 
Methods inherited from class org.apache.activemq.ActiveMQMessageProducerSupport
getDeliveryMode, getDisableMessageID, getDisableMessageTimestamp, getPriority, getSendTimeout, getTimeToLive, send, send, send, setDeliveryMode, setDisableMessageID, setDisableMessageTimestamp, setPriority, setSendTimeout, setTimeToLive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

producer

protected org.apache.camel.Producer producer
Constructor Detail

CamelMessageProducer

public CamelMessageProducer(CamelDestination destination,
                            org.apache.camel.Endpoint endpoint,
                            ActiveMQSession session)
                     throws javax.jms.JMSException
Throws:
javax.jms.JMSException
Method Detail

getDestination

public CamelDestination getDestination()
                                throws javax.jms.JMSException
Throws:
javax.jms.JMSException

getEndpoint

public org.apache.camel.Endpoint getEndpoint()

close

public void close()
           throws javax.jms.JMSException
Throws:
javax.jms.JMSException

send

public void send(javax.jms.Destination destination,
                 javax.jms.Message message,
                 int deliveryMode,
                 int priority,
                 long timeToLive)
          throws javax.jms.JMSException
Throws:
javax.jms.JMSException

checkClosed

protected void checkClosed()
                    throws javax.jms.IllegalStateException
Specified by:
checkClosed in class ActiveMQMessageProducerSupport
Throws:
javax.jms.IllegalStateException


Copyright © 2005-2011 The Apache Software Foundation. All Rights Reserved.