接口 DestinationResolver
- 所有已知子接口:
CachingDestinationResolver
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.
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 DestinationresolveDestinationName(Session session, String destinationName, boolean pubSubDomain)Resolve the given destination name, either as located resource or as dynamic destination.
方法详细资料
resolveDestinationName
Destination resolveDestinationName(Session session, String destinationName, boolean pubSubDomain) throws JMSException
Resolve the given destination name, either as located resource or as dynamic destination.- 参数:
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- 返回:
- the JMS destination (either a topic or a queue)
- 抛出:
JMSException- if the JMS Session failed to resolve the destinationDestinationResolutionException- in case of general destination resolution failure