01: package samples.ejb;
02:
03: import javax.ejb.*;
04:
05: public class SimpleBeanEJB implements SessionBean {
06:
07: public void ejbCreate() {
08: }
09:
10: public void ejbActivate() {
11: }
12:
13: public void ejbPassivate() {
14: }
15:
16: public void ejbRemove() {
17: }
18:
19: public void setSessionContext(SessionContext sc) {
20: }
21:
22: // "Business" Methods:
23: public String sayHello(String name) {
24: return ("Hello " + name + ", have a nice day.");
25: }
26:
27: public String sayGoodbye(String name) {
28: return ("See ya, then " + name);
29: }
30:
31: }
|