return (Object[]) copyObject(result, orb); return (Object[]) copyObject(obj, orb);
/** * Returns the tie (if any) for a given target object. * * @return the tie or null if no tie is registered for the given target. */ public Tie getTie(Remote target) { synchronized (exportedServants) { return lookupTie(target); } }
public void unregisterTargetsForORB(org.omg.CORBA.ORB orb) { for (Enumeration<?> e = exportedServants.keys(); e.hasMoreElements();) { java.lang.Object key = e.nextElement(); Remote target = (Remote) (key instanceof Tie ? ((Tie) key).getTarget() : key); // Bug 4476347: BAD_OPERATION is thrown if the ties delegate isn't set. // We can ignore this because it means the tie is not connected to an ORB. try { if (orb == getTie(target).orb()) { try { unexportObject(target); } catch (java.rmi.NoSuchObjectException ex) { // We neglect this exception if at all if it is raised. It is not harmful. } } } catch (BAD_OPERATION bad) { /* Ignore */ } } }
Tie cachedTie = lookupTie(target); if (cachedTie != null) try cleanUpTie(cachedTie);
any.insert_Value(null, createTypeCodeForNull(orb)); TypeCode tc = createTypeCode((Serializable) newObj, any, orb); if (tc == null) any.insert_Value((Serializable) newObj);
/** * Wraps an exception thrown by an implementation method. It returns the corresponding client-side exception. * * @param orig * the exception to wrap. * @return the wrapped exception. */ public RemoteException wrapException(Throwable orig) { if (orig instanceof SystemException) { return mapSystemException((SystemException) orig); } if (orig instanceof Error) { return new ServerError("Error occurred in server thread", (Error) orig); } else if (orig instanceof RemoteException) { return new ServerException("RemoteException occurred in server thread", (Exception) orig); } else if (orig instanceof RuntimeException) { throw (RuntimeException) orig; } if (orig instanceof Exception) return new UnexpectedException(orig.toString(), (Exception) orig); else return new UnexpectedException(orig.toString()); }
return new org.jboss.com.sun.corba.se.impl.javax.rmi.CORBA.Util();
public void unregisterTargetsForORB(org.omg.CORBA.ORB orb) { for (Enumeration<?> e = exportedServants.keys(); e.hasMoreElements();) { java.lang.Object key = e.nextElement(); Remote target = (Remote) (key instanceof Tie ? ((Tie) key).getTarget() : key); // Bug 4476347: BAD_OPERATION is thrown if the ties delegate isn't set. // We can ignore this because it means the tie is not connected to an ORB. try { if (orb == getTie(target).orb()) { try { unexportObject(target); } catch (java.rmi.NoSuchObjectException ex) { // We neglect this exception if at all if it is raised. It is not harmful. } } } catch (BAD_OPERATION bad) { /* Ignore */ } } }
Tie cachedTie = lookupTie(target); if (cachedTie != null) try cleanUpTie(cachedTie);
any.insert_Value(null, createTypeCodeForNull(orb)); TypeCode tc = createTypeCode((Serializable) newObj, any, orb); if (tc == null) any.insert_Value((Serializable) newObj);
/** * Wraps an exception thrown by an implementation method. It returns the corresponding client-side exception. * * @param orig * the exception to wrap. * @return the wrapped exception. */ public RemoteException wrapException(Throwable orig) { if (orig instanceof SystemException) { return mapSystemException((SystemException) orig); } if (orig instanceof Error) { return new ServerError("Error occurred in server thread", (Error) orig); } else if (orig instanceof RemoteException) { return new ServerException("RemoteException occurred in server thread", (Exception) orig); } else if (orig instanceof RuntimeException) { throw (RuntimeException) orig; } if (orig instanceof Exception) return new UnexpectedException(orig.toString(), (Exception) orig); else return new UnexpectedException(orig.toString()); }
/** * Returns the tie (if any) for a given target object. * * @return the tie or null if no tie is registered for the given target. */ public Tie getTie(Remote target) { synchronized (exportedServants) { return lookupTie(target); } }
return (Object[]) copyObject(result, orb); return (Object[]) copyObject(obj, orb);
if (lookupTie(target) == null)
if (lookupTie(target) == null)