Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 18856 invoked from network); 28 Jan 2004 12:02:08 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 28 Jan 2004 12:02:08 -0000 Received: (qmail 71592 invoked by uid 500); 28 Jan 2004 11:53:05 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 71570 invoked by uid 500); 28 Jan 2004 11:53:04 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 71544 invoked from network); 28 Jan 2004 11:53:04 -0000 Received: from unknown (HELO main.gmane.org) (80.91.224.249) by daedalus.apache.org with SMTP; 28 Jan 2004 11:53:04 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1Alns1-0003Xf-00 for ; Wed, 28 Jan 2004 12:28:33 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: users@cocoon.apache.org Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Alnrz-0003XW-00 for ; Wed, 28 Jan 2004 12:28:32 +0100 Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1Alnrz-0005He-00 for ; Wed, 28 Jan 2004 12:28:31 +0100 From: Olivier Billard Subject: Re: [ESQL] sharing transactions Date: Wed, 28 Jan 2004 12:27:16 +0100 Lines: 55 Message-ID: References: <200401281041.57976.ntoper@jouve.fr> <200401281148.32115.ntoper@jouve.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org Gmane-NNTP-Posting-Host: 195.6.79.173 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: fr-fr, fr, en, ja In-Reply-To: <200401281148.32115.ntoper@jouve.fr> Sender: news 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 I would like to do simple logic and tests in XSP, and use a component for more complex business code. But actions of the component would rely on things done in the XSP transaction... so it needs to act in the same transaction as the XSP logic. On 28/01/2004 11:48, Nicolas Toper wrote: > Because the connection is explicitaly coded as a parameter in a sitemap and > you have more controls over the parameter it seems: see > http://cocoon.apache.org/2.1/userdocs/transformers/sql-transformer.html > > But rereading your mail, I don't understand what you intend to do: share the > connections? The SQL? The result? > > > > > > > > Le Mercredi 28 Janvier 2004 10:41, Olivier Billard a �crit : > >>Hi Nicolas, >> >>Thanks for your answer. >>How could the SQL transformer help ? >> >>On 28/01/2004 10:41, Nicolas Toper wrote: >> >>>Bad but working & easy :=) if your ESQL is only called once a time it's >>>OK. Otherwise, why not try the SQL Transformer?. >>> >>>Le Mercredi 28 Janvier 2004 10:30, Olivier Billard a �crit : >>> >>>>Hi Cocooners ! >>>> >>>>I use the esql stylesheet to execute a transaction. But I would like to >>>>isolate the most business code possible in a java component, and sharing >>>>the transaction to this component. >>>> >>>>The ESQLConnection is meant to be hidden and abstracted by the >>>>stylesheet, so it would be baaad to do something like >>>> >>>>myComponent.dealWithBusinessCode(_esql_connection, ...); >>>> >>>>So what is the best way to do this ? >>>>Thanks, >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org >>For additional commands, e-mail: users-help@cocoon.apache.org > > -- Olivier BILLARD --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org