# JConnectionFactory (jremote API)

Read Time: 1 minute(s)

# Interface JConnectionFactory

All Known Implementing Classes:DefaultJConnectionFactory, JRemoteConnectionFactoryImpl


public interface JConnectionFactory
1

The connection factory for connections to remote a jBASE instance.

# Method Summary

Modifier and Type Method and Description
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 initialization.
JConnection getConnection(String user, String password)
Get a connection to a remote jBASE instance.
JConnection getConnection(String user, String password, Properties props)
Get a connection to a remote jBASE instance.
JConnection getConnection(String user, String account, String password)
Get a connection to a remote jBASE account.

# Method Detail

# getConnection

JConnection getConnection()
                   throws JRemoteException
1
2

Get a connection to a remote jBASE instance. Returns:JConnection The connection
Throws:JRemoteException

# getConnection

JConnection getConnection(String user,
                          String password)
                   throws JRemoteException
1
2
3

Get a connection to a remote jBASE instance. Parameters:user -password
Returns:JConnection The connection
Throws:JRemoteException

# getConnection

JConnection getConnection(String user,
                          String password,
                          Properties props)
                   throws JRemoteException
1
2
3
4

Get a connection to a remote jBASE instance. Parameters:user -password -props
Returns:JConnection The connection
Throws:JRemoteException

# getConnection

JConnection getConnection(String user,
                          String account,
                          String password)
                   throws JRemoteException
1
2
3
4

Get a connection to a remote jBASE account. Parameters:user -account -password
Returns:JConnection The connection
Throws:JRemoteException

# getConnection

JConnection getConnection(JConnectionCallbackHandler handler)
                   throws JRemoteException
1
2

Get a connection to a remote jBASE instance, in a managed environment the callback handler provides ancillary connection initialisation. Parameters:handler
Returns:JConnection The connection
Throws:JRemoteException

Back to jRemote API