
org.omg.XA._ResourceManagerStub Maven / Gradle / Ivy
package org.omg.XA;
/**
* Generated from IDL interface "ResourceManager".
*
* @author JacORB IDL compiler V 2.3.1 (JBoss patch01), 29-Jul-2009
* @version generated at Sep 25, 2012 5:03:58 PM
*/
public class _ResourceManagerStub
extends org.omg.CORBA.portable.ObjectImpl
implements org.omg.XA.ResourceManager
{
private String[] ids = {"IDL:omg.org/XA/ResourceManager:1.0"};
public String[] _ids()
{
return ids;
}
public final static java.lang.Class _opsClass = org.omg.XA.ResourceManagerOperations.class;
public int register_before_completion_callback(org.omg.XA.BeforeCompletionCallback bcc)
{
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
org.omg.CORBA.portable.OutputStream _os = null;
try
{
_os = _request( "register_before_completion_callback", true);
org.omg.XA.BeforeCompletionCallbackHelper.write(_os,bcc);
_is = _invoke(_os);
int _result = _is.read_ulong();
return _result;
}
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( "register_before_completion_callback", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
ResourceManagerOperations _localServant = (ResourceManagerOperations)_so.servant;
int _result;
try
{
_result = _localServant.register_before_completion_callback(bcc);
}
finally
{
_servant_postinvoke(_so);
}
return _result;
}
}
}
public void unregister_before_completion_callback(int key)
{
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
org.omg.CORBA.portable.OutputStream _os = null;
try
{
_os = _request( "unregister_before_completion_callback", true);
_os.write_ulong(key);
_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( "unregister_before_completion_callback", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
ResourceManagerOperations _localServant = (ResourceManagerOperations)_so.servant;
try
{
_localServant.unregister_before_completion_callback(key);
}
finally
{
_servant_postinvoke(_so);
}
return;
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy