Class SjmsEndpoint

  • All Implemented Interfaces:
    AutoCloseable, org.apache.camel.AsyncEndpoint, org.apache.camel.CamelContextAware, org.apache.camel.Endpoint, org.apache.camel.IsSingleton, org.apache.camel.MultipleConsumersSupport, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.HasId, org.apache.camel.spi.HeaderFilterStrategyAware, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

    @UriEndpoint(firstVersion="2.11.0",
                 scheme="sjms",
                 title="Simple JMS",
                 syntax="sjms:destinationType:destinationName",
                 category=MESSAGING,
                 headersClass=SjmsConstants.class)
    public class SjmsEndpoint
    extends org.apache.camel.support.DefaultEndpoint
    implements org.apache.camel.AsyncEndpoint, org.apache.camel.MultipleConsumersSupport, org.apache.camel.spi.HeaderFilterStrategyAware
    Send and receive messages to/from a JMS Queue or Topic using plain JMS 1.x API. This component uses plain JMS API where as the jms component uses Spring JMS.
    • Constructor Detail

      • SjmsEndpoint

        public SjmsEndpoint()
      • SjmsEndpoint

        public SjmsEndpoint​(String uri,
                            org.apache.camel.Component component,
                            String remaining)
    • Method Detail

      • getComponent

        public SjmsComponent getComponent()
        Overrides:
        getComponent in class org.apache.camel.support.DefaultEndpoint
      • doInit

        protected void doInit()
                       throws Exception
        Overrides:
        doInit in class org.apache.camel.support.DefaultEndpoint
        Throws:
        Exception
      • getEndpointConfiguredDestinationName

        public String getEndpointConfiguredDestinationName()
        Gets the destination name which was configured from the endpoint uri.
        Returns:
        the destination name resolved from the endpoint uri
      • createProducer

        public org.apache.camel.Producer createProducer()
                                                 throws Exception
        Specified by:
        createProducer in interface org.apache.camel.Endpoint
        Throws:
        Exception
      • createConsumer

        public org.apache.camel.Consumer createConsumer​(org.apache.camel.Processor processor)
                                                 throws Exception
        Specified by:
        createConsumer in interface org.apache.camel.Endpoint
        Throws:
        Exception
      • createPollingConsumer

        public org.apache.camel.PollingConsumer createPollingConsumer()
                                                               throws Exception
        Specified by:
        createPollingConsumer in interface org.apache.camel.Endpoint
        Overrides:
        createPollingConsumer in class org.apache.camel.support.DefaultEndpoint
        Throws:
        Exception
      • isMultipleConsumersSupported

        public boolean isMultipleConsumersSupported()
        Specified by:
        isMultipleConsumersSupported in interface org.apache.camel.MultipleConsumersSupport
      • createExchange

        public org.apache.camel.Exchange createExchange​(javax.jms.Message message,
                                                        javax.jms.Session session)
      • createInOnlyTemplate

        public SjmsTemplate createInOnlyTemplate()
        Factory method for creating a new template for InOnly message exchanges
      • createInOutTemplate

        public SjmsTemplate createInOutTemplate()
        Factory method for creating a new template for InOut message exchanges
      • isPreserveMessageQos

        public boolean isPreserveMessageQos()
      • setPreserveMessageQos

        public void setPreserveMessageQos​(boolean preserveMessageQos)
      • setBinding

        public void setBinding​(JmsBinding binding)
      • getAsyncStartStopExecutorService

        protected ExecutorService getAsyncStartStopExecutorService()
      • setDestinationName

        public void setDestinationName​(String destinationName)
      • getDestinationName

        public String getDestinationName()
      • getHeaderFilterStrategy

        public org.apache.camel.spi.HeaderFilterStrategy getHeaderFilterStrategy()
        Specified by:
        getHeaderFilterStrategy in interface org.apache.camel.spi.HeaderFilterStrategyAware
      • setHeaderFilterStrategy

        public void setHeaderFilterStrategy​(org.apache.camel.spi.HeaderFilterStrategy strategy)
        Specified by:
        setHeaderFilterStrategy in interface org.apache.camel.spi.HeaderFilterStrategyAware
      • isIncludeAllJMSXProperties

        public boolean isIncludeAllJMSXProperties()
      • setIncludeAllJMSXProperties

        public void setIncludeAllJMSXProperties​(boolean includeAllJMSXProperties)
      • isTopic

        public boolean isTopic()
      • getConcurrentConsumers

        public int getConcurrentConsumers()
      • setConcurrentConsumers

        public void setConcurrentConsumers​(int concurrentConsumers)
      • getReplyToConcurrentConsumers

        public int getReplyToConcurrentConsumers()
      • setReplyToConcurrentConsumers

        public void setReplyToConcurrentConsumers​(int replyToConcurrentConsumers)
      • getExplicitQosEnabled

        public Boolean getExplicitQosEnabled()
      • setExplicitQosEnabled

        public void setExplicitQosEnabled​(Boolean explicitQosEnabled)
      • isExplicitQosEnabled

        public boolean isExplicitQosEnabled()
      • getPriority

        public int getPriority()
      • setPriority

        public void setPriority​(int priority)
      • isDeliveryPersistent

        public boolean isDeliveryPersistent()
      • setDeliveryPersistent

        public void setDeliveryPersistent​(boolean deliveryPersistent)
      • isDisableReplyTo

        public boolean isDisableReplyTo()
      • setDisableReplyTo

        public void setDisableReplyTo​(boolean disableReplyTo)
      • getReplyToOverride

        public String getReplyToOverride()
      • setReplyToOverride

        public void setReplyToOverride​(String replyToOverride)
      • isReplyToDeliveryPersistent

        public boolean isReplyToDeliveryPersistent()
      • setReplyToDeliveryPersistent

        public void setReplyToDeliveryPersistent​(boolean replyToDeliveryPersistent)
      • getEagerPoisonBody

        public String getEagerPoisonBody()
      • isEagerLoadingOfProperties

        public boolean isEagerLoadingOfProperties()
      • setEagerLoadingOfProperties

        public void setEagerLoadingOfProperties​(boolean eagerLoadingOfProperties)
      • setEagerPoisonBody

        public void setEagerPoisonBody​(String eagerPoisonBody)
      • getDeliveryMode

        public Integer getDeliveryMode()
      • setDeliveryMode

        public void setDeliveryMode​(Integer deliveryMode)
      • getTimeToLive

        public long getTimeToLive()
      • setTimeToLive

        public void setTimeToLive​(long timeToLive)
      • getClientId

        public String getClientId()
      • setClientId

        public void setClientId​(String clientId)
      • getDurableSubscriptionName

        public String getDurableSubscriptionName()
      • setDurableSubscriptionName

        public void setDurableSubscriptionName​(String durableSubscriptionName)
      • getRequestTimeout

        public long getRequestTimeout()
      • setRequestTimeout

        public void setRequestTimeout​(long requestTimeout)
      • getMessageSelector

        public String getMessageSelector()
      • setMessageSelector

        public void setMessageSelector​(String messageSelector)
      • isTransacted

        public boolean isTransacted()
      • setTransacted

        public void setTransacted​(boolean transacted)
      • getReplyTo

        public String getReplyTo()
      • setReplyTo

        public void setReplyTo​(String replyTo)
      • setReplyToType

        public void setReplyToType​(ReplyToType replyToType)
      • isTestConnectionOnStartup

        public boolean isTestConnectionOnStartup()
      • setTestConnectionOnStartup

        public void setTestConnectionOnStartup​(boolean testConnectionOnStartup)
      • setAsyncStartListener

        public void setAsyncStartListener​(boolean asyncStartListener)
      • setAsyncStopListener

        public void setAsyncStopListener​(boolean asyncStopListener)
      • isAsyncStartListener

        public boolean isAsyncStartListener()
      • isAsyncStopListener

        public boolean isAsyncStopListener()
      • isAutoStartup

        public boolean isAutoStartup()
      • setAutoStartup

        public void setAutoStartup​(boolean autoStartup)
      • setDestinationCreationStrategy

        public void setDestinationCreationStrategy​(DestinationCreationStrategy destinationCreationStrategy)
      • isReplyToSameDestinationAllowed

        public boolean isReplyToSameDestinationAllowed()
      • setReplyToSameDestinationAllowed

        public void setReplyToSameDestinationAllowed​(boolean replyToSameDestinationAllowed)
      • isAllowNullBody

        public boolean isAllowNullBody()
      • setAllowNullBody

        public void setAllowNullBody​(boolean allowNullBody)
      • isMapJmsMessage

        public boolean isMapJmsMessage()
      • setMapJmsMessage

        public void setMapJmsMessage​(boolean mapJmsMessage)
      • setMessageCreatedStrategy

        public void setMessageCreatedStrategy​(MessageCreatedStrategy messageCreatedStrategy)
      • setJmsKeyFormatStrategy

        public void setJmsKeyFormatStrategy​(JmsKeyFormatStrategy jmsKeyFormatStrategy)
      • getConnectionFactory

        public javax.jms.ConnectionFactory getConnectionFactory()
      • setConnectionFactory

        public void setConnectionFactory​(javax.jms.ConnectionFactory connectionFactory)
      • getExceptionListener

        public javax.jms.ExceptionListener getExceptionListener()
      • setExceptionListener

        public void setExceptionListener​(javax.jms.ExceptionListener exceptionListener)
      • setJmsObjectFactory

        public void setJmsObjectFactory​(JmsObjectFactory jmsObjectFactory)
      • isTransferException

        public boolean isTransferException()
      • setTransferException

        public void setTransferException​(boolean transferException)
      • isDisableTimeToLive

        public boolean isDisableTimeToLive()
      • setDisableTimeToLive

        public void setDisableTimeToLive​(boolean disableTimeToLive)
      • getRecoveryInterval

        public long getRecoveryInterval()
      • setRecoveryInterval

        public void setRecoveryInterval​(long recoveryInterval)
      • isAsyncConsumer

        public boolean isAsyncConsumer()
      • setAsyncConsumer

        public void setAsyncConsumer​(boolean asyncConsumer)
      • isSynchronous

        public boolean isSynchronous()
      • setSynchronous

        public void setSynchronous​(boolean synchronous)