Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 51396 invoked from network); 21 Oct 2003 00:47:56 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 21 Oct 2003 00:47:56 -0000 Received: (qmail 86412 invoked by uid 500); 21 Oct 2003 00:47:36 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 86347 invoked by uid 500); 21 Oct 2003 00:47:36 -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 86333 invoked from network); 21 Oct 2003 00:47:36 -0000 Received: from unknown (HELO ns1.solarwinds.com) (64.114.167.2) by daedalus.apache.org with SMTP; 21 Oct 2003 00:47:36 -0000 Received: from jd (h24-65-166-210.nb.shawcable.net [24.65.166.210]) by ns1.solarwinds.com (8.12.8/8.12.8) with SMTP id h9L0lg74002956 for ; Mon, 20 Oct 2003 17:47:43 -0700 (MST) From: "JD Daniels" To: Subject: OJB Block (Or Java Dev/OO Newbie Questions Date: Mon, 20 Oct 2003 17:48:23 -0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal X-solar-MailScanner: Found to be clean 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 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. 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? 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 JD