|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.joram.client.connector.OutboundConnectionFactory
An OutboundConnectionFactory
instance is used for
getting a connection to an underlying JORAM server.
Field Summary | |
protected javax.resource.spi.ConnectionManager |
cxManager
Manager for connection pooling. |
protected ManagedConnectionFactoryImpl |
mcf
Central manager for outbound connectivity. |
protected javax.naming.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(java.lang.String userName,
java.lang.String password)
Requests a connection for a given user, eventually returns an OutboundConnection instance. |
javax.naming.Reference |
getReference()
Returns the naming reference of this factory. |
void |
setReference(javax.naming.Reference ref)
Sets the naming reference of this factory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected ManagedConnectionFactoryImpl mcf
protected javax.resource.spi.ConnectionManager cxManager
protected javax.naming.Reference reference
Method Detail |
public javax.jms.Connection createConnection() throws javax.jms.JMSException
OutboundConnection
instance.
createConnection
in interface javax.jms.ConnectionFactory
javax.jms.JMSSecurityException
- If connecting is not allowed.
javax.jms.IllegalStateException
- If the underlying JORAM server
is not reachable.
javax.jms.JMSException
- Generic exception.public javax.jms.Connection createConnection(java.lang.String userName, java.lang.String password) throws javax.jms.JMSException
OutboundConnection
instance.
createConnection
in interface javax.jms.ConnectionFactory
javax.jms.JMSSecurityException
- If connecting is not allowed.
javax.jms.IllegalStateException
- If the underlying JORAM server
is not reachable.
javax.jms.JMSException
- Generic exception.public void setReference(javax.naming.Reference ref)
setReference
in interface javax.resource.Referenceable
public javax.naming.Reference getReference()
getReference
in interface javax.naming.Referenceable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |