|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.jms.support.destination.DynamicDestinationResolver
public class DynamicDestinationResolver
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 QueueSession
or TopicSession
methods if possible, falling back to JMS 1.1's generic Session
methods.
QueueSession.createQueue(java.lang.String)
,
TopicSession.createTopic(java.lang.String)
,
Session.createQueue(java.lang.String)
,
Session.createTopic(java.lang.String)
Constructor Summary | |
---|---|
DynamicDestinationResolver()
|
Method Summary | |
---|---|
javax.jms.Destination |
resolveDestinationName(javax.jms.Session session,
java.lang.String destinationName,
boolean pubSubDomain)
Resolve the specified destination name as a dynamic destination. |
protected javax.jms.Queue |
resolveQueue(javax.jms.Session session,
java.lang.String queueName)
Resolve the given destination name to a Queue . |
protected javax.jms.Topic |
resolveTopic(javax.jms.Session session,
java.lang.String topicName)
Resolve the given destination name to a Topic . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DynamicDestinationResolver()
Method Detail |
---|
public javax.jms.Destination resolveDestinationName(javax.jms.Session session, java.lang.String destinationName, boolean pubSubDomain) throws javax.jms.JMSException
resolveDestinationName
in interface DestinationResolver
session
- the current JMS SessiondestinationName
- the name of the destinationpubSubDomain
- true
if the domain is pub-sub, false
if P2P
javax.jms.JMSException
- if resolution failedresolveTopic(javax.jms.Session, String)
,
resolveQueue(javax.jms.Session, String)
protected javax.jms.Topic resolveTopic(javax.jms.Session session, java.lang.String topicName) throws javax.jms.JMSException
Topic
.
session
- the current JMS SessiontopicName
- the name of the desired Topic
Topic
javax.jms.JMSException
- if resolution failedSession.createTopic(String)
protected javax.jms.Queue resolveQueue(javax.jms.Session session, java.lang.String queueName) throws javax.jms.JMSException
Queue
.
session
- the current JMS SessionqueueName
- the name of the desired Queue
Queue
javax.jms.JMSException
- if resolution failedSession.createQueue(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |