Basic HTML version of Foils prepared May 19 1999

Foil 44 Visigenic Client-side Stub

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 package Counter;
2 public class _st_Count extends org.omg.CORBA.portable.ObjectImpl implements Counter.Count {
3 public int increment() { try {
4 org.omg.CORBA.portable.OutputStream _output = this._request("increment",true); /* Call Remote Object */
5 org.omg.CORBA.portable.InputStream _input = this._invoke(_output, null); /* Detect Answer */
6 int _result; _result =_input.read_long(); /* Returned value */
7 return _result; }
8 catch(org.omg.CORBA.TRANSIENT _exception) {
9 return increment(); } }
10 public int sum() { ... }
11
12 Note: This code is created automatically by IDL->Java pre-compiler from the IDL spec and is a fragment of full stub that implements all methods
13 Also note that, unlike RMI, the Stub is in java and can be read by the developer.

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