2007 West
GOLD SPONSORS:
Active Endpoints
Your SOA Needs BPEL for Orchestration
BEA
Virtualized SOA: Adaptive Infrastructure for Demanding Applications
Nexaweb
Overcoming Bandwidth Challenges with Nexaweb
TIBCO
What is Service Virtualization?
SILVER SPONSORS:
WSO2
Using Web Services Technologies and FOSS Solutions
Click For 2007 East
Event Webcasts

2008 East
PLATINUM SPONSORS:
Appcelerator
Think Fast: Accelerate AJAX Development with Appcelerator
GOLD SPONSORS:
DreamFace Interactive
The Ultimate Framework for Creating Personalized Web 2.0 Mashups
ICEsoft
AJAX and Social Computing for the Enterprise
Kaazing
Enterprise Comet: Real–Time, Real–Time, or Real–Time Web 2.0?
Nexaweb
Now Playing: Desktop Apps in the Browser!
Sun
jMaki as an AJAX Mashup Framework
POWER PANELS:
The Business Value
of RIAs
What Lies Beyond AJAX?
KEYNOTES:
Douglas Crockford
Can We Fix the Web?
Anthony Franco
2008: The Year of the RIA
Click For 2007 Event Webcasts
I received an email stating that AOL finally aband...
TOP THREE LINKS YOU MUST CLICK ON
Java Cover Story — Debugging JDBC with a Logging Driver
A couple of years ago I began developing in Java, and my first Java project required that I also learn SQL. Our project team was using mostly EJBs for database access, although for some performance-critical sections of the application we wrote the JDBC logic directly. A problem that we faced regularly was tracking the bind parameters to our PreparedStatements. Over the course of the project, all of the team members tried different techniques to determine what our JDBC statements were actually doing.
Reader Feedback: Page 1 of 1

P6Spy has done this for years, is completely open source, and has support tools. Why on earth do people not bother to resarch these things - and how on earth did this article get past the editors

A couple of years ago I began developing in Java, and my first Java project required that I also learn SQL. Our project team was using mostly EJBs for database access, although for some performance-critical sections of the application we wrote the JDBC logic directly. A problem that we faced regularly was tracking the bind parameters to our PreparedStatements. Over the course of the project, all of the team members tried different techniques to determine what our JDBC statements were actually doing.

A couple of years ago I began developing in Java, and my first Java project required that I also learn SQL. Our project team was using mostly EJBs for database access, although for some performance-critical sections of the application we wrote the JDBC logic directly. A problem that we faced regularly was tracking the bind parameters to our PreparedStatements. Over the course of the project, all of the team members tried different techniques to determine what our JDBC statements were actually doing.

A couple of years ago I began developing in Java, and my first Java project required that I also learn SQL. Our project team was using mostly EJBs for database access, although for some performance-critical sections of the application we wrote the JDBC logic directly. A problem that we faced regularly was tracking the bind parameters to our PreparedStatements. Over the course of the project, all of the team members tried different techniques to determine what our JDBC statements were actually doing.

I have implemented spy6log for logging the JBDC statements executed. It not only logs the queries but also the resultsets.

Check this out. I would like to know you comments and views on this tool.

Hi, I tried using the LogDriver and it did not work for me. The problem i faced is that it was not able to get a connection. I was using jdbc:log:oracle.jdbc.driver.OracleDriver:oracle:thin as the URL for database connection. It did not seem to work. Is there any formal documentation available for the Logdriver? Please let me know. It would be great if I get it working. Thanks.

JDBInsight (now a sub component of JXInsight) has been in production at some very large J2EE sites for the last 3 years. Honestly there was simply no need for another logging driver especially as most implementations are extremely primitive only performing System.out calls.

You should have checked out the following links to see the tooling that is required for enterprise production systems in both test and production modes.

