javax.rmi.CORBA.Util.unexportObject()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(137)

本文整理了Java中javax.rmi.CORBA.Util.unexportObject()方法的一些代码示例,展示了Util.unexportObject()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.unexportObject()方法的具体详情如下:
包路径:javax.rmi.CORBA.Util
类名称:Util
方法名:unexportObject

Util.unexportObject介绍

暂无

代码示例

代码示例来源:origin: org.apache.yoko/yoko-rmi-impl

public void unexportObject(Remote obj)
    throws java.rmi.NoSuchObjectException {
  javax.rmi.CORBA.Util.unexportObject(obj);
}

代码示例来源:origin: org.glassfish.main.orb/orb-iiop

/**
 * Disconnect an EJBObject or EJBHome from the ORB.
 */
@Override
public void destroyReference(Remote remoteRef, Remote remoteObj)
{
  // Note: the POAs have the NON_RETAIN policy so they dont maintain
  // any state for objects. We only need to unexport the object from
  // the RMI/IIOP machinery.
  // The following call also does tie.deactivate() for the remoteObj's tie
  try {
    Util.unexportObject(remoteObj);
  } catch ( RuntimeException ex ) {
    // A bug in Util.unexportObject causes this exception
    // Ignore it.
  } catch ( java.lang.Exception nsoe ){
    // eat it and ignore it.
  }
}

代码示例来源:origin: org.jacorb/jacorb

/**
 * Deactivate the exported RMI object.
 * @param obj   The RMI object
 * @see javax.rmi.CORBA.PortableRemoteObjectDelegate#unexportObject(java.rmi.Remote)
 */
public void unexportObject( java.rmi.Remote obj ) throws java.rmi.NoSuchObjectException
{
  Tie tie = Util.getTie( obj );
  if ( tie == null )
  {
    throw new java.rmi.NoSuchObjectException( "Object not exported" );
  }
  Util.unexportObject( obj );
}

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

/**
 * Deregisters a server object from the runtime, allowing the object to become
 * available for garbage collection.
 * @param obj the object to unexport.
 * @exception NoSuchObjectException if the remote object is not
 * currently exported.
 */
public void unexportObject(Remote obj)
  throws NoSuchObjectException {
  if (obj == null) {
    throw new NullPointerException("invalid argument");
  }
  if (StubAdapter.isStub(obj) ||
    obj instanceof java.rmi.server.RemoteStub) {
    throw new NoSuchObjectException(
      "Can only unexport a server object.");
  }
  Tie theTie = Util.getTie(obj);
  if (theTie != null) {
    Util.unexportObject(obj);
  } else {
    if (Utility.loadTie(obj) == null) {
      UnicastRemoteObject.unexportObject(obj,true);
    } else {
      throw new NoSuchObjectException("Object not exported.");
    }
  }
}

代码示例来源:origin: jboss/jboss-javaee-specs

if (theTie != null)
  Util.unexportObject(obj);

代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec

if (theTie != null)
  Util.unexportObject(obj);

代码示例来源:origin: org.ow2.cmi/cmi-rmi

Tie theTie = Util.getTie(obj);
if (theTie != null) {
  Util.unexportObject(obj);
} else {
  if (Utility.loadTie(obj) != null) {

相关文章