java.lang.Object |
↳ |
org.springframework.jms.support.destination.DynamicDestinationResolver |
Class Overview
Simple DestinationResolver
implementation resolving destination names
as dynamic destinations.
This implementation will work on both JMS 1.1 and JMS 1.0.2,
because it uses the javax.jms.QueueSession or javax.jms.TopicSession
methods if possible, falling back to JMS 1.1's generic javax.jms.Session
methods.
See Also
- javax.jms.QueueSession#createQueue
- javax.jms.TopicSession#createTopic
- javax.jms.Session#createQueue
- javax.jms.Session#createTopic
Summary
Public Methods |
Destination
|
resolveDestinationName(Session session, String destinationName, boolean pubSubDomain)
Resolve the specified destination name as a dynamic destination.
|
Protected Methods |
Queue
|
resolveQueue(Session session, String queueName)
Resolve the given destination name to a Queue.
|
Topic
|
resolveTopic(Session session, String topicName)
Resolve the given destination name to a Topic.
|
Public Constructors
public
DynamicDestinationResolver
()
Public Methods
public
Destination
resolveDestinationName
(Session session, String destinationName, boolean pubSubDomain)
Resolve the specified destination name as a dynamic destination.
Parameters
session
| the current JMS Session |
destinationName
| the name of the destination |
pubSubDomain
| true if the domain is pub-sub, false if P2P |
Returns
- the JMS destination (either a topic or a queue)
Throws
| if resolution failed |
JMSException
| |
See Also
- #resolveTopic(javax.jms.Session, String)
- #resolveQueue(javax.jms.Session, String)
Protected Methods
protected
Queue
resolveQueue
(Session session, String queueName)
Resolve the given destination name to a Queue.
Parameters
session
| the current JMS Session |
queueName
| the name of the desired Queue |
Throws
| if resolution failed |
JMSException
| |
See Also
- Session#createQueue(String)
protected
Topic
resolveTopic
(Session session, String topicName)
Resolve the given destination name to a Topic.
Parameters
session
| the current JMS Session |
topicName
| the name of the desired Topic |
Throws
| if resolution failed |
JMSException
| |
See Also
- Session#createTopic(String)