/** * Convenience method, returning the {@link MessageBroker} of the {@link #getCurrentTransaction() current * transaction}. */ public static MessageBroker getMessageBroker() { return getCurrentTransaction().getMessageBroker(); }
/** * Convenience method returning the {@link MessageBroker} * of the {@link #getTransaction() current transaction}. */ protected MessageBroker getMessageBroker() { return getTransaction().getMessageBroker(); }
public void takeSnapshot() { if (!LOG.isDebugEnabled()) { return; } final DebugString debug = new DebugString(); debug(debug); debug.indent(); debug.appendln(); debug(debug, getPersistenceSession()); if (getCurrentTransaction() != null) { debug(debug, getCurrentTransaction().getUpdateNotifier()); debug(debug, getCurrentTransaction().getMessageBroker()); } debugSnapshot = debug.toString(); LOG.debug(debugSnapshot); }
public void appendState(final ToString asString) { asString.append("authenticationSession", getAuthenticationSession()); asString.append("persistenceSession", getPersistenceSession()); asString.append("transaction", getCurrentTransaction()); if (getCurrentTransaction() != null) { asString.append("messageBroker", getCurrentTransaction().getMessageBroker()); asString.append("updateNotifier", getCurrentTransaction().getUpdateNotifier()); } }
public void debugState(final DebugString debug) { debug.appendln("authenticationSession", getAuthenticationSession()); debug.appendln("persistenceSession", getPersistenceSession()); debug.appendln("transaction", getCurrentTransaction()); if (getCurrentTransaction() != null) { debug.appendln("messageBroker", getCurrentTransaction().getMessageBroker()); debug.appendln("updateNotifier", getCurrentTransaction().getUpdateNotifier()); } }