Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > How to suppress JMS connection messages?

Reply
Thread Tools

How to suppress JMS connection messages?

 
 
askdolphin@gmail.com
Guest
Posts: n/a
 
      05-16-2008
Dear All,

Is there any way to suppress the JMS connection messages as follows? I
don't want the console to display these messages.

May 15, 2008 9:55:58 PM com.sun.messaging.jms.ra.ResourceAdapter start
INFO: MQJMSRA_RA1101: SJSMQ JMS Resource Adapter starting...
May 15, 2008 9:55:59 PM com.sun.messaging.jms.ra.ResourceAdapter start
INFO: MQJMSRA_RA1101: SJSMQ JMSRA Started:REMOTE
May 15, 2008 9:55:59 PM
com.sun.messaging.jms.ra.ManagedConnectionFactory setAddressList
INFO: MQJMSRA_MF1101: setAddressList:NOT setting default
value=localhost
May 15, 2008 9:55:59 PM
com.sun.messaging.jms.ra.ManagedConnectionFactory setPassword
INFO: MQJMSRA_MF1101: setPassword:NOT setting default value
May 15, 2008 9:55:59 PM
com.sun.messaging.jms.ra.ManagedConnectionFactory setUserName
INFO: MQJMSRA_MF1101: setUserName:NOT setting default value=guest
May 15, 2008 9:56:00 PM com.sun.messaging.jms.ra.ManagedConnection
<init>
INFO: MQJMSRA_MC1101: constructor:Created
mcId=1acId=4631136308923212288:Using xacf
config={imqOverrideJMSPriority=false, imqConsumerFlowLimit=1000,
imqOverrideJMSExpiration=false, imqAddressListIterations=3,
imqLoadMaxToServerSession=true, imqConnectionType=TCP,
imqPingInterval=30, imqSetJMSXUserID=false, imqConfiguredClientID=,
imqSSLProviderClassname=com.sun.net.ssl.internal.s sl.Provider,
imqJMSDeliveryMode=PERSISTENT, imqConnectionFlowLimit=1000,
imqConnectionURL=http://localhost/imq/tunnel, imqBrokerServiceName=,
imqJMSPriority=4, imqBrokerHostName=localhost, imqJMSExpiration=0,
imqAckOnProduce=, imqEnableSharedClientID=false, imqAckTimeout=0,
imqAckOnAcknowledge=, imqConsumerFlowThreshold=50,
imqDefaultPassword=guest, imqQueueBrowserMaxMessagesPerRetrieve=1000,
imqDefaultUsername=guest, imqReconnectEnabled=true,
imqConnectionFlowCount=100, imqAddressListBehavior=RANDOM,
imqReconnectAttempts=3, imqSetJMSXAppID=false,
imqConnectionHandler=com.sun.messaging.jmq.jmsclie nt.protocol.tcp.TCPStreamHandler,
imqSetJMSXRcvTimestamp=false, imqBrokerServicePort=0,
imqDisableSetClientID=false, imqSetJMSXConsumerTXID=false,
imqOverrideJMSDeliveryMode=false, imqBrokerHostPort=7676,
imqQueueBrowserRetrieveTimeout=60000, imqSetJMSXProducerTXID=false,
imqSSLIsHostTrusted=false, imqConnectionFlowLimitEnabled=false,
imqReconnectInterval=5000, imqAddressList=mq://abaco.labs.mot.com:
7676/, imqOverrideJMSHeadersToTemporaryDestinations=false }

Thanks for your help!

Dolphin
 
Reply With Quote
 
 
 
 
Ajay
Guest
Posts: n/a
 
      05-16-2008
On May 16, 12:46*am, (E-Mail Removed) wrote:
> Dear All,
>
> Is there any way to suppress the JMS connection messages as follows? I
> don't want the console to display these messages.



Set the log level for "com.sun.*" to ERROR.

HTH

Ajay




