2 Replies Latest reply on Jun 12, 2012 11:30 AM by james_farmer

    Mute JBoss 7 client logging?

    james_farmer Newbie

      Hi everyone.

       

      We have a standalone Java application which interacts with EJB & JMS resources hosted on a JBoss 7.1.0 server.  This all works well, except for the amount of logging that is getting dumped to standard output in the client,which often includes a continual a wall of lines like:

       


      Jun 11, 2012 7:06:11 PM org.jboss.ejb.client.remoting.ChannelAssociation resultReady

      INFO: Discarding result for invocation id 266 since no waiting context found

      Jun 11, 2012 7:06:11 PM org.jboss.ejb.client.remoting.ChannelAssociation resultReady

      INFO: Discarding result for invocation id 267 since no waiting context found

      Jun 11, 2012 7:06:11 PM org.jboss.ejb.client.remoting.ChannelAssociation resultReady

      INFO: Discarding result for invocation id 268 since no waiting context found

       

      Presuming these messages are nothing to worry about, can anyone recommend how we can stop them from being output?  I was assuming there would be a property we could set (maybe in jboss-ejb-client.properties) but there didn't seem to be one.

       

      Although it doesn't seem to affect the execution of application, the client stdout also shows regular errors like:

       

      Jun 11, 2012 7:06:06 PM org.jboss.ejb.client.remoting.ChannelAssociation$ResponseReceiver handleMessage
      WARN: Unsupported message received with header 0xffffffff
      Jun 11, 2012 7:06:07 PM org.jboss.naming.remote.protocol.v1.RemoteNamingStoreV1$MessageReceiver handleEnd6/1

       

      ERROR: Channel end notification received, closing channel Channel ID a41fc979 (outbound) of Remoting connection 447bbfb8 to localhost/127.0.0.1:4447

       

      Can anyone point me towards an explanation of what these mean?

       

      Thanks,

       

      James.

        • 1. Re: Mute JBoss 7 client logging?
          Jay SenSharma Master

          Hi,

           

                As mentioned in the following link: http://middlewaremagic.com/jboss/?p=2037

           

           

                Create a "/home/userone/logging.properties" file somewhere in your filesystem  like following:

           

          # Logging

          handlers =  java.util.logging.ConsoleHandler

          .level = ALL

          INFO

           

          # Console Logging

          java.util.logging.ConsoleHandler.level=SEVERE

           

          Then when you want to run your Client then run it with the following System properties :

           

            java  -Djava.util.logging.manager=java.util.logging.LogManager    -Djava.util.logging.config.file=/home/userone/logging.properties  TestEjbClient

           

           

            So now If you want to see usual / more logging just change the Log level in your "logging.properties" to java.util.logging.ConsoleHandler.level=INFO   

            Or   

            CONFIG, INFO, WARNING, SEVERE; ALL and OFF   based on your requirement

          • 2. Re: Mute JBoss 7 client logging?
            james_farmer Newbie

            That fixed it - thanks for the advice!