Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 75881 invoked from network); 21 Oct 2003 01:45:55 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 21 Oct 2003 01:45:55 -0000 Received: (qmail 21735 invoked by uid 500); 21 Oct 2003 01:45:34 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 21693 invoked by uid 500); 21 Oct 2003 01:45:34 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 21677 invoked from network); 21 Oct 2003 01:45:33 -0000 Received: from unknown (HELO ags01.agsoftware.dnsalias.com) (216.6.48.60) by daedalus.apache.org with SMTP; 21 Oct 2003 01:45:33 -0000 Received: from ags01.agsoftware.dnsalias.com (localhost [127.0.0.1]) by ags01.agsoftware.dnsalias.com (8.12.8/8.12.8) with ESMTP id h9L1jfwY005164 for ; Mon, 20 Oct 2003 19:45:41 -0600 Received: (from apache@localhost) by ags01.agsoftware.dnsalias.com (8.12.8/8.12.8/Submit) id h9L1jei8005162; Mon, 20 Oct 2003 19:45:40 -0600 X-Authentication-Warning: ags01.agsoftware.dnsalias.com: apache set sender to agallardo@agsoftware.dnsalias.com using -f Received: from 10.0.0.5 (SquirrelMail authenticated user agallardo) by ags01.agsoftware.dnsalias.com with HTTP; Mon, 20 Oct 2003 19:45:40 -0600 (CST) Message-ID: <34074.10.0.0.5.1066700740.squirrel@ags01.agsoftware.dnsalias.com> Date: Mon, 20 Oct 2003 19:45:40 -0600 (CST) Subject: Re: OJB Block (Or Java Dev/OO Newbie Questions From: "Antonio Gallardo" To: In-Reply-To: References: X-Priority: 3 Importance: Normal X-Mailer: SquirrelMail (version 1.2.11) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N JD Daniels dijo: > Hey all, > > I have been trying to get OJB to work under cocoon with MySQL. I have > finally succeded (to a certain extent) > However, I am very quickly getting confused. > > The woody OJB block sample uses: > > var factory = > cocoon.getComponent(Packages.org.apache.cocoon.ojb.jdo.components.JdoPMF.ROL > E); > > Now I kinda spied out that the component manager is going the way of the > dodo in favour of a sequencemanger type thing... > > So my working bit is : > > var factory = new Packages.org.apache.ojb.jdori.sql.OjbStorePMF; > > So my questions to more experienced Java developers are: > > 1.) Why would we make a block for this? It seems the block simply calls > OJB itself. Since OJB is not part of cocoon, it would make sense to > invoke it on its own. Hmm. Initially I thought the same, but since OJB has his own factory, I create a block to have just 1 factory instead of create a new factory on every request from the user. This way we save time. > 2.) I am working on the first part, which is basically a user list that > I use with the authentication framework. This part would a good idea to > give back as sample. If I do that, do I need to make it a block now? Good! I am newbie in this area too. I am trying to do other examples. Your help is very welcome! > Now before you guys answer..... I am a poor hack->click-reload->hack PHP > guy... I love OO and java but it is a struggle :S :-D Best Regards, Antonio Gallardo