org.figure8.join.core.messaging
Interface JMSDestinationResolver

All Known Implementing Classes:
ActiveMQDestinationResolver

public interface JMSDestinationResolver

This is an interface allowing abstraction of the mechanism to implement for retrieving JMS destinations. Implementation may need the application configuration handler object that shall be set to resolver befaore any destination acquisition.

Version:
$Revision: 1.1 $
Author:
Laurent Broudoux
See Also:
ApplicationConfig

Method Summary
 javax.jms.Queue resolveQueue(java.lang.String name)
          Resolve a JMS queue using its name.
 javax.jms.Topic resolveTopic(java.lang.String name)
          Resolve a JMS topic using its name.
 void setApplicationConfig(ApplicationConfig configuration)
          Set the current application conifguration to this resolver
 

Method Detail

setApplicationConfig

void setApplicationConfig(ApplicationConfig configuration)
Set the current application conifguration to this resolver

Parameters:
configuration - The application configured settings

resolveQueue

javax.jms.Queue resolveQueue(java.lang.String name)
                             throws InfrastructureException,
                                    InvalidParameterException
Resolve a JMS queue using its name. Resolution means name resolution and application of mechanism necessary to acquire the queue (may be a remote queue)

Parameters:
name - The name of the queue to retrieve
Returns:
The acquired queue
Throws:
InfrastructureException - if acquisition context (Jndi for example) is not available
InvalidParameterException - if the specified destination name is unknown by resolution system

resolveTopic

javax.jms.Topic resolveTopic(java.lang.String name)
                             throws InfrastructureException,
                                    InvalidParameterException
Resolve a JMS topic using its name. Resolution means name resolution and application of mechanism necessary to acquire the topic (may be a remote topic)

Parameters:
name - The name of the topic to retrieve
Returns:
The acquired topic
Throws:
InfrastructureException - if acquisition context (Jndi for example) is not available
InvalidParameterException - if the specified destination name is unknown by resolution system


Copyright © 2005-2008 Join. All Rights Reserved.