http://www.jinspired.com/products/jxinsight/new-in-2.1.html
http://www.jinspired.com/products/jxinsight/new-in-2.5.html
http://www.jinspired.com/products/jxinsight/new-in-3.0.html
http://www.jinspired.com/products/jxinsight/new-in-3.1.html
http://www.jinspired.com/products/jxinsight/new-in-3.2.html
http://www.jinspired.com/products/jxinsight/new-in-4.0.html
http://www.jinspired.com/products/jxinsight/new-in-4.1.html

William Louth
JXInsight Product Architect
JInspired

"J2EE tuning, testing and tracing with JXInsight"
http://www.jinspired.com

Is there any particular reason that you chose to write your own instead of using the p6spy driver which AFAIK does the same?


FEATURED WHITE PAPERS
YOUR FEEDBACK
TechTarget Spy News wrote: SYS-CON Events' sales team replied to Scott Kelly's exhibitor inquiry, but when they never heard back from Scott, they decided to do a little Googling and here is what they found out. Mr Kelly is actually the 'Director of Product Management at TechTarget,' a technology media company that is struggli...
Snehal Antani wrote: Kalyan, to answer your questions: "what are the hiccups?": a key issue with batch processing using java and application servers relates to JDBC cursors, transactions, and holding cursors across transactions. Checkpointing - committing work periodically so you can restart the job if needed - is i...
kasiazaki wrote: dfdf
Tattoo Designs wrote: Interesting little idea. I'd like to see it made into a more useful example, or used for a more practical purpose.
Sophia Lo wrote: GC scrap project. to complicate for interprize
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS

SYS-CON FEATURED WHITEPAPERS

BREAKING JAVA NEWS

Sun Microsystems, Inc. (NASDAQ:JAVA) today announced the new SPECjbb2005 world reco...

The pressure is on to keep pace with Web 2.0 entrants into the marketplace. Rewriting is expensive; ...
SQL Injection attacks are one of the easiest ways to hack into a website. One recent hack, using a s...
jQuery is a rapidly growing, popular JavaScript library. Its powerful and modular architecture, whic...
SOA World Magazine announced today that the polls are now open for the SOA World Magazine Readers' C...
JavaScript 2 is becoming increasingly important. Learn how to take advantage of JavaScript 2 while s...
With the rapid evolution that Java and open source frameworks have made since the release of J2EE, e...
JavaScript is a language with more than its share of bad parts. It went from non-existence to global...
JavaScript is one of the most interesting and misunderstood programming languages in common use toda...
Java developers use a variety of tools to diagnose performance problems. These tools provide deep vi...
DevExpress is proud to announce the newest addition to its web properties - the DevExpress Channel â...
If Sun hadn’t done that one-for-four reverse stock split in November and turned its $5 stock into ...
Sun has released a JavaFX preview to create sexy rich Internet applications (RIAs) on PCs, mobile, T...
"Only the Java platform is pervasive enough to allow developers to build and deploy RIAs across desk...
Mike Neil is general manager for virtualization strategy in the Windows Server Division at Microsoft...
Two of the biggest launches in Rich Internet Application history took place in 2007/2008 when Adobe ...
Before Java I was a Smalltalk guy. I remember switching from one language to the other and the tippi...
The JMSL Numerical Library is the broadest collection of mathematical, statistical, financial, data ...
Open source software, while not synonymous with Java, may often be seamlessly integrated with Java c...
Reminding people of how its backing was the making of Linux, IBM, to no one's surprise, has thrown i...
Faced with the demands of mission-critical applications, many enterprise developers have pushed the ...
SPONSORED BY INFRAGISTICS
There are many forces that influence technological evolution. After a decade of building enterprise ...
2008 is going to be an important year for Rich Internet Applications. Most organizations are deliver...
The OpenAjax Alliance is developing an Ajax industry wishlist for future browsers, using a dedicated...
In every field of design one of the first things students do is learn from the work of others. They ...
Infragistics announced the availability of two Community Technology Preview (CTP) User Interface (UI...
The YUI development team has released version 2.5.2; you can download the new release from SourceFor...
ADS BY GOOGLE