org.jboss.naming.remote.server.DefaultRemoteNamingServerLogger Maven / Gradle / Ivy
Go to download
This artifact provides a single jar that contains all classes required to use remote Jakarta Enterprise Beans and Jakarta Messaging, including
all dependencies. It is intended for use by those not using maven, maven users should just import the Jakarta Enterprise Beans and
Jakarta Messaging BOM's instead (shaded JAR's cause lots of problems with maven, as it is very easy to inadvertently end up
with different versions on classes on the class path).
package org.jboss.naming.remote.server;
import java.io.IOException;
import org.jboss.logging.Logger;
import org.jboss.remoting3.Channel;
/**
* @author John Bailey
*/
public class DefaultRemoteNamingServerLogger implements RemoteNamingServerLogger{
private static final Logger log = Logger.getLogger(RemoteNamingService.class.getPackage().getName());
public static DefaultRemoteNamingServerLogger INSTANCE = new DefaultRemoteNamingServerLogger();
private DefaultRemoteNamingServerLogger() {
}
public void failedToSendHeader(final IOException exception) {
log.error("Unable to send header, closing channel", exception);
}
public void failedToDetermineClientVersion(final IOException exception) {
log.error("Error determining version selected by client.", exception);
}
public void closingChannel(final Channel channel, final Throwable error) {
log.errorf(error, "Closing channel %s due to an error", channel);
}
public void closingChannelOnChannelEnd(final Channel channel) {
log.debugf("Channel end notification received, closing channel %s", channel);
}
public void unnexpectedError(final Throwable t) {
log.warn("Unexpected internal error", t);
}
public void nullCorrelationId(final Throwable t) {
log.error("null correlationId so error not sent to client", t);
}
public void failedToSendExceptionResponse(final IOException ioe) {
log.error("Failed to send exception response to client", ioe);
}
public void unexpectedParameterType(byte expected, byte actual) {
log.errorf("Unexpected parameter type - excpected: %d received: %d", expected, actual);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy