org.exolab.jms.messagemgr
Class DestinationConfigurator

java.lang.Object
  |
  +--org.exolab.jms.service.Service
        |
        +--org.exolab.jms.messagemgr.DestinationConfigurator
All Implemented Interfaces:
Serviceable

public class DestinationConfigurator
extends Service

Pre-configures DestinationManager with destinations and and ConsumerManager with subscribers from an Configuration.

Version:
$Revision: 1.1 $ $Date: 2005/08/30 07:26:49 $
Author:
Tim Anderson

Constructor Summary
DestinationConfigurator(Configuration config, DestinationManager destinations, ConsumerManager consumers)
          Create a new DestinationConfigurator.
 
Method Summary
protected  void configureQueues(AdministeredQueue[] queues)
          Configure queues.
protected  void configureTopics(AdministeredTopic[] topics)
          Configure topics.
protected  void doStart()
          Start the service.
 
Methods inherited from class org.exolab.jms.service.Service
doStop, getName, isStarted, restart, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DestinationConfigurator

public DestinationConfigurator(Configuration config,
                               DestinationManager destinations,
                               ConsumerManager consumers)
Create a new DestinationConfigurator.
Parameters:
config - the configuration to use
destinations - the destination manager
consumers - the consumer manaager
Method Detail

doStart

protected void doStart()
                throws ServiceException
Start the service.
Overrides:
doStart in class Service
Throws:
ServiceException - if the service fails to start

configureTopics

protected void configureTopics(AdministeredTopic[] topics)
Configure topics.
Parameters:
topics - the topics to configure

configureQueues

protected void configureQueues(AdministeredQueue[] queues)
Configure queues.
Parameters:
queues - the queues to configure


Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.