01: /**
02: * Copyright © 2002 Sun Microsystems, Inc. All rights reserved.
03: */package com.sun.portal.sample.j2ee.count.ejb;
04:
05: /**
06: * Remote interface for the GreeterEJB. The remote interface defines all possible
07: * business methods for the bean. These are the methods going tobe invoked remotely
08: * by clients, once they have a reference to the remote interface.
09: *
10: * Clients (GreeterServlet, in this case), generally take the help of JNDI to lookup
11: * the bean's home interface (GreeterHome, in this case) and then use the home interface
12: * to obtain references to the bean's remote interface (Greeter, in this case).
13: *
14: */
15: public interface Count extends javax.ejb.EJBObject {
16: /**
17: * Returns a greeting.
18: * @return returns a greeting as a string.
19: * @exception throws a RemoteException.
20: *
21: */
22: public int getCount() throws java.rmi.RemoteException;
23: }
|