Package org.omg.PortableServer

Examples of org.omg.PortableServer.Servant


        poa.the_POAManager().activate();

        String className = args[0];
        Class<?> servantClass = Class.forName (className);
        Constructor<?> ctor = servantClass.getConstructor(new Class[] {ORB.class});
        Servant servant = ( Servant ) ctor.newInstance(new Object[] {serverOrb});

        // Get the id
        byte[] oid = poa.servant_to_id (servant);

        // create the object reference
View Full Code Here


        GOA goa = GOAHelper.narrow(poa);


        final String servantName = args[0];
        Class<?> servantClass = TestUtils.classForName(servantName);
        Servant helloServant = ( Servant ) servantClass.newInstance();

        byte[] oid = poa.activate_object(helloServant);
        goa.associate_reference_with_id(helloGroup,oid);

        String groupURL = miopURL + ";" + CorbaLoc.generateCorbaloc (orb, helloServant._this_object());

        System.out.println("SERVER IOR: "+groupURL);

        TestUtils.getLogger().debug ("Using IOR: " + groupURL);
        System.out.flush();
View Full Code Here

        POA poa = rootPoa.create_POA("childPOA1", rootPoa.the_POAManager(), policies);

        String className = args[0];
        Class<?> servantClass = Class.forName (className);
        Servant servant = ( Servant ) servantClass.newInstance();

        if (testRun == 1)
        {
           locator = new MyLocator();
           poa.set_servant_manager (locator);
View Full Code Here

        POAManager poa_manager = rootPOA.the_POAManager();
        POA child = rootPOA.create_POA ("thePOA", poa_manager, policies);

        poa_manager.activate();

        Servant impl = new NIOTestServer();
        child.activate_object_with_id(objID.getBytes(), impl);

        // Manually create a persistent based corbaloc.
        String corbalocStr =
        "corbaloc::localhost:"
View Full Code Here

         , org.omg.PortableServer.ServantLocatorPackage.CookieHolder the_cookie) throws org.omg.PortableServer.ForwardRequest
  {
     String strOid = new String(oid);

     // Search for the servant that handles this strOid
     Servant servant = m_activateObjectMap.get(strOid);
     if (null == servant)
     {
        throw new OBJECT_NOT_EXIST();
     }
View Full Code Here

     */

    private void processRequest(ServerRequest request)
        throws ShutdownInProgressException, CompletionRequestedException
    {
        Servant servant = null;
        ServantManager servantManager = null;
        boolean invalid = false;
        final ByteArrayKey oid = request.objectIdAsByteArrayKey();

        synchronized (this)
View Full Code Here

        try {
            AOMEntry entry = activeObjectMap.get(key);
            if (entry == null)
                throw new ObjectNotActive();

            Servant s = activeObjectMap.getServant( entry ) ;
            if (s == null)
                throw new ObjectNotActive();

            if (orb.poaDebugFlag) {
                System.out.println("Deactivating object " + s + " with POA " + poa);
View Full Code Here

        // get instance key
        int keyLen = Utility.bytesToInt(ejbKey, INSTANCEKEYLEN_OFFSET);
        byte[] instanceKey = new byte[keyLen];
        System.arraycopy(ejbKey, INSTANCEKEY_OFFSET, instanceKey, 0, keyLen);

        Servant servant = null;
        try {
            while ( servant == null ) {
                // get the EJBObject / EJBHome
                Remote targetObj =
                container.getTargetObject(instanceKey,
View Full Code Here

TOP

Related Classes of org.omg.PortableServer.Servant

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.