Hi Uzo The important points in integrating hibernate with seem to be:
- use of Cocoon's connection pooling rather than the hibernate pooling which is not recommended for production use. - use of a servlet filter for closing the hibernate session, essential if you're using lazy intitialization of your hibernate objects and passing these to pipelines for processing Both of these issues are described in more detail in the wiki document I referenced in the previous post. Some people are now using the Spring framework for hibernate support, I haven't tried this myself, see http://new.cocoondev.org/main/117/43.html Cheers Adam -----Original Message----- From: beyaRecords [mailto:[EMAIL PROTECTED] Sent: Tuesday, 18 January 2005 10:00 a.m. To: [email protected] Subject: Re: Using business objects instead of XML On 17 Jan 2005, at 20:32, Adam Ratcliffe wrote: > var factory = > cocoon.getComponent(Packages.org.test.PersistenceFactory.ROLE); > > You could then get your bizData like this: > > var hs = factory.createSession(); > > var bizData = hs.find("from org.test.Data"); Adam, never thought to do it this way, as I leave all the instantiation within the hibernate class itself. Is it more efficient to do it this way? Uzo --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
