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


package Counter;
public class _st_Count extends org.omg.CORBA.portable.ObjectImpl implements Counter.Count {
public int increment() { try {
org.omg.CORBA.portable.OutputStream _output = this._request("increment",true); /* Call Remote Object */
org.omg.CORBA.portable.InputStream _input = this._invoke(_output, null); /* Detect Answer */
int _result; _result =_input.read_long(); /* Returned value */
return _result; }
catch(org.omg.CORBA.TRANSIENT _exception) {
return increment(); } }
public int sum() { ... }
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
Also note that, unlike RMI, the Stub is in java and can be read by the developer.



© 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