Examples of string_to_object()


Examples of org.omg.CORBA.ORB.string_to_object()

        if (sIOR != null)
        {
            ORB oORB = ORB.init(new String[0], null);

            org.omg.CORBA.Object oObj = oORB.string_to_object(sIOR);
            oAdmin = new RemoteStore(XRIAdministrationHelper.narrow(oObj));
        }

        return oAdmin;
View Full Code Here

Examples of org.omg.CORBA.ORB.string_to_object()

        String[] orbArgs = {"-ORBInitialPort", "5080"};
        ORB orb = ORB.init(orbArgs, null);

        String ior = "corbaname::localhost:5080#CurrencyConverterCORBAService";
        Object obj = orb.string_to_object(ior);
        CurrencyConverter converter = CurrencyConverterHelper.narrow(obj);

        System.out.println("USD -> GBP = " + converter.getExchangeRate("USD", "GBP"));
        System.out.println("100 USD = " + converter.convert("USD", "GBP", 100.0) + "GBP");
    }
View Full Code Here

Examples of org.omg.CORBA.ORB.string_to_object()

        scaDomain = SCADomain.newInstance("CalculatorCORBAServer.composite");
        String[] args = {"-ORBInitialPort", "5080"};
        // retrieve CORBA object which is SCA component
        ORB orb = ORB.init(args, null);
        calculatorService =
            CalculatorCORBAServiceHelper.narrow(orb
                .string_to_object("corbaname::localhost:5080#CalculatorCORBAService"));
    }

    @AfterClass
    protected void tearDown() throws Exception {
View Full Code Here

Examples of org.omg.CORBA.ORB.string_to_object()

        {
            throw new RuntimeException("No IOR for RemoteStore class");
        }

        ORB oORB = ORB.init(new String[0], null);
        org.omg.CORBA.Object oObjectRef = oORB.string_to_object(sIOR);
        moRemote = XRIAdministrationHelper.narrow(oObjectRef);

        if (moRemote == null)
        {
            throw new RuntimeException(
View Full Code Here

Examples of org.omg.CORBA.ORB.string_to_object()

        if (sIOR != null)
        {
            ORB oORB = ORB.init(new String[0], null);

            org.omg.CORBA.Object oObj = oORB.string_to_object(sIOR);
            oAdmin = new RemoteStore(XRIAdministrationHelper.narrow(oObj));
        }

        return oAdmin;
View Full Code Here

Examples of org.omg.CORBA.ORB.string_to_object()

    // See if ORB can handle corbaname URL directly
    org.omg.CORBA.Object ncRef = null;

    try {
        // Get object ref for NameService specified in corbaname URL
        ncRef = inOrb.string_to_object(parsedUrl.getLocation());
    } catch (Exception e) {
    }

    if (ncRef != null) {
        // Convert to JNDI Context
View Full Code Here

Examples of org.omg.CORBA.ORB.string_to_object()

        _logger.fine("EJB_REF..." + remoteEjbRef);
    }
   
    if (remoteJndiName.startsWith(CORBANAME)) {
        ORB orb = ORBManager.getORB();   
        obj = (Object) orb.string_to_object(remoteJndiName);
    } else {
        if (remoteJndiName.startsWith(IIOPURL)) {
            Properties env = new Properties();
      env.put("java.naming.corba.orb",ORBManager.getORB());
      Context ctx = new InitialContext(env);
View Full Code Here

Examples of org.omg.CORBA.ORB.string_to_object()

      // initialize ORB
      ORB  orb = ORB.init(args, null);

      // get WebLogic Server IOR from command line argument
      String ior = args[0];
      org.omg.CORBA.Object obj = orb.string_to_object(ior);

      // obtain naming context for WebLogic Server
      NamingContext nc = NamingContextHelper.narrow(obj);

      NameComponent nComp = new NameComponent(rmiObj, "");
View Full Code Here

Examples of org.omg.CORBA.ORB.string_to_object()

      String ior = IOR_CONTEXT;
      if (path.startsWith(ior))
      {
         String encoded = path.substring(ior.length());
         ORB orb = getORB(environment);
         Object object = orb.string_to_object(encoded);
         return narrowRMIServerStub(object);
      }
      throw new MalformedURLException("Unsupported binding: " + url);
   }
View Full Code Here

Examples of org.omg.CORBA.ORB.string_to_object()

            if (f.isDirectory()) {
                System.out.println("File " + args[0] + " is a directory.");
                System.exit(-1);
            }
            BufferedReader br = new BufferedReader(new FileReader(f));
            org.omg.CORBA.Object obj = orb.string_to_object(br.readLine());
            br.close();
            SASDemo demo = SASDemoHelper.narrow(obj);

            //call single operation
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.