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


package Counter;
abstract public class _sk_Count implements CORBA.Object, Count {
public static void exec(Count _self, IOStream _stream, int _methodId) {
switch(methodId) {
case 0: // call increment
int result = _self.increment();
_stream.write_int(_result); return;
case 1: // set sum value
int value = _stream.read_int();
_self.sum(value); return;
case 2: // get sum value
int value = _self.sum();
_stream.write_int(value);
}
}
Note: This code is created automatically by
IDL-&#062Java pre-compiler from the IDL spec



© 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