Interface DestinationResolver
- All Known Subinterfaces:
CachingDestinationResolver
- All Known Implementing Classes:
BeanFactoryDestinationResolver,DynamicDestinationResolver,JndiDestinationResolver
public interface DestinationResolver
Strategy interface for resolving JMS destinations.Used by
JmsTemplatefor resolving destination names from simpleStringsto actualDestinationimplementation instances.The default
DestinationResolverimplementation used byJmsTemplateinstances is theDynamicDestinationResolverclass. Consider using theJndiDestinationResolverfor more advanced scenarios.- Since:
- 1.1
- Author:
- Juergen Hoeller
- See Also:
JmsDestinationAccessor.setDestinationResolver(org.springframework.jms.support.destination.DestinationResolver),DynamicDestinationResolver,JndiDestinationResolver
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DestinationresolveDestinationName(Session session, String destinationName, boolean pubSubDomain)Resolve the given destination name, either as located resource or as dynamic destination.
Method Detail
resolveDestinationName
Destination resolveDestinationName(Session session, String destinationName, boolean pubSubDomain) throws JMSException
Resolve the given destination name, either as located resource or as dynamic destination.- Parameters:
session- the current JMS Session (may benullif the resolver implementation is able to work without it)destinationName- 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 the JMS Session failed to resolve the destinationDestinationResolutionException- in case of general destination resolution failure