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:
JmsTemplate.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

public 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) 2003-2004 The Spring Framework Project.