001 package org.omg.CosTransactions; 002 003 004 /** 005 * Generated from IDL interface "TransactionFactory". 006 * 007 * @author JacORB IDL compiler V 2.3.0 (JBoss patch 6), 06-Jun-2007 008 * @version generated at Jun 18, 2012 10:37:00 AM 009 */ 010 011 public class _TransactionFactoryStub 012 extends org.omg.CORBA.portable.ObjectImpl 013 implements org.omg.CosTransactions.TransactionFactory 014 { 015 private String[] ids = {"IDL:CosTransactions/TransactionFactory:1.0"}; 016 public String[] _ids() 017 { 018 return ids; 019 } 020 021 public final static java.lang.Class _opsClass = org.omg.CosTransactions.TransactionFactoryOperations.class; 022 public org.omg.CosTransactions.Control create(int time_out) 023 { 024 while(true) 025 { 026 if(! this._is_local()) 027 { 028 org.omg.CORBA.portable.InputStream _is = null; 029 try 030 { 031 org.omg.CORBA.portable.OutputStream _os = _request( "create", true); 032 _os.write_ulong(time_out); 033 _is = _invoke(_os); 034 org.omg.CosTransactions.Control _result = org.omg.CosTransactions.ControlHelper.read(_is); 035 return _result; 036 } 037 catch( org.omg.CORBA.portable.RemarshalException _rx ){} 038 catch( org.omg.CORBA.portable.ApplicationException _ax ) 039 { 040 String _id = _ax.getId(); 041 throw new RuntimeException("Unexpected exception " + _id ); 042 } 043 finally 044 { 045 this._releaseReply(_is); 046 } 047 } 048 else 049 { 050 org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "create", _opsClass ); 051 if( _so == null ) 052 throw new org.omg.CORBA.UNKNOWN("local invocations not supported!"); 053 TransactionFactoryOperations _localServant = (TransactionFactoryOperations)_so.servant; 054 org.omg.CosTransactions.Control _result; 055 try 056 { 057 _result = _localServant.create(time_out); 058 } 059 finally 060 { 061 _servant_postinvoke(_so); 062 } 063 return _result; 064 } 065 066 } 067 068 } 069 070 public org.omg.CosTransactions.Control recreate(org.omg.CosTransactions.PropagationContext ctx) 071 { 072 while(true) 073 { 074 if(! this._is_local()) 075 { 076 org.omg.CORBA.portable.InputStream _is = null; 077 try 078 { 079 org.omg.CORBA.portable.OutputStream _os = _request( "recreate", true); 080 org.omg.CosTransactions.PropagationContextHelper.write(_os,ctx); 081 _is = _invoke(_os); 082 org.omg.CosTransactions.Control _result = org.omg.CosTransactions.ControlHelper.read(_is); 083 return _result; 084 } 085 catch( org.omg.CORBA.portable.RemarshalException _rx ){} 086 catch( org.omg.CORBA.portable.ApplicationException _ax ) 087 { 088 String _id = _ax.getId(); 089 throw new RuntimeException("Unexpected exception " + _id ); 090 } 091 finally 092 { 093 this._releaseReply(_is); 094 } 095 } 096 else 097 { 098 org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "recreate", _opsClass ); 099 if( _so == null ) 100 throw new org.omg.CORBA.UNKNOWN("local invocations not supported!"); 101 TransactionFactoryOperations _localServant = (TransactionFactoryOperations)_so.servant; 102 org.omg.CosTransactions.Control _result; 103 try 104 { 105 _result = _localServant.recreate(ctx); 106 } 107 finally 108 { 109 _servant_postinvoke(_so); 110 } 111 return _result; 112 } 113 114 } 115 116 } 117 118 }