Java 8 POAManager - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 POAManager class.

This code example shows how to use the following methods:activate
            orbConfig.exportObjectReference(orb, obj, location, address);
             
            populateEpr(orb.object_to_string(obj));
            LOG.info("Object Reference: " + orb.object_to_string(obj));
            // TODO: Provide other export mechanisms?  
            poaManager.activate();
        } catch (Exception ex) {
            throw new CorbaBindingException("Unable to activate CORBA servant", ex);
        } 
    } 
 
    private void populateEpr(String ior) {
        AttributedURIType addr = new AttributedURIType();
        addr.setValue(ior);
        reference.setAddress(addr);
    } 
 
    public String getDestinationAddress() {
        // We should check the endpoint first for an address.  This allows object references 
        // to use the address that is associated with their endpoint instead of the single  

5
CodeRank
This code example shows how to use the following methods:activate
        byte[] oid = "Bank".getBytes();
        poa.activate_object_with_id(oid, bankImpl);
 
        org.omg.CORBA.Object ref = poa.create_reference_with_id(oid, BankHelper.id());
 
        // Register in NameService 
        org.omg.CORBA.Object nsObj = orb.resolve_initial_references("NameService");
        NamingContextExt rootContext = NamingContextExtHelper.narrow(nsObj);
        NameComponent[] nc = rootContext.to_name("Bank");
        rootContext.rebind(nc, ref);
 
        // 
        // Run implementation 
        // 
        manager.activate();
        System.out.println("Server ready...");
        orb.run();
 
        return 0; 
    } 
4
CodeRank
See Code Examples for Java 8 POAManager Methods: