|
jremote jbase5.2.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jbase.jremote.jca.JRemoteConnectionFactoryImpl
public class JRemoteConnectionFactoryImpl
The concrete implementation of a remote jBASE connection factory.
This factory can be used from a managed and non managed environment (see Java
Connector Architecture specification). In the managed environment an application
server or other environment will supply a ManagedConnectionFactory that holds all
the details for how to create a connection. For example a user name, host address, or
account to connect to.
When used in a managed environment it is expected that this factory will be constructed
with a ConnectionManager that offers connection pooling or a better level of service.
The non managed environment will use a default ConnectionManager that offers little or
no support for connection pooling.
Constructor Summary | |
---|---|
JRemoteConnectionFactoryImpl()
Construct a connection factory for use in a non managed environment using the default connection manager. |
|
JRemoteConnectionFactoryImpl(javax.resource.spi.ManagedConnectionFactory mcf)
Construct a connection factory for use in a non managed environment using the default connection manager. |
|
JRemoteConnectionFactoryImpl(javax.resource.spi.ManagedConnectionFactory mcf,
javax.resource.spi.ConnectionManager cm)
Constructor for managed connection factory. |
Method Summary | |
---|---|
JConnection |
getConnection()
Get a connection to a remote jBASE instance. |
JConnection |
getConnection(JConnectionCallbackHandler handler)
Get a connection to a remote jBASE instance, in a managed environment the callback handler provides ancillary connection initialisation. |
JConnection |
getConnection(java.lang.String user,
java.lang.String password)
Get a connection to a remote jBASE instance. |
JConnection |
getConnection(java.lang.String user,
java.lang.String password,
java.util.Properties props)
Get a connection to a remote jBASE instance. |
JConnection |
getConnection(java.lang.String user,
java.lang.String account,
java.lang.String password)
Get a connection to a remote jBASE account. |
protected JConnection |
getConnection(java.lang.String user,
java.lang.String account,
java.lang.String password,
JConnectionCallbackHandler handler)
|
javax.naming.Reference |
getReference()
|
void |
setReference(javax.naming.Reference reference)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JRemoteConnectionFactoryImpl()
Construct a connection factory for use in a non managed environment using the default connection manager.
DefaultConnectionManager
public JRemoteConnectionFactoryImpl(javax.resource.spi.ManagedConnectionFactory mcf)
Construct a connection factory for use in a non managed environment using the default connection manager.
DefaultConnectionManager
public JRemoteConnectionFactoryImpl(javax.resource.spi.ManagedConnectionFactory mcf, javax.resource.spi.ConnectionManager cm)
Constructor for managed connection factory. The application server will use this constructor and supply a configured ManagedConnectionFactory and ConnectionManager. This class will hook into the application server connection pool via the supplied ConnectionManager.
Method Detail |
---|
public JConnection getConnection() throws JRemoteException
JConnectionFactory
Get a connection to a remote jBASE instance.
getConnection
in interface JConnectionFactory
JRemoteException
public JConnection getConnection(java.lang.String user, java.lang.String password) throws JRemoteException
JConnectionFactory
Get a connection to a remote jBASE instance.
getConnection
in interface JConnectionFactory
JRemoteException
public JConnection getConnection(java.lang.String user, java.lang.String password, java.util.Properties props) throws JRemoteException
JConnectionFactory
Get a connection to a remote jBASE instance.
getConnection
in interface JConnectionFactory
JRemoteException
public JConnection getConnection(java.lang.String user, java.lang.String account, java.lang.String password) throws JRemoteException
JConnectionFactory
Get a connection to a remote jBASE account.
getConnection
in interface JConnectionFactory
JRemoteException
public JConnection getConnection(JConnectionCallbackHandler handler) throws JRemoteException
JConnectionFactory
Get a connection to a remote jBASE instance, in a managed environment the callback handler provides ancillary connection initialisation.
getConnection
in interface JConnectionFactory
JRemoteException
protected JConnection getConnection(java.lang.String user, java.lang.String account, java.lang.String password, JConnectionCallbackHandler handler) throws JRemoteException
JRemoteException
public void setReference(javax.naming.Reference reference)
Referenceable.setReference(Reference)
public javax.naming.Reference getReference() throws javax.naming.NamingException
getReference
in interface javax.naming.Referenceable
javax.naming.NamingException
Referenceable.getReference()
|
jremote jbase5.2.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |