Assert.fail(e.getMessage());
public void put(Object key, Object value, Date expired) { Map<String, Object> map = new HashMap<String, Object>(3); map.put(RESOURCE, value); if (expired != null) { map.put(ExpirationAlgorithmConfig.EXPIRATION_KEY, expired.getTime()); } cache.put(createFqn(key), map); Transaction transaction = cache.getInvocationContext().getTransaction(); try { // TODO: to review if ((transaction != null) && (transaction.getStatus() == Status.STATUS_ACTIVE)) { transaction.commit(); } } catch (SystemException e) { LOGGER.error(e.getMessage(), e); } catch (SecurityException e) { LOGGER.error(e.getMessage(), e); } catch (IllegalStateException e) { LOGGER.error(e.getMessage(), e); } catch (RollbackException e) { LOGGER.error(e.getMessage(), e); } catch (HeuristicMixedException e) { LOGGER.error(e.getMessage(), e); } catch (HeuristicRollbackException e) { LOGGER.error(e.getMessage(), e); } }
txLogger.debug("A heuristic decision was made while commiting the transaction, some relevant updates have been rolled back: {0}", e.getMessage()); throw new ApplicationException(new RemoteException("A heuristic decision was made while commiting the transaction, some relevant updates have been rolled back", e));
txLogger.debug("A heuristic decision was made while commiting the transaction, some relevant updates have been rolled back: {0}", e.getMessage()); throw new ApplicationException(new RemoteException("A heuristic decision was made while commiting the transaction, some relevant updates have been rolled back", e));
txLogger.debug("A heuristic decision was made while commiting the transaction, some relevant updates have been rolled back: {0}", e.getMessage()); throw new ApplicationException(new RemoteException("A heuristic decision was made while commiting the transaction, some relevant updates have been rolled back", e));
throw new MisconfigurationException("kotowari.TX_HEURISTIC_MIXED", e.getMessage(), e); } catch (HeuristicRollbackException e) { throw new MisconfigurationException("kotowari.TX_HEURISTIC_ROLLBACK", e.getMessage(), e); } catch (RollbackException e) { throw new MisconfigurationException("kotowari.TX_ROLLBACK", e.getMessage(), e);
throw new MisconfigurationException("kotowari.TX_HEURISTIC_MIXED", e.getMessage(), e); } catch (HeuristicRollbackException e) { throw new MisconfigurationException("kotowari.TX_HEURISTIC_ROLLBACK", e.getMessage(), e); } catch (RollbackException e) { throw new MisconfigurationException("kotowari.TX_ROLLBACK", e.getMessage(), e);
/** * Commits transaction. */ public void commit() { try { TransactionImpl xa = getTransaction(); if (xa != null && xa.isRollbackOnly()) _ut.rollback(); else _ut.commit(); } catch (RuntimeException e) { throw e; } catch (RollbackException e) { throw new TransactionRolledbackLocalException(e.getMessage(), e); } catch (HeuristicMixedException e) { throw new TransactionRolledbackLocalException(e.getMessage(), e); } catch (HeuristicRollbackException e) { throw new TransactionRolledbackLocalException(e.getMessage(), e); } catch (Exception e) { throw new EJBException(e); } }
throw new RollbackException(e.getMessage()); } catch (SystemException e) { try