org.apache.camel.component.jms
Class JmsTemporaryTopicEndpoint

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.JmsTemporaryTopicEndpoint
All Implemented Interfaces:
CamelContextAware, DestinationEndpoint, Endpoint, IsSingleton, MultipleConsumersSupport, HeaderFilterStrategyAware, ManagementAware<JmsEndpoint>

public class JmsTemporaryTopicEndpoint
extends JmsEndpoint
implements DestinationEndpoint

A JMS Endpoint for working with a TemporaryTopic

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

Version:
$Revision: 19503 $

Constructor Summary
JmsTemporaryTopicEndpoint(String uri, JmsComponent component, String destination, JmsConfiguration configuration)
           
JmsTemporaryTopicEndpoint(String endpointUri, String destination)
           
JmsTemporaryTopicEndpoint(TemporaryTopic 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.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
 

Constructor Detail

JmsTemporaryTopicEndpoint

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

JmsTemporaryTopicEndpoint

public JmsTemporaryTopicEndpoint(String endpointUri,
                                 String destination)

JmsTemporaryTopicEndpoint

public JmsTemporaryTopicEndpoint(TemporaryTopic 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.