com.arjuna.ArjunaOTS._JTAInterposedSynchronizationStub Maven / Gradle / Ivy
The newest version!
package com.arjuna.ArjunaOTS;
/**
* Generated from IDL interface "JTAInterposedSynchronization".
*
* @author JacORB IDL compiler V 2.3.1 (JBoss patch01), 29-Jul-2009
* @version generated at Oct 2, 2012 3:07:46 PM
*/
public class _JTAInterposedSynchronizationStub
extends org.omg.CORBA.portable.ObjectImpl
implements com.arjuna.ArjunaOTS.JTAInterposedSynchronization
{
private String[] ids = {"IDL:arjuna.com/ArjunaOTS/JTAInterposedSynchronization:1.0","IDL:omg.org/CosTransactions/TransactionalObject:1.0","IDL:omg.org/CosTransactions/Synchronization:1.0"};
public String[] _ids()
{
return ids;
}
public final static java.lang.Class _opsClass = com.arjuna.ArjunaOTS.JTAInterposedSynchronizationOperations.class;
public void before_completion()
{
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
org.omg.CORBA.portable.OutputStream _os = null;
try
{
_os = _request( "before_completion", true);
_is = _invoke(_os);
return;
}
catch( org.omg.CORBA.portable.RemarshalException _rx ){}
catch( org.omg.CORBA.portable.ApplicationException _ax )
{
String _id = _ax.getId();
try
{
_ax.getInputStream().close();
}
catch (java.io.IOException e)
{
throw new RuntimeException("Unexpected exception " + e.toString() );
}
throw new RuntimeException("Unexpected exception " + _id );
}
finally
{
if (_os != null)
{
try
{
_os.close();
}
catch (java.io.IOException e)
{
throw new RuntimeException("Unexpected exception " + e.toString() );
}
}
this._releaseReply(_is);
}
}
else
{
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "before_completion", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
JTAInterposedSynchronizationOperations _localServant = (JTAInterposedSynchronizationOperations)_so.servant;
try
{
_localServant.before_completion();
}
finally
{
_servant_postinvoke(_so);
}
return;
}
}
}
public void after_completion(org.omg.CosTransactions.Status s)
{
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
org.omg.CORBA.portable.OutputStream _os = null;
try
{
_os = _request( "after_completion", true);
org.omg.CosTransactions.StatusHelper.write(_os,s);
_is = _invoke(_os);
return;
}
catch( org.omg.CORBA.portable.RemarshalException _rx ){}
catch( org.omg.CORBA.portable.ApplicationException _ax )
{
String _id = _ax.getId();
try
{
_ax.getInputStream().close();
}
catch (java.io.IOException e)
{
throw new RuntimeException("Unexpected exception " + e.toString() );
}
throw new RuntimeException("Unexpected exception " + _id );
}
finally
{
if (_os != null)
{
try
{
_os.close();
}
catch (java.io.IOException e)
{
throw new RuntimeException("Unexpected exception " + e.toString() );
}
}
this._releaseReply(_is);
}
}
else
{
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "after_completion", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
JTAInterposedSynchronizationOperations _localServant = (JTAInterposedSynchronizationOperations)_so.servant;
try
{
_localServant.after_completion(s);
}
finally
{
_servant_postinvoke(_so);
}
return;
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy