org.apache.camel.component.jms
Class JmsTemporaryQueueEndpoint

java.lang.Object
  extended by org.apache.camel.impl.DefaultEndpoint
      extended by org.apache.camel.component.jms.JmsEndpoint
          extended by org.apache.camel.component.jms.JmsQueueEndpoint
              extended by org.apache.camel.component.jms.JmsTemporaryQueueEndpoint
All Implemented Interfaces:
CamelContextAware, DestinationEndpoint, Endpoint, IsSingleton, MultipleConsumersSupport, BrowsableEndpoint, HeaderFilterStrategyAware, ManagementAware<JmsEndpoint>

public class JmsTemporaryQueueEndpoint
extends JmsQueueEndpoint
implements DestinationEndpoint

A JMS Endpoint for working with a TemporaryQueue

Important: Need to be really careful to always use the same Connection otherwise the destination goes stale

Version:
$Revision: 19492 $

Constructor Summary
JmsTemporaryQueueEndpoint(String uri, JmsComponent component, String destination, JmsConfiguration configuration)
           
JmsTemporaryQueueEndpoint(String uri, JmsComponent component, String destination, JmsConfiguration configuration, QueueBrowseStrategy queueBrowseStrategy)
           
JmsTemporaryQueueEndpoint(String endpointUri, String destination)
           
JmsTemporaryQueueEndpoint(TemporaryQueue jmsDestination)
           
 
Method Summary
protected  Destination createJmsDestination(Session session)
           
 Destination getJmsDestination(Session session)
           
 Object getManagedObject(JmsEndpoint object)
           
 boolean isSingleton()
          This endpoint is a singleton so that the temporary destination instances are shared across all producers and consumers of the same endpoint URI
 
Methods inherited from class org.apache.camel.component.jms.JmsQueueEndpoint
browseExchange, createQueueBrowseStrategy, getExchanges, getMaximumBrowseSize, qeueSize, setMaximumBrowseSize
 
Methods inherited from class org.apache.camel.component.jms.JmsEndpoint
configureListenerContainer, createConsumer, createConsumer, createEndpointUri, createExchange, createExchange, createInOnlyTemplate, createInOutTemplate, createMessageListenerContainer, createPollingConsumer, createProducer, getAcknowledgementMode, getAcknowledgementModeName, getBinding, getCacheLevel, getCacheLevelName, getCamelId, getClientId, getConcurrentConsumers, getConfiguration, getConnectionFactory, getConsumerType, getDestination, getDestinationName, getDestinationResolver, getDurableSubscriptionName, getEndpointUri, getExceptionListener, getHeaderFilterStrategy, getIdleTaskExecutionLimit, getJmsKeyFormatStrategy, getJmsMessageType, getJmsOperations, getListenerConnectionFactory, getMaxConcurrentConsumers, getMaxMessagesPerTask, getMessageConverter, getMetadataJmsOperations, getMetadataJmsOperations, getPriority, getProviderMetadata, getReceiveTimeout, getRecoveryInterval, getReplyTo, getReplyToDestinationSelectorName, getReplyToTempDestinationAffinity, getRequestMapPurgePollTimeMillis, getRequestor, getRequestTimeout, getScheduledExecutorService, getSelector, getTaskExecutor, getTemplateConnectionFactory, getTemporaryQueueType, getTemporaryTopicType, getTimeToLive, getTransactionManager, getTransactionName, getTransactionTimeout, isAcceptMessagesWhileStopping, isAlwaysCopyMessage, isAutoStartup, isDeliveryPersistent, isDisableReplyTo, isEagerLoadingOfProperties, isExplicitQosEnabled, isExposeListenerSession, isMessageIdEnabled, isMessageTimestampEnabled, isMultipleConsumersSupported, isPreserveMessageQos, isPubSubDomain, isPubSubNoLocal, isReplyToDeliveryPersistent, isSubscriptionDurable, isTestConnectionOnStartup, isTransacted, isTransactedInOut, isTransferException, isTransferExchange, isUseMessageIDAsCorrelationID, isUseVersion102, newInstance, newInstance, setAcceptMessagesWhileStopping, setAcknowledgementMode, setAcknowledgementModeName, setAlwaysCopyMessage, setAutoStartup, setBinding, setCacheLevel, setCacheLevelName, setClientId, setConcurrentConsumers, setConfiguration, setConnectionFactory, setConsumerType, setDeliveryPersistent, setDestination, setDestinationName, setDestinationResolver, setDisableReplyTo, setDurableSubscriptionName, setEagerLoadingOfProperties, setExceptionListener, setExplicitQosEnabled, setExposeListenerSession, setHeaderFilterStrategy, setIdleTaskExecutionLimit, setJmsKeyFormatStrategy, setJmsMessageType, setJmsOperations, setListenerConnectionFactory, setMaxConcurrentConsumers, setMaxMessagesPerTask, setMessageConverter, setMessageIdEnabled, setMessageTimestampEnabled, setMetadataJmsOperations, setPreserveMessageQos, setPriority, setProviderMetadata, setPubSubNoLocal, setReceiveTimeout, setRecoveryInterval, setReplyTo, setReplyToDeliveryPersistent, setReplyToDestinationSelectorName, setReplyToTempDestinationAffinity, setRequestMapPurgePollTimeMillis, setRequestor, setRequestTimeout, setScheduledExecutorService, setSelector, setSubscriptionDurable, setTaskExecutor, setTemplateConnectionFactory, setTestConnectionOnStartup, setTimeToLive, setTransacted, setTransactedInOut, setTransactionManager, setTransactionName, setTransactionTimeout, setTransferException, setTransferExchange, setUseMessageIDAsCorrelationID, setUseVersion102
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
configureProperties, createExchange, createExchange, equals, getCamelContext, getComponent, getEndpointKey, getExchangePattern, getExchangeType, hashCode, isLenientProperties, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Endpoint
configureProperties, createConsumer, createExchange, createExchange, createExchange, createPollingConsumer, createProducer, getCamelContext, getEndpointKey, getEndpointUri, isLenientProperties, setCamelContext
 

Constructor Detail

JmsTemporaryQueueEndpoint

public JmsTemporaryQueueEndpoint(String uri,
                                 JmsComponent component,
                                 String destination,
                                 JmsConfiguration configuration)

JmsTemporaryQueueEndpoint

public JmsTemporaryQueueEndpoint(String uri,
                                 JmsComponent component,
                                 String destination,
                                 JmsConfiguration configuration,
                                 QueueBrowseStrategy queueBrowseStrategy)

JmsTemporaryQueueEndpoint

public JmsTemporaryQueueEndpoint(String endpointUri,
                                 String destination)

JmsTemporaryQueueEndpoint

public JmsTemporaryQueueEndpoint(TemporaryQueue jmsDestination)
                          throws JMSException
Throws:
JMSException
Method Detail

isSingleton

public boolean isSingleton()
This endpoint is a singleton so that the temporary destination instances are shared across all producers and consumers of the same endpoint URI

Specified by:
isSingleton in interface IsSingleton
Overrides:
isSingleton in class JmsEndpoint
Returns:
true

getManagedObject

public Object getManagedObject(JmsEndpoint object)
Specified by:
getManagedObject in interface ManagementAware<JmsEndpoint>
Overrides:
getManagedObject in class JmsEndpoint

getJmsDestination

public Destination getJmsDestination(Session session)
                              throws JMSException
Specified by:
getJmsDestination in interface DestinationEndpoint
Throws:
JMSException

createJmsDestination

protected Destination createJmsDestination(Session session)
                                    throws JMSException
Throws:
JMSException


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.