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