org.exolab.jms.net.connector
Interface ConnectionManager

All Known Implementing Classes:
AbstractConnectionManager

public interface ConnectionManager

Manages the creation and acceptance of connections

Version:
$Revision: 1.1 $ $Date: 2004/11/26 01:51:03 $
Author:
Tim Anderson

Method Summary
 void accept(ManagedConnectionFactory factory, ConnectionRequestInfo info)
          Start accepting connections
 Connection allocateConnection(ManagedConnectionFactory factory, java.security.Principal principal, ConnectionRequestInfo info)
          Allocate a new connection
 

Method Detail

allocateConnection

public Connection allocateConnection(ManagedConnectionFactory factory,
                                     java.security.Principal principal,
                                     ConnectionRequestInfo info)
                              throws ResourceException
Allocate a new connection
Parameters:
factory - used to delegate connection matching/creation
principal - the security principal
info - connection request info
Returns:
the new connection
Throws:
ResourceException - if the connection cannot be allocated

accept

public void accept(ManagedConnectionFactory factory,
                   ConnectionRequestInfo info)
            throws ResourceException
Start accepting connections
Parameters:
factory - used to delegate acceptor matching/creation
info - connection request info
Throws:
ResourceException - if the connections cannot be accepted


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