>
> May 15, 2008 9:55:58 PM com.sun.messaging.jms.ra.ResourceAdapter start
> INFO: MQJMSRA_RA1101: SJSMQ JMS Resource Adapter starting...
> May 15, 2008 9:55:59 PM com.sun.messaging.jms.ra.ResourceAdapter start
> INFO: MQJMSRA_RA1101: SJSMQ JMSRA Started:REMOTE
> May 15, 2008 9:55:59 PM
> com.sun.messaging.jms.ra.ManagedConnectionFactory setAddressList
> INFO: MQJMSRA_MF1101: setAddressList:NOT setting default
> value=localhost
> May 15, 2008 9:55:59 PM
> com.sun.messaging.jms.ra.ManagedConnectionFactory setPassword
> INFO: MQJMSRA_MF1101: setPassword:NOT setting default value
> May 15, 2008 9:55:59 PM
> com.sun.messaging.jms.ra.ManagedConnectionFactory setUserName
> INFO: MQJMSRA_MF1101: setUserName:NOT setting default value=guest
> May 15, 2008 9:56:00 PM com.sun.messaging.jms.ra.ManagedConnection
> <init>
> INFO: MQJMSRA_MC1101: constructor:Created
> mcId=1acId=4631136308923212288:Using xacf
> config={imqOverrideJMSPriority=false, imqConsumerFlowLimit=1000,
> imqOverrideJMSExpiration=false, imqAddressListIterations=3,
> imqLoadMaxToServerSession=true, imqConnectionType=TCP,
> imqPingInterval=30, imqSetJMSXUserID=false, imqConfiguredClientID=,
> imqSSLProviderClassname=com.sun.net.ssl.internal.s sl.Provider,
> imqJMSDeliveryMode=PERSISTENT, imqConnectionFlowLimit=1000,
> imqConnectionURL=http://localhost/imq/tunnel, imqBrokerServiceName=,
> imqJMSPriority=4, imqBrokerHostName=localhost, imqJMSExpiration=0,
> imqAckOnProduce=, imqEnableSharedClientID=false, imqAckTimeout=0,
> imqAckOnAcknowledge=, imqConsumerFlowThreshold=50,
> imqDefaultPassword=guest, imqQueueBrowserMaxMessagesPerRetrieve=1000,
> imqDefaultUsername=guest, imqReconnectEnabled=true,
> imqConnectionFlowCount=100, imqAddressListBehavior=RANDOM,
> imqReconnectAttempts=3, imqSetJMSXAppID=false,
> imqConnectionHandler=com.sun.messaging.jmq.jmsclie nt.protocol.tcp.TCPStreamHandler,
> imqSetJMSXRcvTimestamp=false, imqBrokerServicePort=0,
> imqDisableSetClientID=false, imqSetJMSXConsumerTXID=false,
> imqOverrideJMSDeliveryMode=false, imqBrokerHostPort=7676,
> imqQueueBrowserRetrieveTimeout=60000, imqSetJMSXProducerTXID=false,
> imqSSLIsHostTrusted=false, imqConnectionFlowLimitEnabled=false,
> imqReconnectInterval=5000, imqAddressList=mq://abaco.labs.mot.com:
> 7676/, imqOverrideJMSHeadersToTemporaryDestinations=false }
>
> Thanks for your help!
>
> Dolphin


 
Reply With Quote
 
 
 
 
askdolphin@gmail.com
Guest
Posts: n/a
 
      05-16-2008
Sorry, it doesn't work. These are not error messages. They are just
some "INFO." It doesn't work either when the log level is set to "ALL"

Please advice!!

Thanks!!!
 
Reply With Quote
 
Owen Jacobson
Guest
Posts: n/a
 
      05-16-2008
On May 16, 10:51*am, (E-Mail Removed) wrote:
> Sorry, it doesn't work. These are not error messages. They are just
> some "INFO." It doesn't work either when the log level is set to "ALL"
>
> Please advice!!
>
> Thanks!!!


The way logging works in this context is that each log event is a
pair:

(Priority, Message)

The category also has a priority. Any pair whose priority is less
than the category's priority is suppressed; all others are logged.

In this case, ALL is the *lowest* priority (all priorities are higher
than ALL, so no messages will be suppressed). If you want to turn off
INFO for a given category, you must set that category's priority to
something higher than INFO -- WARN is a good value; it's the next
priority up from INFO.

Note that the priority levels -- INFO, ALL, ERROR, WARN, etc -- do not
necessarily mean that the message is an error! It's traditional to
use the priorities as labelled, but ultimately they are just levels of
detail.

-o
 
Reply With Quote
 
askdolphin@gmail.com
Guest
Posts: n/a
 
      05-16-2008
Thank you so much for the info. However, it still doesn't work. I
tried:

Logger.getLogger( "com.sun.*").setLevel( Level.SEVERE);

The INFO messages still shows up when it reaches to Context.lookup()
 
Reply With Quote
 
Arne Vajh°j
Guest
Posts: n/a
 
      05-17-2008
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> Thank you so much for the info. However, it still doesn't work. I
> tried:
>
> Logger.getLogger( "com.sun.*").setLevel( Level.SEVERE);
>
> The INFO messages still shows up when it reaches to Context.lookup()


Logger.getLogger("com.sun").setLevel(Level.SEVERE) ;

looks more correct to my eyes.

Arne
 
Reply With Quote
 
askdolphin@gmail.com
Guest
Posts: n/a
 
      05-19-2008
Sorry, still not working

On May 16, 8:37 pm, Arne Vajh°j <(E-Mail Removed)> wrote:
> (E-Mail Removed) wrote:
> > Thank you so much for the info. However, it still doesn't work. I
> > tried:

>
> > Logger.getLogger( "com.sun.*").setLevel( Level.SEVERE);

>
> > The INFO messages still shows up when it reaches to Context.lookup()

>
> Logger.getLogger("com.sun").setLevel(Level.SEVERE) ;
>
> looks more correct to my eyes.
>
> Arne


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
implementing or using jms or running jms without application server ravinder.ggl@gmail.com Java 0 06-26-2007 10:26 AM
Connect to JMS through socket connection? Berlin Brown Java 0 08-26-2005 04:49 PM
How to setup JBoss for JMS (not MDB-JMS) ? Thomas Stein Java 0 10-18-2004 09:10 PM
Create connection with authenication - JMS Abraham Khalil Java 0 01-22-2004 02:56 AM



Advertisments