public class JmsProducer
extends org.apache.camel.support.DefaultAsyncProducer
| Constructor and Description |
|---|
JmsProducer(JmsEndpoint endpoint) |
| Modifier and Type | Method and Description |
|---|---|
protected ReplyManager |
createReplyManager() |
protected ReplyManager |
createReplyManager(String replyTo) |
protected String |
determineCorrelationId(javax.jms.Message message,
String provisionalCorrelationId)
Strategy to determine which correlation id to use among JMSMessageID and JMSCorrelationID.
|
protected void |
doSend(boolean inOut,
String destinationName,
javax.jms.Destination destination,
org.springframework.jms.core.MessageCreator messageCreator,
MessageSentCallback callback)
Sends the message using the JmsTemplate.
|
protected void |
doStart() |
protected void |
doStop() |
JmsEndpoint |
getEndpoint() |
org.springframework.jms.core.JmsOperations |
getInOnlyTemplate() |
org.springframework.jms.core.JmsOperations |
getInOutTemplate() |
org.apache.camel.spi.UuidGenerator |
getUuidGenerator() |
protected void |
initReplyManager() |
boolean |
process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback) |
protected boolean |
processInOnly(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback) |
protected boolean |
processInOut(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback) |
protected javax.jms.Destination |
resolveOrCreateDestination(String destinationName,
javax.jms.Session session) |
void |
setInOnlyTemplate(org.springframework.jms.core.JmsOperations inOnlyTemplate) |
void |
setInOutTemplate(org.springframework.jms.core.JmsOperations inOutTemplate) |
protected void |
setMessageId(org.apache.camel.Exchange exchange) |
void |
setUuidGenerator(org.apache.camel.spi.UuidGenerator uuidGenerator) |
protected void |
testConnectionOnStartup()
Pre tests the connection before starting the listening.
|
protected void |
unInitReplyManager() |
createExchange, isSingleton, toStringbuild, doBuild, doInit, doResume, doShutdown, doSuspend, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic JmsProducer(JmsEndpoint endpoint)
public JmsEndpoint getEndpoint()
getEndpoint in interface org.apache.camel.EndpointAwaregetEndpoint in class org.apache.camel.support.DefaultProducerprotected void initReplyManager()
protected void unInitReplyManager()
public boolean process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback)
protected boolean processInOut(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback)
protected String determineCorrelationId(javax.jms.Message message, String provisionalCorrelationId) throws javax.jms.JMSException
message - the JMS messageprovisionalCorrelationId - an optional provisional correlation id, which is preferred to be usedjavax.jms.JMSException - can be thrownprotected boolean processInOnly(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback)
protected void doSend(boolean inOut,
String destinationName,
javax.jms.Destination destination,
org.springframework.jms.core.MessageCreator messageCreator,
MessageSentCallback callback)
inOut - use inOut or inOnly templatedestinationName - the destination namedestination - the destination (if no name provided)messageCreator - the creator to create the Message to sendcallback - optional callback to invoke when message has been sentprotected javax.jms.Destination resolveOrCreateDestination(String destinationName, javax.jms.Session session) throws javax.jms.JMSException
javax.jms.JMSExceptionprotected void setMessageId(org.apache.camel.Exchange exchange)
public org.springframework.jms.core.JmsOperations getInOnlyTemplate()
public void setInOnlyTemplate(org.springframework.jms.core.JmsOperations inOnlyTemplate)
public org.springframework.jms.core.JmsOperations getInOutTemplate()
public void setInOutTemplate(org.springframework.jms.core.JmsOperations inOutTemplate)
public org.apache.camel.spi.UuidGenerator getUuidGenerator()
public void setUuidGenerator(org.apache.camel.spi.UuidGenerator uuidGenerator)
protected void testConnectionOnStartup()
throws org.apache.camel.FailedToCreateProducerException
org.apache.camel.FailedToCreateProducerException - is thrown if testing the connection failedprotected void doStart()
throws Exception
doStart in class org.apache.camel.support.DefaultProducerExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.DefaultProducerExceptionprotected ReplyManager createReplyManager() throws Exception
Exceptionprotected ReplyManager createReplyManager(String replyTo) throws Exception
ExceptionApache Camel