code: protected void export_device(final DeviceImpl dev, final String name) throws DevFailed {
          Util.out4.println("DeviceClass::export_device() arrived");
          Util.out4.println("name = " + name);
  
          //
          // For server started without db usage (Mostly the database server). In
          // this case,
          // it is necessary to create our own CORBA object id and to bind it into
          // the
          // OOC Boot Manager for access through a stringified object reference
          // constructed using the corbaloc style
          //
  
          final byte[] oid = name.getBytes();
          final Util tg = Util.instance();
          try {
              final org.omg.PortableServer.POA r_poa = tg.get_poa();
              r_poa.activate_object_with_id(oid, dev);
          } catch (final Exception ex) {
              final StringBuffer o = new StringBuffer("Can't activate device for device ");
              o.append(dev.get_name());
  
              Except.throw_exception("API_CantBindDevice", o.toString(),
                      "DeviceClass.export_device()");
          }
  
          //
          // Get the object id and store it
          //
          final ORB orb = tg.get_orb();
          dev._this(orb);
          dev.set_obj_id(oid);
  
          tg.registerDeviceForJacorb(name);
  
          //
          // Mark the device as exported
          //
  
          dev.set_exported_flag(true);
  
          Util.out4.println("Leaving DeviceClass::export_device method()");
      }
docs: Export a device.
  <p>
  This method activate the CORBA object associated with the servant dev. It
  is used for device where a CORBALOC string is used to connect with. This
  method is mainly used for the Tango database server.
  
  @param dev  The device to be exported
  @param name The device CORBALOC name
  @throws DevFailed If the command sent to the database failed. Click <a
  href="../../tango_basic/idl_html/Tango.html#DevFailed"
  >here</a> to read <b>DevFailed</b> exception specification