org.codehaus.activemq.ra
Class ActiveMQManagedConnectionFactory
java.lang.Object
org.codehaus.activemq.ra.ActiveMQManagedConnectionFactory
- All Implemented Interfaces:
- ManagedConnectionFactory, ResourceAdapterAssociation, Serializable
- public class ActiveMQManagedConnectionFactory
- extends Object
- implements ManagedConnectionFactory, ResourceAdapterAssociation
- Version:
- $Revision: 1.3 $
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActiveMQManagedConnectionFactory
public ActiveMQManagedConnectionFactory()
setResourceAdapter
public void setResourceAdapter(ResourceAdapter adapter)
throws ResourceException
- Specified by:
setResourceAdapter
in interface ResourceAdapterAssociation
- Throws:
ResourceException
getResourceAdapter
public ResourceAdapter getResourceAdapter()
- Specified by:
getResourceAdapter
in interface ResourceAdapterAssociation
createConnectionFactory
public Object createConnectionFactory(ConnectionManager manager)
throws ResourceException
- Specified by:
createConnectionFactory
in interface ManagedConnectionFactory
- Throws:
ResourceException
- See Also:
ManagedConnectionFactory.createConnectionFactory(javax.resource.spi.ConnectionManager)
createConnectionFactory
public Object createConnectionFactory()
throws ResourceException
- This is used when not running in an app server. For now we are creating a
ConnectionFactory that has our SimpleConnectionManager implementation but
it may be a better idea to not support this. The JMS api will have many quirks
the user may not expect when running through the resource adapter.
- Specified by:
createConnectionFactory
in interface ManagedConnectionFactory
- Throws:
ResourceException
- See Also:
ManagedConnectionFactory.createConnectionFactory()
createManagedConnection
public ManagedConnection createManagedConnection(Subject subject,
ConnectionRequestInfo info)
throws ResourceException
- Specified by:
createManagedConnection
in interface ManagedConnectionFactory
- Throws:
ResourceException
- See Also:
ManagedConnectionFactory.createManagedConnection(javax.security.auth.Subject,
javax.resource.spi.ConnectionRequestInfo)
matchManagedConnections
public ManagedConnection matchManagedConnections(Set connections,
Subject subject,
ConnectionRequestInfo info)
throws ResourceException
- Specified by:
matchManagedConnections
in interface ManagedConnectionFactory
- Throws:
ResourceException
- See Also:
ManagedConnectionFactory.matchManagedConnections(java.util.Set,
javax.security.auth.Subject,
javax.resource.spi.ConnectionRequestInfo)
setLogWriter
public void setLogWriter(PrintWriter logWriter)
throws ResourceException
- Specified by:
setLogWriter
in interface ManagedConnectionFactory
- Throws:
ResourceException
- See Also:
ManagedConnectionFactory.setLogWriter(java.io.PrintWriter)
getLogWriter
public PrintWriter getLogWriter()
throws ResourceException
- Specified by:
getLogWriter
in interface ManagedConnectionFactory
- Throws:
ResourceException
- See Also:
ManagedConnectionFactory.getLogWriter()
Copyright © 2004-2005 Protique, Ltd.. All Rights Reserved.