Package org.omg.CORBA

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


    }

    public void receive_request(ServerRequestInfo ri) throws ForwardRequest
    {
        Any any = orb.create_any();
        any.insert_string("some infos");
        ServiceContext requestServiceContext;
        try
        {
            requestServiceContext = new ServiceContext(1234, codec.encode(any));
        }
View Full Code Here


        // the first struct member is a string,
        // the member name is "first"

        NameValuePair[]  nvp_seq = new NameValuePair[2];
        Any first_member_any = orb.create_any();
        first_member_any.insert_string("first");
        nvp_seq[0] = new NameValuePair("first", first_member_any );

        /*
         the second member is a recursive sequence, ie. the element
             type of the sequence is that of the enclosing  struct, the
View Full Code Here

        _any.insert_long(10);
        _structuredEvent.header.variable_header[0] = new Property("long", _any);

        _any = getORB().create_any();
        _any.insert_string("text");
        _structuredEvent.header.variable_header[1] = new Property("string", _any);

        runEvaluation(_structuredEvent, "$long == 10");
        runEvaluation(_structuredEvent, "$long == $.header.variable_header(long)");
View Full Code Here

        Property[] _props = new Property[2];
        _any.insert_long(10);
        _props[0] = new Property("long", _any);

        _any = getORB().create_any();
        _any.insert_string("text");
        _props[1] = new Property("string", _any);

        _structuredEvent.filterable_data = _props;

        runEvaluation(_structuredEvent, "$long == 10");
View Full Code Here

        Property variable[] = new Property[0];
        quoteEvent.header = new EventHeader(fixed, variable);
        quoteEvent.filterable_data = new Property[2];

        Any idAny = getORB().create_any();
        idAny.insert_string("stockQuotes");
        quoteEvent.filterable_data[0] = new Property("stock_id", idAny);

        Any priceAny = getORB().create_any();
        priceAny.insert_double(200.0);
        quoteEvent.filterable_data[1] = new Property("stock_price", priceAny);
View Full Code Here

        proxyPushConsumer_.connect_typed_push_supplier(tie._this(getClientORB()));

        Any any = getORB().create_any();

        any.insert_string("push");

        try
        {
            proxyPushConsumer_.push(any);
View Full Code Here

        }
        else if( op.equals("_repository_id") )
        {
            Any s = orb.create_any();
            s.type( orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_string ));
            s.insert_string(_repository_id());
            request.set_result( s );
        }
        else
        {
            throw new org.omg.CORBA.BAD_OPERATION(op + " not found.");
View Full Code Here

            Any nameAny = orb.create_any();
            if (principalName == null)
                principalName =
                    getSASContextPrincipalName(connection, client_context_id);

            nameAny.insert_string(principalName);
            ri.set_slot( SASInitializer.sasPrincipalNamePIC, nameAny);
        }
        catch (Exception e)
        {
            if (logger.isErrorEnabled())
View Full Code Here

                orb.resolve_initial_references ("PICurrent");

        Logger logger = ((org.jacorb.orb.ORB)orb).getConfiguration ().getLogger("org.jacorb.test");

        Any any = orb.create_any();
        any.insert_string ("This is a test AAA" );

        current.set_slot (Initializer.slot_id, any);

        logger.debug ("[" + Thread.currentThread() + "] Client added any to PICurrent : " + any);
        to.foo();
View Full Code Here

    public void send_request(ClientRequestInfo ri) throws ForwardRequest
    {
        Current current = getPICurrent(orb);

        Any any = orb.create_any();
        any.insert_string("Some Information to other interception point");
        try
        {
            current.set_slot(slot, any);
        }
        catch (InvalidSlot e)
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.