Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 73756 invoked by uid 500); 25 Jul 2001 14:14:50 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 73676 invoked from network); 25 Jul 2001 14:14:49 -0000 From: "Vadim Gritsenko" To: , Subject: RE: Generators Date: Wed, 25 Jul 2001 10:13:49 -0400 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) Importance: Normal In-Reply-To: <000701c114c4$67553ef0$6000a8c0@titus> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Kevin, If it's OK to create one session EJB for the lifetime of a generator, do this in configure() method; If you need to create/obtain EJB for each request (it may be the case with session stateful EJB), you can do this in setup() method. Look at TraxTransformer as it have both of these methods. Don't forget to implement recycle() to do cleanup between requests. Vadim > -----Original Message----- > From: Kevin O'Neill [mailto:kevin@rocketred.com.au] > Sent: Wednesday, July 25, 2001 12:44 AM > To: cocoon-dev@xml.apache.org > Subject: Generators > > > I'm in the process of creating a cocoon 2 generator and I have a couple > of questions that I don't seem to be able to find the answers to in the > documentation, if this is just a matter of my eyes being blind to the > documentation then please tell me to RTFM (with a reference if > possible). > > I have a generator that calls an EJB Session Bean to do some processing > and returns me a JDOM document that I then trigger the SAX events from. > > I want to create the reference to the home interface once when the > object is fist initialised and put into the pool. At the moment (as I > can't seem to locate the correct method to implement/override) I'm > initialising the reference on object creation using a parameter from a > properties file. I'd rather do this in some sort of lifecycle event a > little like ejbCreate and read the home interface jndi location from a > parameter in the sitemap file. > > Can anybody point me in the right direction, at some sample code? > > k. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org > For additional commands, email: cocoon-dev-help@xml.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org