cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Ratcliffe" <>
Subject RE: Using business objects instead of XML
Date Mon, 17 Jan 2005 21:30:05 GMT
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
using lazy intitialization of your hibernate objects and passing these to
for processing

Both of these issues are described in more detail in the wiki document I
in the previous post.

Some people are now using the Spring framework for hibernate support, I
haven't tried
this myself, see


-----Original Message-----
From: beyaRecords []
Sent: Tuesday, 18 January 2005 10:00 a.m.
Subject: Re: Using business objects instead of XML

On 17 Jan 2005, at 20:32, Adam Ratcliffe wrote:

> var factory =
> cocoon.getComponent(;
> You could then get your bizData like this:
> var hs = factory.createSession();
> var bizData = hs.find("from org.test.Data");

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


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message