Java Tutorial - Java Scipt : The Remote Interface

Java Tutorial - Java Scipt :

The Remote Interface


The code remote interface is shown below. It exposes the methods of the EJB for access by the client:
package com.oldfriends.session;

import com.oldfriends.user.UserDTO;
import java.rmi.RemoteException;
import javax.ejb.*;
public interface UserSessionRemote extends javax.ejb.EJBObject
{
public String getHello()
throws RemoteException, EJBException;
public UserDTO getUserByUserid( String userid )
throws RemoteException, EJBException;
public UserDTO getUserByLogin( String login)
throws RemoteException, EJBException;
public UserDTO getUserByEmail( String login)
throws RemoteException, EJBException;
public UserDTO addUser( UserDTO user )
throws RemoteException, EJBException;
public void updateUser( UserDTO user )
throws RemoteException, EJBException;
public UserDTO[] getUsersByYear( int year )
throws RemoteException, EJBException;
public UserDTO[] getAllUsers()
throws RemoteException, EJBException;