Browsing messages  Closing connections, sessions, consumers, and producers

Chapter 31: Using the Message Service

Enabling JMS tracing

To help debug your JMS client application, you can enable tracing by setting the com.sybase.jms.debug property to true in the InitialContext object. When you enable tracing, diagnostic messages are printed in the console window. By default, tracing is disabled. This code sample illustrates how to set the tracing property:

Properties prop = new Properties();

prop.put(“com.sybase.jms.debug”, “true”);
javax.naming.Context ctx = 
   new javax.naming.InitialContext(prop);




Copyright © 2005. Sybase Inc. All rights reserved. Closing connections, sessions, consumers, and producers

View this book as PDF