Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 89133 invoked from network); 11 Feb 2003 09:11:00 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 11 Feb 2003 09:11:00 -0000 Received: (qmail 23677 invoked by uid 97); 11 Feb 2003 09:12:42 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 23670 invoked from network); 11 Feb 2003 09:12:41 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 11 Feb 2003 09:12:41 -0000 Received: (qmail 87665 invoked by uid 500); 11 Feb 2003 09:10:43 -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 87648 invoked from network); 11 Feb 2003 09:10:42 -0000 Received: from mrelay.jrc.it (139.191.1.65) by daedalus.apache.org with SMTP; 11 Feb 2003 09:10:42 -0000 Received: from mrelay.jrc.it (localhost [127.0.0.1]) by mrelay.jrc.it (LMC5614B) with ESMTP id h1B9ApN20351 for ; Tue, 11 Feb 2003 10:10:51 +0100 (MET) Received: from it-mboxes.jrc.it (it-mboxes.jrc.it [139.191.243.11]) by mrelay.jrc.it (LMC5614A) with ESMTP id h1B9Aoq20346; Tue, 11 Feb 2003 10:10:51 +0100 (MET) Received: from libero.it (139.191.173.135) by it-mboxes.jrc.it (5.5.053) id 3C7774BD002175FF; Tue, 11 Feb 2003 10:10:50 +0100 Message-ID: <3E48BE76.5000400@libero.it> Date: Tue, 11 Feb 2003 10:12:22 +0100 From: Martin Jacobson User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Little system X Great architecture References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Jose Euclides da Silva Junior - DATAPREVRJ wrote: > Hi, > i need to code a system in which there is no many business rules, but i need > data persistence in a database. Even if this system will have an enterprise > users scope, should i use EJB technology? What about only servlets/jsp? > Regards, > Euclides. > The application I am currently developing seems similar to yours: I have persistant data in a relational database, with a Web-based client tier. I have abstracted the SQL-specific stuff into separate classes (this means I can easily switch between MySQL [development] & Oracle [production]. Business-level logic (including transactions) is in a next layer of code, while the servlets do the presentation-level work only. I don't use JSPs, as I found that using an HTML template engine (Velocity) provides a cleaner separation of the HTML generation. I did consider EJBs initially, but rapidly came to the conclusion that my app was *way* too small - the overheads are so great that you need a substantial application before you reach break even. HTH Martin --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org