org.exolab.jms.messagemgr
Interface MessageManager

All Known Implementing Classes:
MessageMgr

public interface MessageManager

Enter description here.

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

Method Summary
 void add(MessageImpl message)
          Add a message.
 void addEventListener(JmsDestination destination, MessageManagerEventListener listener)
          Register a listener for a specific destination, to be notified when messages for the destination arrive.
 void prepare(MessageImpl message)
          Prepares a message prior to it being passed through the system.
 void removeEventListener(JmsDestination destination)
          Remove the listener for the specified destination.
 

Method Detail

prepare

public void prepare(MessageImpl message)
             throws javax.jms.JMSException
Prepares a message prior to it being passed through the system.
Parameters:
message - the message
Throws:
javax.jms.JMSException - if the message is invalid or cannot be prep'ed

add

public void add(MessageImpl message)
         throws javax.jms.JMSException
Add a message.
Parameters:
message - the message to add
Throws:
javax.jms.JMSException - if the message cannot be added

addEventListener

public void addEventListener(JmsDestination destination,
                             MessageManagerEventListener listener)
Register a listener for a specific destination, to be notified when messages for the destination arrive.
Parameters:
destination - the destination to register the listener for
listener - the listener to notify

removeEventListener

public void removeEventListener(JmsDestination destination)
Remove the listener for the specified destination.
Parameters:
destination - the destination to remove the listener for


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