public class DynamicDestinationResolver extends Object implements DestinationResolver
DestinationResolver implementation resolving destination names
as dynamic destinations.Session.createQueue(java.lang.String),
Session.createTopic(java.lang.String)| Constructor and Description |
|---|
DynamicDestinationResolver() |
| Modifier and Type | Method and Description |
|---|---|
javax.jms.Destination |
resolveDestinationName(javax.jms.Session session,
String destinationName,
boolean pubSubDomain)
Resolve the specified destination name as a dynamic destination.
|
protected javax.jms.Queue |
resolveQueue(javax.jms.Session session,
String queueName)
Resolve the given destination name to a
Queue. |
protected javax.jms.Topic |
resolveTopic(javax.jms.Session session,
String topicName)
Resolve the given destination name to a
Topic. |
public javax.jms.Destination resolveDestinationName(javax.jms.Session session,
String destinationName,
boolean pubSubDomain)
throws javax.jms.JMSException
resolveDestinationName in interface DestinationResolversession - the current JMS SessiondestinationName - the name of the destinationpubSubDomain - true if the domain is pub-sub, false if P2Pjavax.jms.JMSException - if resolution failedresolveTopic(javax.jms.Session, String),
resolveQueue(javax.jms.Session, String)protected javax.jms.Topic resolveTopic(javax.jms.Session session,
String topicName)
throws javax.jms.JMSException
Topic.session - the current JMS SessiontopicName - the name of the desired TopicTopicjavax.jms.JMSException - if resolution failedSession.createTopic(String)protected javax.jms.Queue resolveQueue(javax.jms.Session session,
String queueName)
throws javax.jms.JMSException
Queue.session - the current JMS SessionqueueName - the name of the desired QueueQueuejavax.jms.JMSException - if resolution failedSession.createQueue(String)Copyright © 2017 Power TAC. All rights reserved.