Return-Path: Delivered-To: apmail-beehive-user-archive@www.apache.org Received: (qmail 60496 invoked from network); 3 Dec 2005 00:45:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Dec 2005 00:45:23 -0000 Received: (qmail 40557 invoked by uid 500); 3 Dec 2005 00:45:22 -0000 Delivered-To: apmail-beehive-user-archive@beehive.apache.org Received: (qmail 40539 invoked by uid 500); 3 Dec 2005 00:45:21 -0000 Mailing-List: contact user-help@beehive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Beehive Users" Delivered-To: mailing list user@beehive.apache.org Received: (qmail 40528 invoked by uid 99); 3 Dec 2005 00:45:21 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2005 16:45:21 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [65.32.5.131] (HELO ms-smtp-01.tampabay.rr.com) (65.32.5.131) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2005 16:46:50 -0800 Received: from [192.168.1.101] (163-120.119-70.tampabay.res.rr.com [70.119.120.163]) by ms-smtp-01.tampabay.rr.com (8.12.10/8.12.7) with ESMTP id jB30ivv8026628 for ; Fri, 2 Dec 2005 19:44:57 -0500 (EST) Message-ID: <4390EA85.6040104@ieee.org> Date: Fri, 02 Dec 2005 19:44:53 -0500 From: James Black User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Beehive Users Subject: Re: Doubts on Apache Beehive. References: <4390e855.150f8a02.3f5d.ffffd04b@mx.gmail.com> In-Reply-To: <4390e855.150f8a02.3f5d.ffffd04b@mx.gmail.com> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ricardo Constantino wrote: > In beehive since actions are methods, these way of working is not possible > and since the pageflow is jpf file is not possible to create a base pageflow > to implements the same generic code. It may be splitting hairs, but page flows can be java source files also, and the jpf file can extend classes, so you can have generic code that all page flows use. For the database controller issue, you can redesign your controller logic a bit. For example, you can just open and close connections for each function, so that when it goes back to the page, you have closed that connection. Move your database functions into a database layer, and the controllers can use those classes. I probably have 10 different classes in my database layer, for example, so that I can group my database functions in a logical way. The controllers shouldn't go directly to the db anyway. If there is one common class for a database connection, then you can pass that around to the database layer, and retrieve it from there, so the different controllers can use the same connection. You can also just use a database pool, so you get and release connections quickly, right after you are done with them. This problem isn't a problem, depending on your architecture. - -- Corruptisima republica plurimae leges. [The more corrupt a republic, the more laws.] Tacitus from Annals III, 116AD -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (MingW32) iD8DBQFDkOqFJ/zyYkX46joRAlAEAJ9gqvWoaoAAM0KCdfQrRZnViP3/HgCfd4Ro CWGjSrTkwrEphUUVbzhDbGg= =SrCK -----END PGP SIGNATURE-----