Package org.omg.CORBA.portable

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


                    }
                case 7:
                    if (method.equals("prepare")) {
                        int result = target.prepare();
                        OutputStream out = reply.createReply();
                        out.write_long(result);
                        return out;
                    }
                case 8:
                    if (method.equals("rollback")) {
                        target.rollback();
View Full Code Here


                    }
                case 13:
                    if (method.equals("_get_J_status")) {
                        int result = target.get_status();
                        OutputStream out = reply.createReply();
                        out.write_long(result);
                        return out;
                    } else if (method.equals("rollback_only")) {
                        target.rollback_only();
                        OutputStream out = reply.createReply();
                        return out;
View Full Code Here

                        return out;
                    } else if (method.equals("replay_completion")) {
                        Resource arg0 = (Resource) PortableRemoteObject.narrow(in.read_Object(), Resource.class);
                        int result = target.replay_completion(arg0);
                        OutputStream out = reply.createReply();
                        out.write_long(result);
                        return out;
                    } else if (method.equals("_get_J_terminator")) {
                        Terminator result = target.get_terminator();
                        OutputStream out = reply.createReply();
                        Util.writeRemoteObject(out,result);
View Full Code Here

                    }
                case 7:
                    if (method.equals("prepare")) {
                        int result = target.prepare();
                        OutputStream out = reply.createReply();
                        out.write_long(result);
                        return out;
                    }
                case 8:
                    if (method.equals("rollback")) {
                        target.rollback();
View Full Code Here

                    }
                case 15:
                    if (method.equals("_get_portNumber")) {
                        int result = target.getPortNumber();
                        OutputStream out = reply.createReply();
                        out.write_long(result);
                        return out;
                    }
            }
            throw new BAD_OPERATION();
        } catch (SystemException ex) {
View Full Code Here

    }
   
    @Test
    public void testReadLong() {
        OutputStream oStream = orb.create_output_stream();
        oStream.write_long(-100000);
       
        InputStream iStream = oStream.create_input_stream();
        CorbaObjectReader reader = new CorbaObjectReader(iStream);
       
        Integer longValue = reader.readLong();
View Full Code Here

    @Test
    public void testReadSequence() {
        String data[] = {"one", "one", "two", "three", "five", "eight", "thirteen", "twenty-one"};
       
        OutputStream oStream = orb.create_output_stream();
        oStream.write_long(data.length);
        for (int i = 0; i < data.length; ++i) {
            oStream.write_string(data[i]);
        }

        InputStream iStream = oStream.create_input_stream();
View Full Code Here

        // }
        int member1 = 12345;
        String member2 = "54321";
        boolean member3 = true;
       
        oStream.write_long(member1);
        oStream.write_string(member2);
        oStream.write_boolean(member3);

        InputStream iStream = oStream.create_input_stream();
        CorbaObjectReader reader = new CorbaObjectReader(iStream);
View Full Code Here

    public void testReadEnum() {
        OutputStream oStream = orb.create_output_stream();
       
        // create the following enum
        // enum { RED, GREEN, BLUE };
        oStream.write_long(1);
        InputStream iStream = oStream.create_input_stream();
        CorbaObjectReader reader = new CorbaObjectReader(iStream);
       
        String[] enums = {"RED", "GREEN", "BLUE" };
        Enum enumType = new Enum();
View Full Code Here

        if ( !Util.isLocal ( this ) ) {
            try {
                org.omg.CORBA_2_3.portable.InputStream in = null;
                try {
                    OutputStream out = _request ( "begin", true );
                    out.write_long ( arg0 );
                    in = (org.omg.CORBA_2_3.portable.InputStream) _invoke ( out );
                    return (String) in.read_value ( String.class );
                } catch ( ApplicationException ex ) {
                    in = (org.omg.CORBA_2_3.portable.InputStream) ex
                            .getInputStream ();
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.