File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Java Products and Servers and the fly likes Sonic MQ error logs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Sonic MQ error logs" Watch "Sonic MQ error logs" New topic

Sonic MQ error logs

Alita Bear

Joined: Apr 07, 2005
Posts: 1
I have an application that makes use of the Sonic library. My question is, does anyone know how not to show Sonic errors in the console? An example is when I try to create a progress.message.jclient.TopicConnectionFactory when the Sonic server is down. I have something like this in my code:

try {
topicConnectionFactory = new progress.message.jclient.TopicConnectionFactory();
topicConnection = topicConnectionFactory.createTopicConnection(username, password);
} catch (Exception e) {
getLogger().log(Level.FINER,"Problem in connecting, "e);

When the Sonic broker is down, I was expecting to just get the FINER log from my class's logger but I get this extraneous log:

[103] progress.message.client.EUnknownBrokerHost:
<my host name>:https://<my host name>:<its port number>
at progress.message.zclient.Connection.WPB_(Unknown Source)
at progress.message.zclient.Connection.connectWithRecoveryOpt(Unknown So
at progress.message.zclient.ReconnectHelper.connectAndChaseSingleFailove
rRedirect(Unknown Source)
at progress.message.zclient.ReconnectHelper.connect(Unknown Source)
at progress.message.zclient.FaultTolerantDropHandler.LV_(Unknown Source)
at progress.message.zclient.FaultTolerantDropHandler.socketDropped(Unkno
wn Source)
at progress.message.zclient.Connection.qPB_(Unknown Source)
at progress.message.zclient.ClientListener.hBC_(Unknown Source)
at progress.message.zclient.ClientListener.gBC_(Unknown Source)
at progress.message.zclient.ClientListener.threadMain(Unknown Source)
at Source)

before my FINER log. Are Sonic errors by default logged to the console? Is there a way to suppress all of these messages?
I agree. Here's the link:
subject: Sonic MQ error logs
jQuery in Action, 3rd edition