Basic HTML version of Foils prepared Aug 14 1997

Foil 48 Example: Server-side Skeleton

From JavaBeans CORBA ComponentWare UC Web applications Certificate -- Aug 11,14 97. by Geoffrey C. Fox, Wojtek Furmanski


1 package Counter;
2 abstract public class _sk_Count implements CORBA.Object, Count {
3 public static void exec(Count _self, IOStream _stream, int _methodId) {
4 switch(methodId) {
5 case 0: // call increment
6 int result = _self.increment();
7 _stream.write_int(_result); return;
8 case 1: // set sum value
9 int value = _stream.read_int();
10 _self.sum(value); return;
11 case 2: // get sum value
12 int value = _self.sum();
13 _stream.write_int(value);
14 }
15
16
17 }
18 Note: This code is created automatically by
19 IDL-&#062Java pre-compiler from the IDL spec

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 Thu Jan 8 1998