org.activemq.ra
Class ActiveMQManagedConnectionFactory

java.lang.Object
org.activemq.ra.ActiveMQManagedConnectionFactory
- All Implemented Interfaces:
- javax.resource.spi.ManagedConnectionFactory, javax.resource.spi.ResourceAdapterAssociation, java.io.Serializable
- public class ActiveMQManagedConnectionFactory
- extends java.lang.Object
- implements javax.resource.spi.ManagedConnectionFactory, javax.resource.spi.ResourceAdapterAssociation
- Version:
- $Revision: 1.1.1.1 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
adapter
private ActiveMQResourceAdapter adapter
logWriter
private java.io.PrintWriter logWriter
info
private ActiveMQConnectionRequestInfo info
ActiveMQManagedConnectionFactory
public ActiveMQManagedConnectionFactory()
setResourceAdapter
public void setResourceAdapter(javax.resource.spi.ResourceAdapter adapter)
throws javax.resource.ResourceException
- Specified by:
setResourceAdapter in interface javax.resource.spi.ResourceAdapterAssociation
getResourceAdapter
public javax.resource.spi.ResourceAdapter getResourceAdapter()
- Specified by:
getResourceAdapter in interface javax.resource.spi.ResourceAdapterAssociation
createConnectionFactory
public java.lang.Object createConnectionFactory(javax.resource.spi.ConnectionManager manager)
throws javax.resource.ResourceException
- Specified by:
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactory
createConnectionFactory
public java.lang.Object createConnectionFactory()
throws javax.resource.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 javax.resource.spi.ManagedConnectionFactory
createManagedConnection
public javax.resource.spi.ManagedConnection createManagedConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo info)
throws javax.resource.ResourceException
- Specified by:
createManagedConnection in interface javax.resource.spi.ManagedConnectionFactory
matchManagedConnections
public javax.resource.spi.ManagedConnection matchManagedConnections(java.util.Set connections,
javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo info)
throws javax.resource.ResourceException
- Specified by:
matchManagedConnections in interface javax.resource.spi.ManagedConnectionFactory
setLogWriter
public void setLogWriter(java.io.PrintWriter logWriter)
throws javax.resource.ResourceException
- Specified by:
setLogWriter in interface javax.resource.spi.ManagedConnectionFactory
getLogWriter
public java.io.PrintWriter getLogWriter()
throws javax.resource.ResourceException
- Specified by:
getLogWriter in interface javax.resource.spi.ManagedConnectionFactory
getClientid
public java.lang.String getClientid()
getPassword
public java.lang.String getPassword()
getServerUrl
public java.lang.String getServerUrl()
getUserName
public java.lang.String getUserName()
setClientid
public void setClientid(java.lang.String clientid)
setPassword
public void setPassword(java.lang.String password)
setServerUrl
public void setServerUrl(java.lang.String url)
setUserName
public void setUserName(java.lang.String userid)
getUseInboundSession
public java.lang.Boolean getUseInboundSession()
setUseInboundSession
public void setUseInboundSession(java.lang.Boolean useInboundSession)