@Override public boolean isInfoEnabled() { return logger.isInfoEnabled(); }
public String info(final String message) { if (isInfoEnabled()) { final String msg = getMessage(message, baseName); logStream.info(msg); return msg; } return message; }
public String info(final String message, final Throwable t) { if (isInfoEnabled()) { final String msg = getMessage(message, baseName); logStream.info(msg, t); return msg; } return message; }
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException { if (transactionLogger.isInfoEnabled()) { transactionLogger.info("Committing user transaction " + transactionManager().getTransaction()); } transactionManager().commit(); }
public String info(final String message, final Throwable t) { if (isInfoEnabled()) { final String msg = getMessage(message, baseName); logStream.info(msg, t); return msg; } return message; }
public void rollback() throws IllegalStateException, SecurityException, SystemException { if (transactionLogger.isInfoEnabled()) { transactionLogger.info("Rolling back user transaction " + transactionManager().getTransaction()); } transactionManager().rollback(); }
public void begin() throws NotSupportedException, SystemException { transactionManager().begin(); if (transactionLogger.isInfoEnabled()) { transactionLogger.info("Started user transaction " + transactionManager().getTransaction()); } }
public String info(final String message) { if (isInfoEnabled()) { final String msg = getMessage(message, baseName); logStream.info(msg); return msg; } return message; }
public String info(String message, Throwable t) { if (isInfoEnabled()) { String msg = getMessage(message, baseName); logStream.info(msg, t); return msg; } return message; }
public int getStatus() throws SystemException { int status = transactionManager().getStatus(); if (transactionLogger.isInfoEnabled()) { transactionLogger.info("User transaction " + transactionManager().getTransaction() + " has status " + getStatus(status)); } return status; }
@Managed public void allowCoreThreadTimeOut(final boolean value) { getThreadPool().allowCoreThreadTimeOut(value); if (log.isInfoEnabled()) { log.info(String.format("Set ServicePool '" + ServicePool.this.getName() + "' allow core thread timeout to (%1$s)", value)); } }
public void setRollbackOnly() throws javax.transaction.SystemException { if (transactionLogger.isInfoEnabled()) { transactionLogger.info("Marking user transaction for rollback: " + transactionManager().getTransaction()); } transactionManager().setRollbackOnly(); }
public String info(String message, Object... args) { if (isInfoEnabled()) { String msg = getMessage(message, baseName); msg = formatMessage(msg, args); logStream.info(msg); return msg; } return message; }
public String info(String message, Throwable t, Object... args) { if (isInfoEnabled()) { String msg = getMessage(message, baseName); msg = formatMessage(msg, args); logStream.info(msg, t); return msg; } return message; }
public String info(final String message, final Object... args) { if (isInfoEnabled()) { String msg = getMessage(message, baseName); msg = formatMessage(msg, args); logStream.info(msg); return msg; } return message; }
public String info(final String message, final Throwable t, final Object... args) { if (isInfoEnabled()) { String msg = getMessage(message, baseName); msg = formatMessage(msg, args); logStream.info(msg, t); return msg; } return message; }
public String info(final String message, final Object... args) { if (isInfoEnabled()) { String msg = getMessage(message, baseName); msg = formatMessage(msg, args); logStream.info(msg); return msg; } return message; }
public String info(final String message, final Throwable t, final Object... args) { if (isInfoEnabled()) { String msg = getMessage(message, baseName); msg = formatMessage(msg, args); logStream.info(msg, t); return msg; } return message; }
private EJBResponse setResponseError(final EJBResponse res, final byte version, final Throwable error, final String message) { //This is fatal for the client, but not the server. if (logger.isInfoEnabled()) { logger.info(message + " - Enable DEBUG for stacktrace: " + error); } else if (logger.isDebugEnabled()) { logger.debug(message, error); } final RemoteException re = new RemoteException(message, error); res.setResponse(version, ResponseCodes.EJB_ERROR, new ThrowableArtifact(re)); return res; } }
@Managed public void setMaximumPoolSize(final int maximumPoolSize) { getThreadPool().setMaximumPoolSize(maximumPoolSize); if (log.isInfoEnabled()) { log.info(String.format("Set ServicePool '" + ServicePool.this.getName() + "' maximum threads to (%1$s)", maximumPoolSize)); } }