org.codehaus.messenger
Interface MessengerPool

All Known Implementing Classes:
MessengerPoolSupport

public interface MessengerPool

Messenger a facade over a JMS session making JMS easier to use and hiding much of the threading and pooling.

Version:
$Revision: 1.2 $
Author:
James Strachan

Method Summary
 void close()
          Closes this connection and any related Messenger instances
 Messenger getMessenger()
          Creates a new Messenger instance, using a JMS session from the pool.
 

Method Detail

close

public void close()
           throws JMSException
Closes this connection and any related Messenger instances

Throws:
JMSException

getMessenger

public Messenger getMessenger()
                       throws JMSException
Creates a new Messenger instance, using a JMS session from the pool. To return the session back to the pull, call Messenger.close()

Returns:
a new Messenger from the pool
Throws:
JMSException


Copyright © 2004 Protique, Ltd.. All Rights Reserved.