01: package demo.policies;
02:
03: import org.omg.CORBA.*;
04:
05: public class GoodDayImpl extends GoodDayPOA {
06: private String location;
07:
08: public GoodDayImpl(String location) {
09: this .location = location;
10: }
11:
12: public String hello(int sleep) {
13: System.out.println("Hello goes to sleep for " + sleep
14: + " msecs.");
15: try {
16: Thread.currentThread().sleep(sleep);
17: } catch (Exception e) {
18: e.printStackTrace();
19: }
20: return "Hello World, from " + location;
21: }
22:
23: }
|