org.jboss.tm.iiop._TransactionFactoryExtStub Maven / Gradle / Ivy
The newest version!
package org.jboss.tm.iiop;
/**
* Generated from IDL interface "TransactionFactoryExt".
*
* @author JacORB IDL compiler V 2.3.0 (JBoss patch 4), 06-Jun-2007
* @version generated at Aug 16, 2011 8:43:25 AM
*/
public class _TransactionFactoryExtStub
extends org.omg.CORBA.portable.ObjectImpl
implements org.jboss.tm.iiop.TransactionFactoryExt
{
private String[] ids = {"IDL:org/jboss/tm/iiop/TransactionFactoryExt:1.0","IDL:omg.org/CosTransactions/TransactionFactory:1.0"};
public String[] _ids()
{
return ids;
}
public final static java.lang.Class _opsClass = org.jboss.tm.iiop.TransactionFactoryExtOperations.class;
public org.omg.CosTransactions.Control create(int time_out)
{
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
try
{
org.omg.CORBA.portable.OutputStream _os = _request( "create", true);
_os.write_ulong(time_out);
_is = _invoke(_os);
org.omg.CosTransactions.Control _result = org.omg.CosTransactions.ControlHelper.read(_is);
return _result;
}
catch( org.omg.CORBA.portable.RemarshalException _rx ){}
catch( org.omg.CORBA.portable.ApplicationException _ax )
{
String _id = _ax.getId();
throw new RuntimeException("Unexpected exception " + _id );
}
finally
{
this._releaseReply(_is);
}
}
else
{
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "create", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
TransactionFactoryExtOperations _localServant = (TransactionFactoryExtOperations)_so.servant;
org.omg.CosTransactions.Control _result;
try
{
_result = _localServant.create(time_out);
}
finally
{
_servant_postinvoke(_so);
}
return _result;
}
}
}
public org.omg.CosTransactions.Control recreate(org.omg.CosTransactions.PropagationContext ctx)
{
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
try
{
org.omg.CORBA.portable.OutputStream _os = _request( "recreate", true);
org.omg.CosTransactions.PropagationContextHelper.write(_os,ctx);
_is = _invoke(_os);
org.omg.CosTransactions.Control _result = org.omg.CosTransactions.ControlHelper.read(_is);
return _result;
}
catch( org.omg.CORBA.portable.RemarshalException _rx ){}
catch( org.omg.CORBA.portable.ApplicationException _ax )
{
String _id = _ax.getId();
throw new RuntimeException("Unexpected exception " + _id );
}
finally
{
this._releaseReply(_is);
}
}
else
{
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "recreate", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
TransactionFactoryExtOperations _localServant = (TransactionFactoryExtOperations)_so.servant;
org.omg.CosTransactions.Control _result;
try
{
_result = _localServant.recreate(ctx);
}
finally
{
_servant_postinvoke(_so);
}
return _result;
}
}
}
public org.jboss.tm.iiop.TransactionDesc create_transaction(int time_out)
{
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
try
{
org.omg.CORBA.portable.OutputStream _os = _request( "create_transaction", true);
_os.write_ulong(time_out);
_is = _invoke(_os);
org.jboss.tm.iiop.TransactionDesc _result = org.jboss.tm.iiop.TransactionDescHelper.read(_is);
return _result;
}
catch( org.omg.CORBA.portable.RemarshalException _rx ){}
catch( org.omg.CORBA.portable.ApplicationException _ax )
{
String _id = _ax.getId();
throw new RuntimeException("Unexpected exception " + _id );
}
finally
{
this._releaseReply(_is);
}
}
else
{
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "create_transaction", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
TransactionFactoryExtOperations _localServant = (TransactionFactoryExtOperations)_so.servant;
org.jboss.tm.iiop.TransactionDesc _result;
try
{
_result = _localServant.create_transaction(time_out);
}
finally
{
_servant_postinvoke(_so);
}
return _result;
}
}
}
}