1 package org.activeio.oneport;
2
3 /***
4 * Interface definition: TestIIOPServer.
5 *
6 * @author OpenORB Compiler
7 */
8 public class _TestIIOPServerStub extends org.omg.CORBA.portable.ObjectImpl
9 implements TestIIOPServer
10 {
11 static final String[] _ids_list =
12 {
13 "IDL:org/activeio/oneport/TestIIOPServer:1.0"
14 };
15
16 public String[] _ids()
17 {
18 return _ids_list;
19 }
20
21 private final static Class _opsClass = org.activeio.oneport.TestIIOPServerOperations.class;
22
23 /***
24 * Operation test
25 */
26 public void test()
27 {
28 while(true)
29 {
30 if (!this._is_local())
31 {
32 org.omg.CORBA.portable.InputStream _input = null;
33 try
34 {
35 org.omg.CORBA.portable.OutputStream _output = this._request("test",true);
36 _input = this._invoke(_output);
37 return;
38 }
39 catch(org.omg.CORBA.portable.RemarshalException _exception)
40 {
41 continue;
42 }
43 catch(org.omg.CORBA.portable.ApplicationException _exception)
44 {
45 String _exception_id = _exception.getId();
46 throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: "+ _exception_id);
47 }
48 finally
49 {
50 this._releaseReply(_input);
51 }
52 }
53 else
54 {
55 org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke("test",_opsClass);
56 if (_so == null)
57 continue;
58 org.activeio.oneport.TestIIOPServerOperations _self = (org.activeio.oneport.TestIIOPServerOperations) _so.servant;
59 try
60 {
61 _self.test();
62 return;
63 }
64 finally
65 {
66 _servant_postinvoke(_so);
67 }
68 }
69 }
70 }
71
72 }