org.jboss.jms.server
Interface DestinationManager

All Superinterfaces:
MessagingComponent

public interface DestinationManager
extends MessagingComponent

Version:
$Revision: 1270 $ $Id: DestinationManager.java 1270 2006-09-09 11:48:48Z timfox $
Author:
Ovidiu Feodorov, Tim Fox

Method Summary
 ManagedDestination getDestination(java.lang.String name, boolean isQueue)
           
 java.util.Set getDestinations()
           
 void registerDestination(ManagedDestination destination)
          Method called by a destination service to register itself with the server peer.
 void unregisterDestination(ManagedDestination destination)
          Method called by a destination service to unregister itself from the server peer.
 
Methods inherited from interface org.jboss.messaging.core.plugin.contract.MessagingComponent
start, stop
 

Method Detail

registerDestination

public void registerDestination(ManagedDestination destination)
                         throws java.lang.Exception
Method called by a destination service to register itself with the server peer. The server peer will create and maintain state on behalf of the destination until the destination unregisters itself.

Returns:
the name under which the destination was bound in JNDI.
Throws:
java.lang.Exception

unregisterDestination

public void unregisterDestination(ManagedDestination destination)
                           throws java.lang.Exception
Method called by a destination service to unregister itself from the server peer. The server peer is supposed to clean up the state maintained on behalf of the unregistered destination.

Throws:
java.lang.Exception

getDestination

public ManagedDestination getDestination(java.lang.String name,
                                         boolean isQueue)

getDestinations

public java.util.Set getDestinations()


Copyright © 2006 JBoss Inc. All Rights Reserved.