cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Ratcliffe" <a...@mrigitech.com>
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
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:uzo@beyarecords.com]
Sent: Tuesday, 18 January 2005 10:00 a.m.
To: users@cocoon.apache.org
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message