public void acknowledge() throws JMSException { if (session != null) { try { session.commit(); } catch (HornetQException e) { throw JMSExceptionHelper.convertFromHornetQException(e); } } }
session.commit();
public void commit() throws JMSException { if (!transacted) { throw new IllegalStateException("Cannot commit a non-transacted session"); } if (xa) { throw new TransactionInProgressException("Cannot call commit on an XA session"); } try { session.commit(); } catch (HornetQException e) { throw JMSExceptionHelper.convertFromHornetQException(e); } }
session.commit(); return;