All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.tentackle.dbms.rmi.RemoteDbConnection Maven / Gradle / Ivy

There is a newer version: 21.16.1.0
Show newest version
/**
 * Tentackle - http://www.tentackle.org
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

// Created on November 14, 2003, 2:31 PM

package org.tentackle.dbms.rmi;

import java.io.Serializable;
import java.rmi.Remote;
import java.rmi.RemoteException;
import org.tentackle.session.SessionInfo;


/**
 * RMI remote connection.
* This is the first remote object passed to the client when it connects * to the application server. The connection object handles the login * and logout to/from a session. The socket factories used for the * connection object are defined by the server. The session, however, * and all subsequent remote objects can get different socket factories * depending on what the client requests. See {@link DbServer} for more details. * * @author harald */ public interface RemoteDbConnection extends Remote { /** * Gets the application-specific version information of the server.
* * @return the version info * @throws RemoteException */ Serializable getServerVersionInfo() throws RemoteException; /** * Login to remote RMI-server. * * @param clientInfo the user information * @return the session * @throws RemoteException if some error, for example wrong passord */ RemoteDbSession login(SessionInfo clientInfo) throws RemoteException; /** * Logout from remote RMI-Server. * * @param session to be closed * @throws RemoteException if some error */ void logout(RemoteDbSession session) throws RemoteException; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy