Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 41112 invoked from network); 30 Oct 2001 01:14:10 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 30 Oct 2001 01:14:10 -0000 Received: (qmail 29887 invoked by uid 97); 30 Oct 2001 01:13:50 -0000 Delivered-To: qmlist-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 29875 invoked by uid 97); 30 Oct 2001 01:13:50 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 29864 invoked from network); 30 Oct 2001 01:13:49 -0000 Message-Id: <3.0.5.32.20011030091343.010dcef0@209.207.216.149> X-Sender: panda@209.207.216.149 X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Tue, 30 Oct 2001 09:13:43 To: tomcat-user@jakarta.apache.org From: chas Subject: going from Zope to Tomcat, where are these features ? In-Reply-To: <3BD7F120.4080205@clarologic.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N This is not meant as a comparison of Zope and Tomcat, and the market has dictated that Java/JSP/J2EE is the way to go, so pls do not treat this post as a troll. However, in migrating from Zope to Tomcat, I can't help but wonder where the following features are in Tomcat. 1. In Zope, you can create permanent database connections with a click of a button. It comes part and parcel of the application server. In Java, you can create your own database pool. (eg. http://webdevelopersjournal.com/columns/connection_pool.html) But does Tomcat really not come with its own database pool manager built-in ? 2. In Zope, you create a "SQL Method", which is an object that basically contains a SQL statement and queries it against one of the database connections in your pool. The advantage of such "SQL Methods" is that they can be fully tested/debugged standalone before using their output within your pages. The result is also cached and you can easily specify the time to cache, or the number of results to cache. All it takes is your SQL query and 4-5 clicks of the mouse. There seem to be several methods of accessing DBs with Java/JSP : a. stuff all the Java code in Scriptlets within JSPs b. use Taglibs, using DBTags. c. use a javabean to take care of all DB functionality. ... but nothing as elegant as Zope's "SQL methods". For example, I have to agree with the following article - http://www-106.ibm.com/developerworks/java/library/j-webdata/ - that the scriptlets and even the DBTags code leave your JSP pages a complete mess. In short, there has to be a better, cleaner way of separating - - where Display pages use the results of SQL method which in turn use DB connections. The article above suggest the cleanest way to separate these is with "includes" - including separate pages which take care of form validation, database queries, etc. Am I overlooking something ? Thank you for your patience - sorry for such a long post. chas -- To unsubscribe, e-mail: For additional commands, e-mail: