public void delistComponentResources(boolean suspend) throws RemoteException { if (_logger.isLoggable(Level.FINE)) _logger.log(Level.FINE, "TM: delistComponentResources"); ComponentInvocation inv = invMgr.getCurrentInvocation(); // BEGIN IASRI# 4646060 if (inv == null) { return; } // END IASRI# 4646060 try { delistComponentResources(inv, suspend); } catch (InvocationException ex) { _logger.log(Level.SEVERE, "enterprise_distributedtx.excep_in_delist",ex); throw new RemoteException("", ex.getNestedException()); } catch (Exception ex) { _logger.log(Level.SEVERE, "enterprise_distributedtx.excep_in_delist",ex); throw new RemoteException("", ex); } }
public void enlistComponentResources() throws RemoteException { if (_logger.isLoggable(Level.FINE)) _logger.log(Level.FINE, "TM: enlistComponentResources"); ComponentInvocation inv = invMgr.getCurrentInvocation(); if (inv == null) return; try { Transaction tran = getTransaction(); inv.setTransaction((JavaEETransaction)tran); enlistComponentResources(inv); } catch (InvocationException ex) { _logger.log(Level.SEVERE, "enterprise_distributedtx.excep_in_enlist" ,ex); throw new RemoteException(ex.getMessage(), ex.getNestedException()); } catch (Exception ex) { _logger.log(Level.SEVERE, "enterprise_distributedtx.excep_in_enlist" ,ex); throw new RemoteException(ex.getMessage(), ex); } }