Examples of object_to_string()


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

        // bind the corba naming service to JNDI.
        CorbaServiceUtil.bindObject(context.getChildTarget(), "corbanaming", namingService);

        log.info("CORBA Naming Service Started");
        log.debugf("Naming: [" + orb.object_to_string(namingService) + "]");
    }

    @Override
    public void stop(StopContext context) {
        log.debugf("Stopping Service " + context.getController().getName().getCanonicalName());
View Full Code Here

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

                iri = new InterfaceRepository(orb, irPoa.getValue(), name);
                // Add bean interface info to the interface repository
                iri.mapClass(remoteView.getValue().getViewClass());
                iri.mapClass(homeView.getValue().getViewClass());
                iri.finishBuild();
                logger.info("CORBA interface repository for " + name + ": " + orb.object_to_string(iri.getReference()));
            }

            IORSecurityConfigMetaData iorSecurityConfigMetaData = null;
            if (this.iiopMetaData != null)
                iorSecurityConfigMetaData = this.iiopMetaData.getIorSecurityConfigMetaData();
View Full Code Here

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

            final org.omg.CORBA.Object corbaRef = homeReferenceFactory.createReference(homeRepositoryIds[0]);

            //we do this twice to force eager dynamic stub creation
            ejbHome = (EJBHome) PortableRemoteObject.narrow(corbaRef, EJBHome.class);

            final HomeHandleImplIIOP homeHandle = new HomeHandleImplIIOP(orb.object_to_string(corbaRef));
            homeServant.setHomeHandle(homeHandle);

            // Initialize beanPOA and create metadata depending on the kind of bean
            if (component instanceof EntityBeanComponent) {
View Full Code Here

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

      namingService = NamingContextExtHelper.narrow(
                  namingPOA.create_reference_with_id(rootContextId,
                                "IDL:omg.org/CosNaming/NamingContextExt:1.0"));
      bind(NAMING_NAME, "org.omg.CosNaming.NamingContextExt");
      getLog().info("CORBA Naming Started");
      getLog().debug("Naming: ["+orb.object_to_string(namingService)+"]");
   }
   
   protected void stopService()
   {
      // Unbind from JNDI
View Full Code Here

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

            PrintWriter pw =
                new PrintWriter( new FileWriter( args[ 0 ] ));

            // print stringified object reference to file
            pw.println( orb.object_to_string( demo ));
           
            pw.flush();
            pw.close();
   
            // wait for requests
View Full Code Here

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

            ORB orb = ORB.init( args, null );
            POA poa = (POA) orb.resolve_initial_references( "RootPOA" );
            poa.the_POAManager().activate();
            org.omg.CORBA.Object demo = poa.servant_to_reference( new Server( orb ));
            PrintWriter pw = new PrintWriter( new FileWriter( args[ 0 ] ));
            pw.println( orb.object_to_string( demo ));
            pw.flush();
            pw.close();
            orb.run();
        }
        catch( Exception e )
View Full Code Here

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

            // create object and write out IOR
            GssUpServer server = new GssUpServer(orb);
            securePOA.activate_object_with_id("SecureObject".getBytes(), server);
            org.omg.CORBA.Object demo = securePOA.servant_to_reference(server);
            PrintWriter pw = new PrintWriter(new FileWriter(args[0]));
            pw.println(orb.object_to_string(demo));
            pw.flush();
            pw.close();

            // run the ORB
            orb.run();
View Full Code Here

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

        //         _nc.rebind( _nc.to_name( _factoryName ), obj );



        System.out.println( _orb.object_to_string( obj ) );
        System.out.flush();

        // wait for requests
        _orb.run();
    }
View Full Code Here

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

            byte []oid = poa.servant_to_id (servant);

            // create the object reference
            org.omg.CORBA.Object obj = poa.id_to_reference (oid);

            System.out.println ("SERVER IOR: " + orb.object_to_string(obj));
            System.out.flush();

            // wait for requests
            orb.run();
        }
View Full Code Here

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

        byte[] oid = poa.servant_to_id (servant);

        // create the object reference
        org.omg.CORBA.Object obj = poa.id_to_reference (oid);

        System.out.println ("SERVER IOR: " + serverOrb.object_to_string(obj));
        System.out.flush();

        // wait for requests
        serverOrb.run();
    }
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.