Exemplo n.º 1
0
 /** Useful from external BadServerIdHandlers which need to pick a particular port type. */
 public int getServerPortForType(
     com.sun.corba.se.PortableActivationIDL.LocatorPackage.ServerLocationPerORB location,
     String endPointType)
     throws com.sun.corba.se.PortableActivationIDL.NoSuchEndPoint {
   org.omg.CORBA.portable.InputStream $in = null;
   try {
     org.omg.CORBA.portable.OutputStream $out = _request("getServerPortForType", true);
     com.sun.corba.se.PortableActivationIDL.LocatorPackage.ServerLocationPerORBHelper.write(
         $out, location);
     $out.write_string(endPointType);
     $in = _invoke($out);
     int $result = com.sun.corba.se.PortableActivationIDL.TCPPortHelper.read($in);
     return $result;
   } catch (org.omg.CORBA.portable.ApplicationException $ex) {
     $in = $ex.getInputStream();
     String _id = $ex.getId();
     if (_id.equals("IDL:PortableActivationIDL/NoSuchEndPoint:1.0"))
       throw com.sun.corba.se.PortableActivationIDL.NoSuchEndPointHelper.read($in);
     else throw new org.omg.CORBA.MARSHAL(_id);
   } catch (org.omg.CORBA.portable.RemarshalException $rm) {
     return getServerPortForType(location, endPointType);
   } finally {
     _releaseReply($in);
   }
 } // getServerPortForType
Exemplo n.º 2
0
 public static synchronized org.omg.CORBA.TypeCode type() {
   if (__typeCode == null) {
     __typeCode = org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_long);
     __typeCode =
         org.omg
             .CORBA
             .ORB
             .init()
             .create_alias_tc(
                 com.sun.corba.se.PortableActivationIDL.TCPPortHelper.id(), "TCPPort", __typeCode);
   }
   return __typeCode;
 }