Basic HTML version of Foils prepared May 19 1999

Foil 90 Example 2: Server-side Java Code I

From CORBA Common Object Request Broker Architecture Basic Information Track Computational Science Course CPS616 -- Spring Semester 1999. by Geoffrey Fox, Wojtek Furmanski, Nancy McCracken, Chao-Wei Ou, Shrideep Pallickara


1 class CountServantImpl extends Counter._CountImplBase {
2 private int sum_;
3 public CountServantImpl() {
4 System.out.println("Count Object Created");
5 sum_ = 0;
6 }
7 public int sum() {
8 return this.sum_;
9 }
10 public void initSum(int value) {
11 sum(value);
12 }
13 public int increment() {
14 this.sum_++;
15 return this.sum_;
16 }
17 }

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Mon Jul 5 1999