Package org.omg.PortableServer

Examples of org.omg.PortableServer.Servant


        return manager.getORTState() ;
    }

    public String[] getInterfaces( java.lang.Object servant, byte[] objectId )
    {
        Servant serv = (Servant)servant ;
        return serv._all_interfaces( this, objectId ) ;
    }
View Full Code Here


        if (bindingPOA == null) {
            throw new CorbaBindingException(
                 "getAddressWithId failed because the poa is null");
        }
        try {
            Servant servant = bindingPOA.id_to_servant(objectId);
            org.omg.CORBA.Object objRef
                = bindingPOA.create_reference_with_id(id.getBytes(),
                                               servant._all_interfaces(bindingPOA, objectId)[0]);
            AddressType addr = new AddressType();
            orbConfig.exportObjectReference(orb, objRef,
                                            address.getLocation(),
                                            addr);
            ref = EndpointReferenceUtils.getEndpointReference(addr.getLocation());
View Full Code Here

        if (bindingPOA == null) {
            throw new CorbaBindingException(
                 "getAddressWithId failed because the poa is null");
        }
        try {
            Servant servant = bindingPOA.id_to_servant(objectId);
            org.omg.CORBA.Object objRef
                = bindingPOA.create_reference_with_id(id.getBytes(),
                                               servant._all_interfaces(bindingPOA, objectId)[0]);
            AddressType addr = new AddressType();
            orbConfig.exportObjectReference(orb, objRef,
                                            address.getLocation(),
                                            addr);
            ref = EndpointReferenceUtils.getEndpointReference(addr.getLocation());
View Full Code Here

      NamingContextExt ctx = getNamingContextExt();

      log.debug("binding servant name " + getServantName());
     
      Servant servant = new BeanCorbaServant(this, poaCurrent, container, interfaceDef, interfaceAnalysis);
      this.referenceFactory = servantRegistry.bind(getServantName(), servant, policies);
     
      EJBObject corbaObj = (EJBObject) createProxy();
     
      rebind(ctx, getJndiName(), (org.omg.CORBA.Object) corbaObj);
View Full Code Here

                POAHelper.narrow( orb.resolve_initial_references( "RootPOA" ));
            poa.the_POAManager().activate();

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

            if (servant instanceof Configurable)
                ((Configurable)servant).configure (((org.jacorb.orb.ORB)orb).getConfiguration());

            // create the object reference
View Full Code Here

            POA poa = POAHelper.narrow(orb.resolve_initial_references("RootPOA"));
            poa.the_POAManager().activate();

            Class _servantClass = Class.forName(_servantClassName);

            Servant _servant = (Servant) _servantClass.newInstance();

            // create the object reference
            org.omg.CORBA.Object o = poa.servant_to_reference(_servant);

            Socket _socket = new Socket("localhost", _portToSendIorTo);
View Full Code Here

                                              ServantActivator servant_activator,
                                              org.omg.PortableServer.POA poa )
        throws org.omg.PortableServer.ForwardRequest
    {
        ByteArrayKey oidbak = new ByteArrayKey( oid );
        Servant servant = null;

        if (logger.isInfoEnabled())
        {
            logger.info( "oid: " + POAUtil.convert(oid) +
                        "incarnate");
View Full Code Here

                          ServantActivator servantActivator,
                          POA poa,
                          boolean cleanupInProgress)
    {
        ByteArrayKey oidbak = new ByteArrayKey( oid );
        Servant servant = null;

        if (!objectMap.containsKey(oidbak))
        {
            // should not happen but ...
            deactivationList.removeElement(oidbak);
View Full Code Here

                ("childPOA1", rootPoa.the_POAManager(), policies);
            poa.the_POAManager().activate();

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

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

            // create the object reference
View Full Code Here

   * @return
   */
  public DataReader create_datareader(TopicDescription a_topic,
      DataReaderQos qos, DataReaderListener a_listener) {
    DataReader DR = null ;
    Servant impl;
   
    try{
     
      Class type = Class.forName(a_topic.get_type_name()+"DataReaderImpl") ;
      Class typehelper = Class.forName(a_topic.get_type_name()+"DataReaderHelper") ;
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.