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

DestinationResolver (Spring Framework) - Spring Framework 1.2.9 API 文档英文版


org.springframework.jms.support.destination
Interface DestinationResolver

All Known Implementing Classes:
DynamicDestinationResolver, JndiDestinationResolver

public interface DestinationResolver

Strategy interface for managing JMS destinations. Used by JmsTemplate for resolving destination names.

Default implementations are DynamicDestinationResolver and JndiDestinationResolver.

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 - whether the domain is pub-sub, else P2P
Returns:
the JMS destination (either a topic or a queue)
Throws:
JMSException - if resolution failed


Copyright (c) 2002-2007 The Spring Framework Project.