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); } }