org.tentackle.appworx.rmi
Class AppRemoteDbConnectionImpl

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by org.tentackle.db.rmi.RemoteDbConnectionImpl
                  extended by org.tentackle.appworx.rmi.AppRemoteDbConnectionImpl
All Implemented Interfaces:
Serializable, Remote, AppRemoteDbConnection, RemoteDbConnection

public class AppRemoteDbConnectionImpl
extends RemoteDbConnectionImpl
implements AppRemoteDbConnection

Server side connection implementation.

Author:
harald
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
AppRemoteDbConnectionImpl(DbServer server, int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf)
          Creates a connection.
 
Method Summary
 AppRemoteDbSession login(UserInfo clientInfo)
          Login to remote RMI-server.
 
Methods inherited from class org.tentackle.db.rmi.RemoteDbConnectionImpl
finalize, getClientSocketFactory, getPort, getServer, getServerSocketFactory, getServerUserInfo, logout
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.tentackle.db.rmi.RemoteDbConnection
logout
 

Constructor Detail

AppRemoteDbConnectionImpl

public AppRemoteDbConnectionImpl(DbServer server,
                                 int port,
                                 RMIClientSocketFactory csf,
                                 RMIServerSocketFactory ssf)
                          throws RemoteException
Creates a connection.

Parameters:
server - the DbServer
port - the tcp-port, 0 = system default
csf - the client socket factory, null = system default
ssf - the server socket factory, null = system default
Throws:
RemoteException
See Also:
DbServer
Method Detail

login

public AppRemoteDbSession login(UserInfo clientInfo)
                         throws RemoteException
Description copied from interface: RemoteDbConnection
Login to remote RMI-server.

Specified by:
login in interface RemoteDbConnection
Overrides:
login in class RemoteDbConnectionImpl
Parameters:
clientInfo - the user information
Returns:
the session
Throws:
RemoteException - if some error, for example wrong passord


Copyright © 2001-2008 Harald Krake, Bergstr. 48, 78098 Triberg, Germany, harald@krake.de