站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 2.1.0 API 文档英文版

DestinationResolver (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版


The Spring Framework

org.springframework.jms.support.destination
Interface DestinationResolver

All Known Subinterfaces:
CachingDestinationResolver
All Known Implementing Classes:
DynamicDestinationResolver, JndiDestinationResolver

public interface DestinationResolver

Strategy interface for resolving JMS destinations.

Used by JmsTemplate for resolving destination names from simple Strings to actual Destination implementation instances.

The default DestinationResolver implementation used by JmsTemplate instances is the DynamicDestinationResolver class. Consider using the JndiDestinationResolver for more advanced scenarios.

Since:
1.1
Author:
Juergen Hoeller
See Also:
JmsDestinationAccessor.setDestinationResolver(org.springframework.jms.support.destination.DestinationResolver), DynamicDestinationResolver, JndiDestinationResolver

Method Summary
 Destination resolveDestinationName(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
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:
JMSException - if resolution failed

The Spring Framework

Copyright © 2002-2007 The Spring Framework.