com.caucho.jms.jca
Class MessageSenderManager

java.lang.Object
  extended by com.caucho.jms.jca.MessageSenderManager
All Implemented Interfaces:
java.io.Serializable, ManagedConnectionFactory, ResourceAdapterAssociation

public class MessageSenderManager
extends java.lang.Object
implements ManagedConnectionFactory, ResourceAdapterAssociation

The managed factory implementation.

See Also:
Serialized Form

Field Summary
protected static java.util.logging.Logger log
           
 
Constructor Summary
MessageSenderManager()
           
 
Method Summary
 java.lang.Object createConnectionFactory()
          Creates the data source the user sees.
 java.lang.Object createConnectionFactory(ConnectionManager connManager)
          Creates the data source the user sees.
 ManagedConnection createManagedConnection(javax.security.auth.Subject subject, ConnectionRequestInfo requestInfo)
          Creates the underlying managed connection.
 java.io.PrintWriter getLogWriter()
          Returns the dummy log writer.
 ResourceAdapter getResourceAdapter()
          Returns the resource adapter.
 void init()
           
 ManagedConnection matchManagedConnections(java.util.Set connSet, javax.security.auth.Subject subject, ConnectionRequestInfo requestInfo)
          Creates the underlying managed connection.
 void setLogWriter(java.io.PrintWriter log)
          Sets the dummy log writer.
 void setResourceAdapter(ResourceAdapter adapter)
          Sets the resource adapter.
 
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

log

protected static final java.util.logging.Logger log
Constructor Detail

MessageSenderManager

public MessageSenderManager()
Method Detail

getResourceAdapter

public ResourceAdapter getResourceAdapter()
Description copied from interface: ResourceAdapterAssociation
Returns the resource adapter.

Specified by:
getResourceAdapter in interface ResourceAdapterAssociation

setResourceAdapter

public void setResourceAdapter(ResourceAdapter adapter)
                        throws ResourceException
Description copied from interface: ResourceAdapterAssociation
Sets the resource adapter.

Specified by:
setResourceAdapter in interface ResourceAdapterAssociation
Throws:
ResourceException

init

@PostConstruct
public void init()
          throws ConfigException
Throws:
ConfigException

createConnectionFactory

public java.lang.Object createConnectionFactory(ConnectionManager connManager)
                                         throws ResourceException
Creates the data source the user sees.

Specified by:
createConnectionFactory in interface ManagedConnectionFactory
Throws:
ResourceException

createConnectionFactory

public java.lang.Object createConnectionFactory()
                                         throws ResourceException
Creates the data source the user sees. Not needed in this case, since ManagedFactoryImpl is only allowed in Resin.

Specified by:
createConnectionFactory in interface ManagedConnectionFactory
Throws:
ResourceException

createManagedConnection

public ManagedConnection createManagedConnection(javax.security.auth.Subject subject,
                                                 ConnectionRequestInfo requestInfo)
                                          throws ResourceException
Creates the underlying managed connection.

Specified by:
createManagedConnection in interface ManagedConnectionFactory
Throws:
ResourceException

matchManagedConnections

public ManagedConnection matchManagedConnections(java.util.Set connSet,
                                                 javax.security.auth.Subject subject,
                                                 ConnectionRequestInfo requestInfo)
                                          throws ResourceException
Creates the underlying managed connection.

Specified by:
matchManagedConnections in interface ManagedConnectionFactory
Throws:
ResourceException

getLogWriter

public java.io.PrintWriter getLogWriter()
Returns the dummy log writer.

Specified by:
getLogWriter in interface ManagedConnectionFactory

setLogWriter

public void setLogWriter(java.io.PrintWriter log)
Sets the dummy log writer.

Specified by:
setLogWriter in interface ManagedConnectionFactory