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. |