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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.jms.DestinationresolveDestinationName(@Nullable jakarta.jms.Session session, String destinationName, boolean pubSubDomain) Resolve the specified destination name as a dynamic destination.protected jakarta.jms.QueueresolveQueue(jakarta.jms.Session session, String queueName) Resolve the given destination name to aQueue.protected jakarta.jms.TopicresolveTopic(jakarta.jms.Session session, String topicName) Resolve the given destination name to aTopic.
-
Constructor Details
-
DynamicDestinationResolver
public DynamicDestinationResolver()
-
-
Method Details
-
resolveDestinationName
public jakarta.jms.Destination resolveDestinationName(@Nullable jakarta.jms.Session session, String destinationName, boolean pubSubDomain) throws jakarta.jms.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:
jakarta.jms.JMSException- if resolution failed- See Also:
-
resolveTopic
protected jakarta.jms.Topic resolveTopic(jakarta.jms.Session session, String topicName) throws jakarta.jms.JMSException Resolve the given destination name to aTopic.- Parameters:
session- the current JMS SessiontopicName- the name of the desiredTopic- Returns:
- the JMS
Topic - Throws:
jakarta.jms.JMSException- if resolution failed- See Also:
-
resolveQueue
protected jakarta.jms.Queue resolveQueue(jakarta.jms.Session session, String queueName) throws jakarta.jms.JMSException Resolve the given destination name to aQueue.- Parameters:
session- the current JMS SessionqueueName- the name of the desiredQueue- Returns:
- the JMS
Queue - Throws:
jakarta.jms.JMSException- if resolution failed- See Also:
-