Thanks Aur�lien I have seen this example and tried it out. Unfortunately, this functionality has been removed (somewhere before 2.1.6) so trying this will result in a NullPointerException. If I understood correctly, the rationale behind this was that it seemed to make more sense putting the business logic in java classes instead of the flowscript. Merci quand-m�me. :-)

Thanks to Adam Ratcliffe for the sample Avalon component, that's perfectly what I needed!

Andre.


On Mar 29, 2005, at 10:37, Aur�lien DEHAY wrote:

Hello.

Le mardi 29 mars 2005 � 10:00 -0500, Andr� Th�not a �crit :
Hi,

I'm using flow to talk to my java model classes. So far so good.
   But I'd like my model classes to talk to the database and use
cocoon's connection pool. Do I have to write an Avalon component for
this? If so, how does one go about to do this (I don't know anything
about writing those)?

The petstore block have this functionnality (the cocoon-petstore.jar contains only the .js which do this), build the petstore without the samples and:

cocoon.load("resource://org/apache/cocoon/components/flow/javascript/ Database.js");

<snip/>


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to