Java Corba Different orbs

980 views Asked by At

I have currently server and client side in jaCORB it does work fine, however now I want to have the client and server running on different orbs. To be honest I am totally new to corba, I have been looking over the internet but couldn't found something that would help me to undestand this. I have a idl file in which i specify my methods, then I implement them in my server side implementing Jacorb like that:

Properties props = new Properties();
    props.put("org.omg.CORBA.ORBClass", "org.jacorb.orb.ORB");
    props.put("ORBInitRef.NameService",
            "corbaloc::localhost:8080/NameService");

    org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(args, props);

And calling the methods from my client implementing orb like this:

            Properties props = new Properties();
        props.put("org.omg.CORBA.ORBClass", "org.jacorb.orb.ORB");
        props.put("ORBInitRef.NameService",
                "corbaloc::localhost:8080/NameService");
        MyServer grid;
        org.omg.CORBA_2_3.ORB orb = (org.omg.CORBA_2_3.ORB)org.omg.CORBA_2_3.ORB.init(args, props);

And now when I want to have server on different orb, what should I do? Is it only the properties or do I have to change my classes completely? I have spend few hours by now and still doesnt understand my problem, and did not succedded with any code. Thank you very much for any answers.

0

There are 0 answers