Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.omg.CosNotifyComm;


Generated from IDL interface "SequencePushSupplier".

Author(s):
JacORB IDL compiler V 3.5
Version:
generated at 11-Jul-2014 12:35:18
  
 
 {
Serial version UID.
 
 	private static final long serialVersionUID = 1L;
 	private String[] ids = {"IDL:omg.org/CosNotifyComm/SequencePushSupplier:1.0","IDL:omg.org/CosNotifyComm/NotifySubscribe:1.0"};
 	public String[] _ids()
 	{
 		return ;
 	}
 
 	{
 		while(true)
 		{
 			if(! this._is_local())
 			{
 				org.omg.CORBA.portable.InputStream _is = null;
 				org.omg.CORBA.portable.OutputStream _os = null;
 				try
 				{
 					_os = _request"subscription_change"true);
 					org.omg.CosNotification.EventTypeSeqHelper.write(_os,added);
 					org.omg.CosNotification.EventTypeSeqHelper.write(_os,removed);
 					_is = _invoke(_os);
 					return;
 				}
 					{
 						continue;
 					}
 				{
 					String _id = _ax.getId();
 					try
 					{
 						if_id.equals("IDL:omg.org/CosNotifyComm/InvalidEventType:1.0"))
 						{
 							throw org.omg.CosNotifyComm.InvalidEventTypeHelper.read(_ax.getInputStream());
 						}
 						else 
 						{
 							throw new RuntimeException("Unexpected exception " + _id );
 						}
 					}
 					finally
 					{
 						try
 						{
 						}
 						catch (java.io.IOException e)
 						{
 							throw new RuntimeException("Unexpected exception " + e.toString() );
 						}
 					}
 			}
 			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"subscription_change" );
 			if_so == null )
 				continue;
 			try
 			{
 				_localServant.subscription_change(added,removed);
 				if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt
 				return;
 			}
			{
				if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt
				throw ex;
			}
			catch (RuntimeException re
			{
				if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt
				throw re;
			}
			catch (java.lang.Error err
			{
				if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt
				throw err;
			}
			finally
			{
			}
		}
		}
	}
	{
		while(true)
		{
			if(! this._is_local())
			{
				try
				{
					_os = _request"disconnect_sequence_push_supplier"true);
					_is = _invoke(_os);
					return;
				}
					{
						continue;
					}
				{
					String _id = _ax.getId();
					try
					{
					}
					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"disconnect_sequence_push_supplier" );
			if_so == null )
				continue;
			try
			{
				if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt
				return;
			}
			catch (RuntimeException re
			{
				if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt
				throw re;
			}
			catch (java.lang.Error err
			{
				if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt
				throw err;
			}
			finally
			{
			}
		}
		}
	}
New to GrepCode? Check out our FAQ X