org.objectweb.joram.client.connector

Class OutboundConnectionFactory

Implemented Interfaces:
javax.jms.ConnectionFactory, javax.resource.Referenceable, java.io.Serializable
Known Direct Subclasses:
OutboundQueueConnectionFactory, OutboundTopicConnectionFactory

public class OutboundConnectionFactory
extends java.lang.Object
implements javax.jms.ConnectionFactory, java.io.Serializable, javax.resource.Referenceable

An OutboundConnectionFactory instance is used for getting a connection to an underlying JORAM server.

See Also:
Serialized Form

Field Summary

protected ConnectionManager
cxManager
Manager for connection pooling.
protected ManagedConnectionFactoryImpl
mcf
Central manager for outbound connectivity.
protected Reference
reference
Naming reference of this instance.

Method Summary

javax.jms.Connection
createConnection()
Requests a connection for the default user, eventually returns an OutboundConnection instance.
javax.jms.Connection
createConnection(String userName, String password)
Requests a connection for a given user, eventually returns an OutboundConnection instance.
Reference
getReference()
Returns the naming reference of this factory.
void
setReference(Reference ref)
Sets the naming reference of this factory.

Field Details

cxManager

protected ConnectionManager cxManager
Manager for connection pooling.


mcf

protected ManagedConnectionFactoryImpl mcf
Central manager for outbound connectivity.


reference

protected Reference reference
Naming reference of this instance.

Method Details

createConnection

public javax.jms.Connection createConnection()
            throws JMSException
Requests a connection for the default user, eventually returns an OutboundConnection instance.


createConnection

public javax.jms.Connection createConnection(String userName,
                                             String password)
            throws JMSException
Requests a connection for a given user, eventually returns an OutboundConnection instance.


getReference

public Reference getReference()
Returns the naming reference of this factory.


setReference

public void setReference(Reference ref)
Sets the naming reference of this factory.


Copyright B) 2004 Scalagent - All rights reserved