Package org.omg.CORBA

Examples of org.omg.CORBA.Object


            InvocationProxy proxy = new ComponentInvocationProxy((RuntimeEndpoint) service.getEndpoints().get(0), javaClass);
            DynaCorbaServant servant = new DynaCorbaServant(proxy, Utils.getTypeId(javaClass));
            String[] ids = new String[] {"IDL:org/apache/tuscany/sca/binding/corba/testing/arrays_unions/ArraysUnionsTests:1.0"};
            servant.setIds(ids);
            bindServant(servant, "ArraysUnions");
            Object reference = bindReference("ArraysUnions");
            ArraysUnionsTests objRef = ArraysUnionsTestsHelper.narrow(reference);
            String[][] stringArray = {{"Hello", "World"}, {"Hi", "Again"}};
            String[][] result = objRef.passStringArray(stringArray);
            for (int i = 0; i < stringArray.length; i++) {
                for (int j = 0; j < stringArray[i].length; j++) {
View Full Code Here


            } catch (Throwable e) {
                e.printStackTrace();
                Assert.fail(e.getMessage());
            }

            Object nameService = orb.resolve_initial_references("NameService");
            NamingContext namingContext = NamingContextHelper.narrow(nameService);

            PrimitivesSetterServant singleSetter = new PrimitivesSetterServant();
            ArraysSetterServant arraysSetter = new ArraysSetterServant();
            TestObjectServant complexObject = new TestObjectServant();
View Full Code Here

            handleException(e);
        }
    }

    public Object lookup(String uri) throws CorbaHostException {
        Object result = null;
        try {
            CorbanameURL url = new CorbanameURL(uri);
            ORB orb = createORB(url.getHost(), url.getPort(), false);
            NamingContextExt context = getNamingContext(orb, url.getNameService());
            result = context.resolve_str(url.getName());
View Full Code Here

    System.out.println("ior is: " + ior);

    System.out.println("ORB is "+orb);
   
    Object obj = orb.string_to_object(ior);
    assertNotNull(obj);
   
    hello = HelloObjectHelper.narrow(obj);
   
    assertNotNull(hello);
View Full Code Here

        Properties props = new Properties();       
        props.setProperty("org.omg.CORBA.ORBClass", "org.openorb.orb.core.ORB");
        props.setProperty("org.omg.CORBA.ORBSingletonClass", "org.openorb.orb.core.ORBSingleton");
        ORB orb = ORB.init( new String[]{}, props );
       
        Object obj = orb.string_to_object( serverRef );
        TestIIOPServer srv = TestIIOPServerHelper.narrow( obj );
        try {
            srv.test();
        } catch (Throwable e) {
            e.printStackTrace();
View Full Code Here

        client_orb_ = ORB.init(new String[0], getClientProperties());


        server = CurrentServerHelper.narrow(client_orb_.string_to_object(objString));

        Object tcobject = client_orb_.resolve_initial_references ("JacOrbIIOPTransportCurrent");
        transport_current_ = CurrentHelper.narrow (tcobject);

        ClientInterceptor.interceptions (0);

    }
View Full Code Here

public class IIOPTester implements AbstractTester {
    public void test_transport_current(ORB orb, Logger logger) {

        try {
            // Get the Current object.
            Object tcobject = orb.resolve_initial_references ("JacOrbIIOPTransportCurrent");

            Current tc = CurrentHelper.narrow (tcobject);
           
            logger.info("TC: ["+tc.id()+"] from="+tc.local_host() +":"+tc.local_port() +", to="
                        +tc.remote_host()+":"+tc.remote_port());
View Full Code Here

    }

    public ObjRepServer(String [] args) throws Exception
    {
        ORB orb;
        Object objref;
        IPing pinger;
        Stub stub;

        Remote remObj;
View Full Code Here

     */
    public void test_transport_current(ORB orb, Logger logger) {
   
        try {
            // Get the Current object.
            Object tcobject = orb.resolve_initial_references ("JacOrbTransportCurrent");
   
            Current tc = CurrentHelper.narrow (tcobject);
   
            logger.info ("TC: [" + tc.id () + "] sent="
                            + tc.messages_sent () + "(" + tc.bytes_sent ()
View Full Code Here

       
        Thread.sleep(1000);
        client_orb_ = ORB.init(new String[0], getClientProperties());

        server_ = CurrentServerHelper.narrow(client_orb_.string_to_object(objString));
        Object tcobject = client_orb_.resolve_initial_references ("JacOrbTransportCurrent");
        transport_current_ = CurrentHelper.narrow (tcobject);

    }
View Full Code Here

TOP

Related Classes of org.omg.CORBA.Object

Copyright © 2018 www.massapicom. 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.