public class CamelMessageProducer extends ActiveMQMessageProducerSupport
MessageProducer which sends message exchanges to a
Camel Endpoint| Modifier and Type | Field and Description |
|---|---|
protected org.apache.camel.Producer |
producer |
defaultDeliveryMode, defaultPriority, defaultTimeToLive, disableMessageID, disableMessageTimestamp, sendTimeout, session| Constructor and Description |
|---|
CamelMessageProducer(CamelDestination destination,
org.apache.camel.Endpoint endpoint,
ActiveMQSession session) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkClosed() |
void |
close()
Closes a JMS object.
|
CamelDestination |
getDestination() |
org.apache.camel.Endpoint |
getEndpoint() |
void |
send(javax.jms.Destination destination,
javax.jms.Message message,
int deliveryMode,
int priority,
long timeToLive) |
getDeliveryMode, getDisableMessageID, getDisableMessageTimestamp, getPriority, getSendTimeout, getTimeToLive, send, send, send, setDeliveryMode, setDisableMessageID, setDisableMessageTimestamp, setPriority, setSendTimeout, setTimeToLivepublic CamelMessageProducer(CamelDestination destination, org.apache.camel.Endpoint endpoint, ActiveMQSession session) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic CamelDestination getDestination() throws javax.jms.JMSException
javax.jms.JMSExceptionpublic org.apache.camel.Endpoint getEndpoint()
public void close()
throws javax.jms.JMSException
CloseableMany JMS objects are closeable such as Connections, Sessions, Consumers and Producers.
javax.jms.JMSException - if the JMS provider fails to close the object due to
some internal error.public void send(javax.jms.Destination destination,
javax.jms.Message message,
int deliveryMode,
int priority,
long timeToLive)
throws javax.jms.JMSException
javax.jms.JMSExceptionprotected void checkClosed()
throws javax.jms.IllegalStateException
checkClosed in class ActiveMQMessageProducerSupportjavax.jms.IllegalStateExceptionCopyright © 2005-2013 Red Hat, Inc.. All Rights Reserved.