Examples of write_value()


Examples of org.omg.CORBA.portable.OutputStream.write_value()

              if (method.equals("passCorbaValueTypeArray"))
                {
                  Info[] arg0 = (Info[]) in.read_value(Info[].class);
                  String result = target.passCorbaValueTypeArray(arg0);
                  org.omg.CORBA_2_3.portable.OutputStream out = (org.omg.CORBA_2_3.portable.OutputStream) reply.createReply();
                  out.write_value(result, String.class);
                  return out;
                }
          }
        throw new BAD_OPERATION();
      }
View Full Code Here

Examples of org.omg.CORBA.portable.OutputStream.write_value()

                    } catch ( javax.transaction.SystemException ex ) {
                        String id = "IDL:javax/transaction/SystemEx:1.0";
                        org.omg.CORBA_2_3.portable.OutputStream out = (org.omg.CORBA_2_3.portable.OutputStream) reply
                                .createExceptionReply ();
                        out.write_string ( id );
                        out.write_value ( ex,
                                javax.transaction.SystemException.class );
                        return out;
                    }
                    OutputStream out = reply.createReply ();
                    return out;
View Full Code Here

Examples of org.omg.CORBA.portable.OutputStream.write_value()

                    } catch ( javax.transaction.SystemException ex ) {
                        String id = "IDL:javax/transaction/SystemEx:1.0";
                        org.omg.CORBA_2_3.portable.OutputStream out = (org.omg.CORBA_2_3.portable.OutputStream) reply
                                .createExceptionReply ();
                        out.write_string ( id );
                        out.write_value ( ex,
                                javax.transaction.SystemException.class );
                        return out;
                    }
                    OutputStream out = reply.createReply ();
                    out.write_long ( result );
View Full Code Here

Examples of org.omg.CORBA.portable.OutputStream.write_value()

                    } catch ( javax.transaction.SystemException ex ) {
                        String id = "IDL:javax/transaction/SystemEx:1.0";
                        org.omg.CORBA_2_3.portable.OutputStream out = (org.omg.CORBA_2_3.portable.OutputStream) reply
                                .createExceptionReply ();
                        out.write_string ( id );
                        out.write_value ( ex,
                                javax.transaction.SystemException.class );
                        return out;
                    }
                    OutputStream out = reply.createReply ();
                    return out;
View Full Code Here

Examples of org.omg.CORBA.portable.OutputStream.write_value()

                case 23:
                    if (method.equals("_get_J_transaction_name")) {
                        String result = target.get_transaction_name();
                        org.omg.CORBA_2_3.portable.OutputStream out =
                            (org.omg.CORBA_2_3.portable.OutputStream) reply.createReply();
                        out.write_value(result,String.class);
                        return out;
                    }
                case 24:
                    if (method.equals("register_synchronization")) {
                        RemoteSynchro arg0 = (RemoteSynchro) PortableRemoteObject.narrow(in.read_Object(), RemoteSynchro.class);
View Full Code Here

Examples of org.omg.CORBA.portable.OutputStream.write_value()

                case 13:
                    if (method.equals("_get_hostName")) {
                        String result = target.getHostName();
                        org.omg.CORBA_2_3.portable.OutputStream out =
                            (org.omg.CORBA_2_3.portable.OutputStream) reply.createReply();
                        out.write_value(result,String.class);
                        return out;
                    }
                case 15:
                    if (method.equals("_get_portNumber")) {
                        int result = target.getPortNumber();
View Full Code Here

Examples of org.omg.CORBA_2_3.portable.OutputStream.write_value()

            }

            OutputStream out = (OutputStream) reply.createExceptionReply();
            String exceptionId = getExceptionId(exceptionType);
            out.write_string(exceptionId);
            out.write_value(exception);
            return out;
        }
        throw exception;
    }
View Full Code Here

Examples of org.omg.CORBA_2_3.portable.OutputStream.write_value()

            }

            OutputStream out = (OutputStream) reply.createExceptionReply();
            String exceptionId = getExceptionId(exceptionType);
            out.write_string(exceptionId);
            out.write_value(exception);
            return out;
        }
        throw exception;
    }
View Full Code Here

Examples of org.omg.CORBA_2_3.portable.OutputStream.write_value()

                case TCKind._tk_value:      // 29
                case TCKind._tk_value_box:  // 30
                {
                    final OutputStream outputStream = ((org.omg.CORBA_2_3.portable.OutputStream)output);
                    final Serializable serializable = (Serializable)value;
                    outputStream.write_value (serializable);
                    break;
                }
                case TCKind._tk_native:     //31
                {
                    throw new BAD_TYPECODE(
View Full Code Here

Examples of org.omg.CORBA_2_3.portable.OutputStream.write_value()

            // to a stub (if needed)...
            return Utility.autoConnect(obj,orb,true);
        }

        OutputStream out = (OutputStream)orb.create_output_stream();
        out.write_value((Serializable)obj);
        InputStream in = (InputStream)out.create_input_stream();
        return in.read_value();
    }

    private ORB orb;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.