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: MyStateful.java 9280 2006-08-01 10:15:24Z japaz $
24: * --------------------------------------------------------------------------
25: */package org.objectweb.sampleCluster2.ejb;
26:
27: import java.rmi.RemoteException;
28:
29: import javax.ejb.EJBObject;
30:
31: /**
32: * MyStateful remote interface
33: */
34: public interface MyStateful extends EJBObject {
35:
36: /**
37: * Initializes the inner beans
38: * @throws RemoteException fi invocation fails
39: */
40: void initialize() throws RemoteException;
41:
42: /**
43: * Keep the parameter in a list. Note : the parameter represents a line in
44: * the "session servlet output" screen
45: * @param s The string to keep.
46: * @throws RemoteException if invocation fails
47: */
48: void log(java.lang.String s) throws RemoteException;
49:
50: /**
51: * Keep the parameter in a list keeping track of the JOnAS instance
52: * @param s The string to keep.
53: * @throws RemoteException if invocation fails
54: */
55: void logWithJOnASInstance(java.lang.String s)
56: throws RemoteException;
57:
58: /**
59: * Retreive all the data in the log table Note : The return value is the
60: * data shown in the "session servlet output" screen
61: * @return All the logged data
62: * @throws RemoteException if invocation fails
63: */
64: java.lang.StringBuffer getLogDump() throws RemoteException;
65:
66: /**
67: * Retreive all the data in the log table Note : The return value is the
68: * text format (calls from the java client)
69: * @return All the logged data
70: * @throws RemoteException if invocation fails
71: */
72: java.lang.StringBuffer getLogTextDump() throws RemoteException;
73:
74: /**
75: * Set the http sessionid of the caller.
76: * @param s The sessionid of the caller.
77: * @throws RemoteException if invocation fails
78: */
79: void setHTTPSessionId(java.lang.String s) throws RemoteException;
80:
81: /**
82: * Get the stored http sessionid of the caller.
83: * @return The stored sessionid.
84: * @throws RemoteException if invocation fails
85: */
86: java.lang.String getHTTPSessionId() throws RemoteException;
87:
88: }
|