Class DynamicDestinationResolver
java.lang.Object
org.springframework.jms.support.destination.DynamicDestinationResolver
- All Implemented Interfaces:
- DestinationResolver
- Direct Known Subclasses:
- SimpleDestinationResolver
A basic 
DestinationResolver implementation freshly resolving
destination names as dynamic destinations against a given Session.- Since:
- 1.1
- Author:
- Juergen Hoeller
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionresolveDestinationName(@Nullable Session session, String destinationName, boolean pubSubDomain) Resolve the specified destination name as a dynamic destination.protected QueueresolveQueue(Session session, String queueName) Resolve the given destination name to aQueue.protected TopicresolveTopic(Session session, String topicName) Resolve the given destination name to aTopic.
- 
Constructor Details- 
DynamicDestinationResolverpublic DynamicDestinationResolver()
 
- 
- 
Method Details- 
resolveDestinationNamepublic Destination resolveDestinationName(@Nullable Session session, String destinationName, boolean pubSubDomain) throws JMSException Resolve the specified destination name as a dynamic destination.- Specified by:
- resolveDestinationNamein interface- DestinationResolver
- Parameters:
- session- the current JMS Session
- destinationName- the name of the destination
- pubSubDomain-- trueif the domain is pub-sub,- falseif P2P
- Returns:
- the JMS destination (either a topic or a queue)
- Throws:
- JMSException- if resolution failed
- See Also:
 
- 
resolveTopicResolve the given destination name to aTopic.- Parameters:
- session- the current JMS Session
- topicName- the name of the desired- Topic
- Returns:
- the JMS Topic
- Throws:
- JMSException- if resolution failed
- See Also:
 
- 
resolveQueueResolve the given destination name to aQueue.- Parameters:
- session- the current JMS Session
- queueName- the name of the desired- Queue
- Returns:
- the JMS Queue
- Throws:
- JMSException- if resolution failed
- See Also:
 
 
-