01: /**
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 2005-2006 Bull S.A.S
04: * Contact: jonas-team@objectweb.org
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * version 2.1 of the License, or any later version.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: * You should have received a copy of the GNU Lesser General Public
17: * License along with this library; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19: * USA
20: *
21: * Initial developer(s):
22: * --------------------------------------------------------------------------
23: * $Id: MyEjb1.java 7938 2006-01-25 17:15:26Z pelletib $
24: * --------------------------------------------------------------------------
25: */package org.objectweb.sampleCluster2.ejb;
26:
27: import java.rmi.RemoteException;
28: import java.util.Properties;
29:
30: import javax.ejb.EJBObject;
31:
32: /**
33: * MyEjb1 remote interface
34: */
35: public interface MyEjb1 extends EJBObject {
36:
37: /**
38: * Access a property stored in the JOnAS instance executing the EJB
39: * container.
40: * @param prop Name of the property
41: * @return The value of the property
42: * @throws RemoteException if invocation failed
43: */
44: String getProperty(String prop) throws RemoteException;
45:
46: /**
47: * Retreive some information of the JOnAS instance executing the EJB
48: * container The names of the properties are : EJB server, EJB id, EJB
49: * instance calls, EJB total calls - EJB server : name of the JOnAS instance -
50: * EJB id : toString() of the MyEjb1 - EJB instance calls : number of calls
51: * to this EJB instance - EJB total calls : number of calls to this EJB for
52: * all instance of class MyEjb1
53: * @return The Properties
54: * @throws RemoteException if invocation failed
55: */
56: Properties getInfoProps() throws RemoteException;
57:
58: /**
59: * Throw a MyException
60: * @throws RemoteException remote exception
61: * @throws MyException application exception
62: */
63: void throwMyException() throws RemoteException, MyException;
64:
65: }
|