Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.activemq.ra
Class ActiveMQManagedConnectionFactory  view ActiveMQManagedConnectionFactory download ActiveMQManagedConnectionFactory.java

java.lang.Object
  extended byorg.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 $

Field Summary
private  ActiveMQResourceAdapter adapter
           
private  ActiveMQConnectionRequestInfo info
           
private  java.io.PrintWriter logWriter
           
 
Constructor Summary
ActiveMQManagedConnectionFactory()
           
 
Method Summary
 java.lang.Object createConnectionFactory()
          This is used when not running in an app server.
 java.lang.Object createConnectionFactory(javax.resource.spi.ConnectionManager manager)
           
 javax.resource.spi.ManagedConnection createManagedConnection(javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo info)
           
 java.lang.String getClientid()
           
 java.io.PrintWriter getLogWriter()
           
 java.lang.String getPassword()
           
 javax.resource.spi.ResourceAdapter getResourceAdapter()
           
 java.lang.String getServerUrl()
           
 java.lang.Boolean getUseInboundSession()
           
 java.lang.String getUserName()
           
 javax.resource.spi.ManagedConnection matchManagedConnections(java.util.Set connections, javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo info)
           
 void setClientid(java.lang.String clientid)
           
 void setLogWriter(java.io.PrintWriter logWriter)
           
 void setPassword(java.lang.String password)
           
 void setResourceAdapter(javax.resource.spi.ResourceAdapter adapter)
           
 void setServerUrl(java.lang.String url)
           
 void setUseInboundSession(java.lang.Boolean useInboundSession)
           
 void setUserName(java.lang.String userid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.resource.spi.ManagedConnectionFactory
equals, hashCode
 

Field Detail

adapter

private ActiveMQResourceAdapter adapter

logWriter

private java.io.PrintWriter logWriter

info

private ActiveMQConnectionRequestInfo info
Constructor Detail

ActiveMQManagedConnectionFactory

public ActiveMQManagedConnectionFactory()
Method Detail

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)