Example #1
0
 /**
  * Invoke the server uninstall hook. If the server is not currently running, this method will
  * activate it. After this hook completes, the server may still be running.
  */
 public void uninstall(String serverId)
     throws com.sun.corba.se.PortableActivationIDL.ServerNotRegistered,
         com.sun.corba.se.PortableActivationIDL.ServerHeldDown,
         com.sun.corba.se.PortableActivationIDL.ServerAlreadyUninstalled {
   org.omg.CORBA.portable.InputStream $in = null;
   try {
     org.omg.CORBA.portable.OutputStream $out = _request("uninstall", true);
     org.omg.PortableInterceptor.ServerIdHelper.write($out, serverId);
     $in = _invoke($out);
     return;
   } catch (org.omg.CORBA.portable.ApplicationException $ex) {
     $in = $ex.getInputStream();
     String _id = $ex.getId();
     if (_id.equals("IDL:PortableActivationIDL/ServerNotRegistered:1.0"))
       throw com.sun.corba.se.PortableActivationIDL.ServerNotRegisteredHelper.read($in);
     else if (_id.equals("IDL:PortableActivationIDL/ServerHeldDown:1.0"))
       throw com.sun.corba.se.PortableActivationIDL.ServerHeldDownHelper.read($in);
     else if (_id.equals("IDL:PortableActivationIDL/ServerAlreadyUninstalled:1.0"))
       throw com.sun.corba.se.PortableActivationIDL.ServerAlreadyUninstalledHelper.read($in);
     else throw new org.omg.CORBA.MARSHAL(_id);
   } catch (org.omg.CORBA.portable.RemarshalException $rm) {
     uninstall(serverId);
   } finally {
     _releaseReply($in);
   }
 } // uninstall
 public void _read(org.omg.CORBA.portable.InputStream i) {
   value = com.sun.corba.se.PortableActivationIDL.ServerAlreadyUninstalledHelper.read(i);
 }