org.exolab.jms.net.vm
Class VMManagedConnectionFactory
java.lang.Object
|
+--org.exolab.jms.net.vm.VMManagedConnectionFactory
- All Implemented Interfaces:
- ManagedConnectionFactory
- public class VMManagedConnectionFactory
- extends java.lang.Object
- implements ManagedConnectionFactory
A factory for VMConnectionFactory
, VMManagedConnection
and
VMManagedConnectionAcceptor
instances.
- Version:
- $Revision: 1.2 $ $Date: 2005/04/17 14:01:31 $
- Author:
- Tim Anderson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VMManagedConnectionFactory
public VMManagedConnectionFactory()
createConnectionFactory
public ConnectionFactory createConnectionFactory(ConnectionManager manager)
throws ResourceException
- Creates a new connection factory.
- Specified by:
createConnectionFactory
in interface ManagedConnectionFactory
- Parameters:
manager
- the connection manager- Returns:
- a new connection factory
- Throws:
ResourceException
- if the factory cannot be created
createManagedConnection
public ManagedConnection createManagedConnection(java.security.Principal principal,
ConnectionRequestInfo info)
throws ResourceException
- Creates a new connection.
- Specified by:
createManagedConnection
in interface ManagedConnectionFactory
- Parameters:
principal
- the security principalinfo
- the connection request info- Returns:
- a new connection
- Throws:
ResourceException
- if a connection cannot be established
createManagedConnectionAcceptor
public ManagedConnectionAcceptor createManagedConnectionAcceptor(Authenticator authenticator,
ConnectionRequestInfo info)
throws ResourceException
- Creates an acceptor for connections.
- Specified by:
createManagedConnectionAcceptor
in interface ManagedConnectionFactory
- Parameters:
authenticator
- authenticates incoming connectionsinfo
- the connection request info- Returns:
- a new connection acceptor
- Throws:
ResourceException
- if an acceptor cannot be created
matchManagedConnections
public ManagedConnection matchManagedConnections(java.util.List connections,
java.security.Principal principal,
ConnectionRequestInfo info)
throws ResourceException
- Returns a matched connection from the candidate set of connections.
- Specified by:
matchManagedConnections
in interface ManagedConnectionFactory
- Parameters:
connections
- the candidate connectionsprincipal
- the security principalinfo
- the connection request info- Returns:
- the first acceptable match, or
null
if none is
found - Throws:
ResourceException
- for any error
matchManagedConnectionAcceptors
public ManagedConnectionAcceptor matchManagedConnectionAcceptors(java.util.List acceptors,
ConnectionRequestInfo info)
throws ResourceException
- Returns a matched connection acceptor from the candidate set of
acceptors.
- Specified by:
matchManagedConnectionAcceptors
in interface ManagedConnectionFactory
- Parameters:
acceptors
- the candidate connection acceptorsinfo
- the connection request info- Returns:
- the first acceptable match, or
null
if none is
found - Throws:
ResourceException
- for any error
Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.