@UriEndpoint(firstVersion="2.11.0",
scheme="sjms",
title="Simple JMS",
syntax="sjms:destinationType:destinationName",
category=MESSAGING)
public class SjmsEndpoint
extends org.apache.camel.support.DefaultEndpoint
implements org.apache.camel.AsyncEndpoint, org.apache.camel.MultipleConsumersSupport, org.apache.camel.spi.HeaderFilterStrategyAware
| Constructor and Description |
|---|
SjmsEndpoint() |
SjmsEndpoint(String uri,
org.apache.camel.Component component,
String remaining) |
configureConsumer, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createExchange, doStart, doStop, equals, getCamelContext, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isSingleton, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, toStringbuild, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, finalize, getClass, notify, notifyAll, wait, wait, waitconfigureProperties, createAsyncProducer, createExchange, createExchange, getCamelContext, getEndpointBaseUri, getEndpointKey, getEndpointUri, isLenientProperties, isSingletonProducer, setCamelContextpublic SjmsComponent getComponent()
getComponent in class org.apache.camel.support.DefaultEndpointprotected void doInit()
throws Exception
doInit in class org.apache.camel.support.DefaultEndpointExceptionpublic String getEndpointConfiguredDestinationName()
public org.apache.camel.Producer createProducer()
throws Exception
createProducer in interface org.apache.camel.EndpointExceptionpublic org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
createConsumer in interface org.apache.camel.EndpointExceptionpublic org.apache.camel.PollingConsumer createPollingConsumer()
throws Exception
createPollingConsumer in interface org.apache.camel.EndpointcreatePollingConsumer in class org.apache.camel.support.DefaultEndpointExceptionpublic void configureMessageListener(EndpointMessageListener listener)
public boolean isMultipleConsumersSupported()
isMultipleConsumersSupported in interface org.apache.camel.MultipleConsumersSupportpublic org.apache.camel.Exchange createExchange(javax.jms.Message message,
javax.jms.Session session)
public SjmsTemplate createInOnlyTemplate()
public SjmsTemplate createInOutTemplate()
public MessageListenerContainer createMessageListenerContainer(SjmsEndpoint endpoint) throws Exception
Exceptionprotected void configuredQoS()
setDeliveryPersistent(boolean),
setPriority(int) or setTimeToLive(long) then we should auto default the setting of
setExplicitQosEnabled(Boolean) if its not been configured yetpublic boolean isPreserveMessageQos()
public void setPreserveMessageQos(boolean preserveMessageQos)
public JmsBinding getBinding()
protected JmsBinding createBinding()
JmsBinding to use.public void setBinding(JmsBinding binding)
protected ExecutorService getAsyncStartStopExecutorService()
public void setDestinationName(String destinationName)
public String getDestinationName()
public org.apache.camel.spi.HeaderFilterStrategy getHeaderFilterStrategy()
getHeaderFilterStrategy in interface org.apache.camel.spi.HeaderFilterStrategyAwarepublic void setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy strategy)
setHeaderFilterStrategy in interface org.apache.camel.spi.HeaderFilterStrategyAwarepublic boolean isIncludeAllJMSXProperties()
public void setIncludeAllJMSXProperties(boolean includeAllJMSXProperties)
public SessionAcknowledgementType getAcknowledgementMode()
public void setAcknowledgementMode(SessionAcknowledgementType acknowledgementMode)
public boolean isTopic()
public int getConcurrentConsumers()
public void setConcurrentConsumers(int concurrentConsumers)
public int getReplyToConcurrentConsumers()
public void setReplyToConcurrentConsumers(int replyToConcurrentConsumers)
public Boolean getExplicitQosEnabled()
public void setExplicitQosEnabled(Boolean explicitQosEnabled)
public boolean isExplicitQosEnabled()
public int getPriority()
public void setPriority(int priority)
public boolean isDeliveryPersistent()
public void setDeliveryPersistent(boolean deliveryPersistent)
public boolean isDisableReplyTo()
public void setDisableReplyTo(boolean disableReplyTo)
public String getReplyToOverride()
public void setReplyToOverride(String replyToOverride)
public boolean isReplyToDeliveryPersistent()
public void setReplyToDeliveryPersistent(boolean replyToDeliveryPersistent)
public String getEagerPoisonBody()
public boolean isEagerLoadingOfProperties()
public void setEagerLoadingOfProperties(boolean eagerLoadingOfProperties)
public void setEagerPoisonBody(String eagerPoisonBody)
public Integer getDeliveryMode()
public void setDeliveryMode(Integer deliveryMode)
public long getTimeToLive()
public void setTimeToLive(long timeToLive)
public String getClientId()
public void setClientId(String clientId)
public String getDurableSubscriptionName()
public void setDurableSubscriptionName(String durableSubscriptionName)
public long getRequestTimeout()
public void setRequestTimeout(long requestTimeout)
public String getMessageSelector()
public void setMessageSelector(String messageSelector)
public boolean isTransacted()
public void setTransacted(boolean transacted)
public String getReplyTo()
public void setReplyTo(String replyTo)
public ReplyToType getReplyToType()
public void setReplyToType(ReplyToType replyToType)
public boolean isTestConnectionOnStartup()
public void setTestConnectionOnStartup(boolean testConnectionOnStartup)
public void setAsyncStartListener(boolean asyncStartListener)
public void setAsyncStopListener(boolean asyncStopListener)
public boolean isAsyncStartListener()
public boolean isAsyncStopListener()
public boolean isAutoStartup()
public void setAutoStartup(boolean autoStartup)
public DestinationCreationStrategy getDestinationCreationStrategy()
public void setDestinationCreationStrategy(DestinationCreationStrategy destinationCreationStrategy)
public boolean isReplyToSameDestinationAllowed()
public void setReplyToSameDestinationAllowed(boolean replyToSameDestinationAllowed)
public boolean isAllowNullBody()
public void setAllowNullBody(boolean allowNullBody)
public boolean isMapJmsMessage()
public void setMapJmsMessage(boolean mapJmsMessage)
public MessageCreatedStrategy getMessageCreatedStrategy()
public void setMessageCreatedStrategy(MessageCreatedStrategy messageCreatedStrategy)
public JmsKeyFormatStrategy getJmsKeyFormatStrategy()
public void setJmsKeyFormatStrategy(JmsKeyFormatStrategy jmsKeyFormatStrategy)
public javax.jms.ConnectionFactory getConnectionFactory()
public void setConnectionFactory(javax.jms.ConnectionFactory connectionFactory)
public javax.jms.ExceptionListener getExceptionListener()
public void setExceptionListener(javax.jms.ExceptionListener exceptionListener)
public JmsObjectFactory getJmsObjectFactory()
public void setJmsObjectFactory(JmsObjectFactory jmsObjectFactory)
public boolean isTransferException()
public void setTransferException(boolean transferException)
public boolean isDisableTimeToLive()
public void setDisableTimeToLive(boolean disableTimeToLive)
public long getRecoveryInterval()
public void setRecoveryInterval(long recoveryInterval)
public boolean isAsyncConsumer()
public void setAsyncConsumer(boolean asyncConsumer)
public boolean isSynchronous()
public void setSynchronous(boolean synchronous)
Apache Camel