Search in sources :

Example 1 with ORB

use of com.sun.corba.ee.spi.orb.ORB in project Payara by payara.

the class PEORBConfigurator method addAcceptor.

private Acceptor addAcceptor(org.omg.CORBA.ORB orb, boolean isLazy, String host, String type, int port) {
    com.sun.corba.ee.spi.orb.ORB theOrb = (com.sun.corba.ee.spi.orb.ORB) orb;
    TransportManager ctm = theOrb.getTransportManager();
    Acceptor acceptor;
    if (isLazy) {
        acceptor = TransportDefault.makeLazyCorbaAcceptor(theOrb, port, host, type);
    } else {
        acceptor = TransportDefault.makeStandardCorbaAcceptor(theOrb, port, host, type);
    }
    ctm.registerAcceptor(acceptor);
    return acceptor;
}
Also used : Acceptor(com.sun.corba.ee.spi.transport.Acceptor) ORB(com.sun.corba.ee.spi.orb.ORB) TransportManager(com.sun.corba.ee.spi.transport.TransportManager) ORB(com.sun.corba.ee.spi.orb.ORB)

Example 2 with ORB

use of com.sun.corba.ee.spi.orb.ORB in project Payara by payara.

the class POAProtocolMgr method getObjectID.

@Override
public byte[] getObjectID(org.omg.CORBA.Object obj) {
    IOR ior = ((com.sun.corba.ee.spi.orb.ORB) orb).getIOR(obj, false);
    java.util.Iterator iter = ior.iterator();
    byte[] oid = null;
    if (iter.hasNext()) {
        TaggedProfile profile = (TaggedProfile) iter.next();
        ObjectKey objKey = profile.getObjectKey();
        oid = objKey.getId().getId();
    }
    return oid;
}
Also used : TaggedProfile(com.sun.corba.ee.spi.ior.TaggedProfile) ObjectKey(com.sun.corba.ee.spi.ior.ObjectKey) IOR(com.sun.corba.ee.spi.ior.IOR) ORB(com.sun.corba.ee.spi.orb.ORB)

Aggregations

ORB (com.sun.corba.ee.spi.orb.ORB)2 IOR (com.sun.corba.ee.spi.ior.IOR)1 ObjectKey (com.sun.corba.ee.spi.ior.ObjectKey)1 TaggedProfile (com.sun.corba.ee.spi.ior.TaggedProfile)1 Acceptor (com.sun.corba.ee.spi.transport.Acceptor)1 TransportManager (com.sun.corba.ee.spi.transport.TransportManager)1