Hi!
We are using cocoon 2.2 and hibernate. I am not sure if we choosed the
optimal way to integrate these both, but for us it works.
We configured all database connections via spring as DataSource, and
these we use further on for the hibernate session factories and for the
old avalon data
On 26/10/09 08:25, Søren Krum wrote:
The access to hibernate managed java objects is done via the standard
hibernate way: Getting a factory, getting a session,
fetching/manipulating your object. We use a central class, a
(scope=singleton) HibernateUtil, to get the connection to the different
Hi,
I was wondering if someone who uses Cocoon 2.2 and Hibernate could
provide some tips on using Hibernate and Cocoon 2.2 together? For
example, how do others configure the connections, call in the DAO (eg
using Spring or calling them directly), etc...
An example would be nice.
Thanks
is the so-called CHS
(Cocoon-Hibernate-Spring) approach first introduced here [1]. Of course
it requires for your project to rely/depend also on Spring, but I think
that this can only be a plus, also because of the very recent release of
Spring 2.0.
As properly described here [2] (these slides were
I was wondering if anyone had advice or opinions on
using Hibernate+Flow+Cocoon? I'm writing a small test
application to understand the issues involved, and I'm
not quite clear where the SessionFactory should be created.
According to the Hibernate documentation it's a relatively expensive
and committed. I do not use flow to create the SessionFactory.
To access the session, I depend on the repository pattern where the
current session is obtained from the SessionFactory.
Hope this helps,
Andre
Joseph Toman wrote:
I was wondering if anyone had advice or opinions on
using Hibernate
Hi Joseph,
a very well established best practice in using cocoon flow (flowscript
or javaflow) with Hibernate is the so-called CHS
(Cocoon-Hibernate-Spring) approach first introduced here [1]. Of course
it requires for your project to rely/depend also on Spring, but I think
that this can only
ine and have it operate on just the namespace it uses. (I'm
sure others have said it better...)
However, in my case (and after looking at the cocoon-hibernate
tutorial), we've decided to bypass cocoon in favor of our own SQL
Transformer (which is quite a bit different and more advanced than the
stanard coc
David Kavanagh wrote:
Has anyone interfaced with Hibernate in a pipeline? Did you write a
transformer, call JavaFlow or something else?
I'm thinking of using the Hibernate XML export feature to load objects
into my pipeline (inside a transformer). I'd certainly appreciate
hearing about any
more flexible. Imagine, you can also throw it anyplace in
your pipeline and have it operate on just the namespace it uses. (I'm
sure others have said it better...)
However, in my case (and after looking at the cocoon-hibernate
tutorial), we've decided to bypass cocoon in favor of our own SQL
Has anyone interfaced with Hibernate in a pipeline? Did you write a
transformer, call JavaFlow or something else?
I'm thinking of using the Hibernate XML export feature to load objects
into my pipeline (inside a transformer). I'd certainly appreciate
hearing about any existing work in this
existing work in this area.
I assume you've seen
http://wiki.apache.org/cocoon/CocoonAndHibernateTutorial and the other
resources found by googling for cocoon hibernate. It looks like most
of these use Hibernate by calling it from Flow to get back a javabean
and use that in jxtemplate/cforms. I
Guten Morgen Johannes
Thank you very much for your help. Your mentioning the Configuration
class led me on the right track. One has to
cfg.configure().buildSessionFactory() instead of
cfg.buildSessionFactory() which was practiced in the tutorial. When I
changed the code accordingly it also
Hi again George,
strange, the code in the page works for me and also for some people who
have
tested the page. just out of curiosity: which version of Hibernate are
you using ?
Regards,
Johannes
george georgovassilis wrote:
Guten Morgen Johannes
Thank you very much for your help. Your
strange, the code in the page works for me and also for some people
who have
tested the page. just out of curiosity: which version of Hibernate are
you using ?
Yep, that is strange. But I really couldn't get it otherwise to work.
I'm doing this on plain cocoon (no tomcat or other app server)
ok, next time I will read more thoroughly :)
You needed to call configure() because you are using the
hibernate.cfg.xml file,
as opposed to hibernate.properties used by me and in the tutorial, which
is read
automatically when the session is created.
I will add this information to the page.
post the source code of your
HibernateFactory class ?
Did you add a statement like the following;
cfg.addClass(my.test.Mutex) ?
How did you add your classes to the hibernate configuration before ?
Regards,
Johannes
george georgovassilis wrote:
Hello List
I am happily using hibernate with cocoon
[mailto:[EMAIL PROTECTED]
Sent: Thursday, September 09, 2004 4:19 PM
To: [EMAIL PROTECTED]
Subject: Re: Advantage using Hibernate with Cocoon
Hi Pat,
I have am now finishing my first project I used Hibernate and Cocoon
together in,
so maybe you are interested in some thoughts from
-Original Message-
From: Johannes Textor [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 09, 2004 4:19 PM
To: [EMAIL PROTECTED]
Subject: Re: Advantage using Hibernate with Cocoon
Hi Pat,
I have am now finishing my first project I used Hibernate and Cocoon
together in,
so maybe you
Derek,
I created a wiki page that wants to grow up to be a new Tutorial
about Cocoon and Hibernate. [CocoonAndHibernateTutorial].
As time allows I will add (resp. *create*) content, check back
from time to time and add your comments.
Hope we can shrink the Elephant :-)
Greetings,
Johannes
Derek
Great - I will watch with interest!
[EMAIL PROTECTED] 2004/09/10 04:28:26 PM
Derek,
I created a wiki page that wants to grow up to be a new Tutorial
about Cocoon and Hibernate. [CocoonAndHibernateTutorial].
As time allows I will add (resp. *create*) content, check back
from time to time
.
José Ernesto Echeverría
-Original Message-
From: Derek Hohls [mailto:[EMAIL PROTECTED]
Sent: Viernes, 10 de Septiembre de 2004 08:39 a.m.
To: [EMAIL PROTECTED]
Subject: [cocoon] Re: Advantage using Hibernate with Cocoon
Great - I will watch with interest!
[EMAIL PROTECTED] 2004/09
I'm wondering what might be the advantage of
using Hibernate - or another O/R mapper - together
with Cocoon.
There some articles on the web, about using
Hibernate with Cocoon.
And anyone using it?
Pat
-
To unsubscribe, e-mail
Pat,
I have not used hibernate with cocoon yet, but i have used Cocoon Forms with OJB/JDO.
There are some wikipages about hibernate with Cocoon and OJB with Cocoon.
Some samples about OJB and Forms can be found in the cocoon distribution.
Looking at the wiki:
http://wiki.apache.org/cocoon
Cocoon and Hibernate simply because we believe
them to be the best tools in their respective fields of application.
There some articles on the web, about using
Hibernate with Cocoon.
And anyone using it?
Articles, not that I know of, but you can find a complete sample here:
http
have not used hibernate with cocoon yet, but i
have used Cocoon Forms with OJB/JDO.
There are some wikipages about hibernate with Cocoon
and OJB with Cocoon.
Some samples about OJB and Forms can be found in the
cocoon distribution.
Looking at the wiki:
http://wiki.apache.org/cocoon
Hi Pat,
I have am now finishing my first project I used Hibernate and Cocoon
together in,
so maybe you are interested in some thoughts from a beginner's point of
view.
The issue Hibernate addresses is how to get objects to and from the
database. When
I started to use cocoon, I was impressed
now finishing my first project I used Hibernate and Cocoon
together in,
so maybe you are interested in some thoughts from a beginner's point of
view.
The issue Hibernate addresses is how to get objects to and from the
database. When
I started to use cocoon, I was impressed by the possibility
that
you could use a different presentation layer on top of Hibernate or a
different persistence mechanism beneath Cocoon easily.
We happen to be using Cocoon and Hibernate simply because we believe
them to be the best tools in their respective fields of application.
There some articles
Il giorno 09/set/04, alle 16:47, Derek Hohls ha scritto:
I hope your talk will be online, for those of us not
lucky enough to make the events?
Last year's GT talks were recorded and made available online as video
files. I hope someone will do the same with this year's talks.
Ugo
--
Ugo
Hi all,
I have a webapp which uses Hibernate for persistency. Hibernate connects
to the database (MySQL) using its own connection pool (where the settings
are specified in hibernate.properties)
I read that Hibernate's builtin connection pool is no good for
production use,
and indeed I'm facing
I had a similar problem and sorted it by using C3P0.
Put the following, or equivalent, into your properties file:
property name=c3p0.max_size2/property
property name=c3p0.min_size10/property
property name=c3p0.timeout5000/property
property
Johannes Textor wrote:
Hi all,
I have a webapp which uses Hibernate for persistency. Hibernate connects
to the database (MySQL) using its own connection pool (where the settings
are specified in hibernate.properties)
I read that Hibernate's builtin connection pool is no good for
production use,
Peter,
Peter Velychko wrote:
Did you configure dbcp in Tomcat and referred to the pool by JNDI or let
Hibernate manage pool via dbcp (so you set only hibernate.dbcp.*
properties)?
I configured dbcp in Tomcat.
Out of curiosity: if you have some time could you try to configure
either dbcp or
Hello Leszek,
I have in production the following configuration:
tomcat + cocoon 2.1.5-cvs + hibernate 2.1.3 + dbcp.
It works without problem.
Just now I've configured my tomcat to work with c3p0 connection pool
and it works corectly also.
I'll try to start my application on jetty. What
Hello Peter,
Can you be a little bit more specific about your Tomcat configuration?
- Java version?
- Tomcat version?
- What is in the Tomcat endorsed lib?
- How did you handle the jars that are both in Hibernate and in Cocoon but
have different versions (commons-..., etc.)?
- Do you use
Peter Velychko wrote:
Hello Leszek,
I have in production the following configuration:
tomcat + cocoon 2.1.5-cvs + hibernate 2.1.3 + dbcp.
It works without problem.
Did you configure dbcp in Tomcat and referred to the pool by JNDI or let
Hibernate manage pool via dbcp (so you set only
-2.6.2.jar
xml-apis.jar
Also I've placed c3p0-0.8.4.5.jar in {$tomcat.dir}/common/lib
- How did you handle the jars that are both in Hibernate and in Cocoon but
have different versions (commons-..., etc.)?
I have the following libs in classpath:
commons-collections-3.0.jar
commons
version?
1.4.2-b28 on WinXP
- Tomcat version?
4.1.18
- What is in the Tomcat endorsed lib?
xalan-2.6.0.jar
xercesImpl-2.6.2.jar
xml-apis.jar
Also I've placed c3p0-0.8.4.5.jar in {$tomcat.dir}/common/lib
- How did you handle the jars that are both in Hibernate and in Cocoon
This is a repost from cocoon-dev list. Maybe someone of cocoon users might
help me?
I think there is a serious problem with latest version of
hibernate (2.1.3) and cocoon integration. There is some kind of jar problem
that did not occur with 2.1.2. I have attached a exception log. The problem
40 matches
Mail list logo