Examples of insert_Streamable()


Examples of org.omg.CORBA.Any.insert_Streamable()

            } else {
                streamables[i].setMode(org.omg.CORBA.ARG_INOUT.value);
            }

            Any value = orb.create_any();
            value.insert_Streamable(streamables[i]);
            list.add_value(streamables[i].getName(), value, streamables[i].getMode());
           
            corbaMsg.addStreamableArgument(streamables[i]);
        }       
        return list;
View Full Code Here

Examples of org.omg.CORBA.Any.insert_Streamable()

        assertNotNull(arguments[2]);
        assertNotNull(arguments[3]);
       
        NVList list = orb.create_list(2);       
        Any value = orb.create_any();
        value.insert_Streamable(p1);
        list.add_value(p1.getName(), value, p1.getMode());
        value.insert_Streamable(p2);
        list.add_value(p2.getName(), value, p2.getMode());
               
        msg.setList(list);
View Full Code Here

Examples of org.omg.CORBA.Any.insert_Streamable()

       
        NVList list = orb.create_list(2);       
        Any value = orb.create_any();
        value.insert_Streamable(p1);
        list.add_value(p1.getName(), value, p1.getMode());
        value.insert_Streamable(p2);
        list.add_value(p2.getName(), value, p2.getMode());
               
        msg.setList(list);
        NVList resultList = msg.getList();
        assertTrue(resultList.count() == 2);       
View Full Code Here

Examples of org.omg.CORBA.Any.insert_Streamable()

            CorbaStreamable[] arguments = message.getStreamableArguments();
            list = orb.create_list(arguments.length);

            for (int i = 0; i < arguments.length; ++i) {
                Any value = orb.create_any();
                value.insert_Streamable(arguments[i]);
                list.add_value(arguments[i].getName(), value, arguments[i].getMode());
            }
        } else {
            list = orb.create_list(0);
        }
View Full Code Here

Examples of org.omg.CORBA.Any.insert_Streamable()

    protected NamedValue getReturn(CorbaMessage message) {
        CorbaStreamable retVal = message.getStreamableReturn();
        NamedValue ret = null;
        if (retVal != null) {
            Any returnAny = orb.create_any();
            returnAny.insert_Streamable(retVal);
            ret = orb.create_named_value(retVal.getName(), returnAny, org.omg.CORBA.ARG_OUT.value);
        } else {
            // TODO: REVISIT: for some reason, the yoko ORB does not like to
            // have a null NamedValue return value. Create this 'empty'
            // one if a void return type is used.
View Full Code Here

Examples of org.omg.CORBA.Any.insert_Streamable()

        arguments[0] = arg;
        arguments[0].setMode(org.omg.CORBA.ARG_OUT.value);       
       
        NVList nvlist = (NVList)orb.create_list(2);   
        Any value = orb.create_any();
        value.insert_Streamable(arguments[0]);
        nvlist.add_value(arguments[0].getName(), value, arguments[0].getMode());
       
        CorbaServerConduit conduit = setupCorbaServerConduit(false)
        CorbaMessage msg = control.createMock(CorbaMessage.class);
        Exchange exchange = control.createMock(Exchange.class);       
View Full Code Here

Examples of org.omg.CORBA.Any.insert_Streamable()

                NVList list = inMsg.getList();

                if (msg.getStreamableException() != null) {                   
                    Any exAny = orb.create_any();
                    CorbaStreamable exception = msg.getStreamableException();
                    exAny.insert_Streamable(exception);
                    request.set_exception(exAny);
                    if (msg.getExchange() != null) {
                        msg.getExchange().setOutFaultMessage(msg);
                    }
                } else {
View Full Code Here

Examples of org.omg.CORBA.Any.insert_Streamable()

                    }

                    CorbaStreamable resultValue = msg.getStreamableReturn();
                    if (resultValue != null) {
                        Any resultAny = orb.create_any();
                        resultAny.insert_Streamable(resultValue);
                        request.set_result(resultAny);
                    }
                }
            }
View Full Code Here

Examples of org.omg.CORBA.Any.insert_Streamable()

    NVList list = orb_.create_list(0);
    request.arguments(list);

    Any exAny = orb_.create_any();
    exAny.insert_Streamable(new BAD_OPERATIONHolder(new BAD_OPERATION()));

    // BAD_OPERATIONHelper.insert(any, new BAD_OPERATION());
    // Modified by Audrius Meskauskas
    request.set_exception(exAny);
  }
View Full Code Here

Examples of org.omg.CORBA.Any.insert_Streamable()

        NVList list = null;
        if (streamables != null && streamables.length > 0) {
            list = orb.create_list(streamables.length);
            for (int i = 0; i < streamables.length; ++i) {
                Any value = orb.create_any();
                value.insert_Streamable(streamables[i]);
                list.add_value(streamables[i].getName(), value, streamables[i].getMode());
            }
        } else {
            list = orb.create_list(0);
        }
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.