Class DynamicDestinationResolver
java.lang.Object
org.springframework.jms.support.destination.DynamicDestinationResolver
- All Implemented Interfaces:
DestinationResolver
Simple
DestinationResolver implementation resolving destination names
as dynamic destinations.- Since:
- 1.1
- Author:
- Juergen Hoeller
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolveDestinationName(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
-
DynamicDestinationResolver
public DynamicDestinationResolver()
-
-
Method Details
-
resolveDestinationName
public Destination resolveDestinationName(@Nullable Session session, String destinationName, boolean pubSubDomain) throws JMSException Resolve the specified destination name as a dynamic destination.- Specified by:
resolveDestinationNamein interfaceDestinationResolver- Parameters:
session- the current JMS SessiondestinationName- the name of the destinationpubSubDomain-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:
-
resolveTopic
Resolve the given destination name to aTopic.- Parameters:
session- the current JMS SessiontopicName- the name of the desiredTopic- Returns:
- the JMS
Topic - Throws:
JMSException- if resolution failed- See Also:
-
resolveQueue
Resolve the given destination name to aQueue.- Parameters:
session- the current JMS SessionqueueName- the name of the desiredQueue- Returns:
- the JMS
Queue - Throws:
JMSException- if resolution failed- See Also:
-