Re: Hibernate and Cocoon 2.2 - best practice

2009-10-26 Thread Søren Krum
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

Re: Hibernate and Cocoon 2.2 - best practice

2009-10-26 Thread Luca Morandini
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

Hibernate and Cocoon 2.2 - best practice

2009-10-25 Thread Kamal Bhatt
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

Re: Hibernate+Flow+Cocoon?

2006-10-10 Thread Nacho Jimenez
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

Hibernate+Flow+Cocoon?

2006-10-06 Thread Joseph Toman
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

Re: Hibernate+Flow+Cocoon?

2006-10-06 Thread Andre Juffer
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

Re: Hibernate+Flow+Cocoon?

2006-10-06 Thread Gabriele Columbro
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

Re: [Cocoon-Users] Re: Hibernate in Cocoon

2006-01-10 Thread Irv Salisbury
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

Re: Hibernate in Cocoon

2006-01-09 Thread Beat De Martin
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

Re: [Cocoon-Users] Re: Hibernate in Cocoon

2006-01-09 Thread David Kavanagh
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

Hibernate in Cocoon

2006-01-05 Thread David Kavanagh
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

Re: Hibernate in Cocoon

2006-01-05 Thread Jason Johnston
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

[CLOSED] Hibernate and Cocoon database pool question

2004-12-06 Thread george georgovassilis
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

Re: [CLOSED] Hibernate and Cocoon database pool question

2004-12-06 Thread Johannes Textor
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

Re: [CLOSED] Hibernate and Cocoon database pool question

2004-12-06 Thread george georgovassilis
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)

Re: [CLOSED] Hibernate and Cocoon database pool question

2004-12-06 Thread Johannes Textor
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.

Re: Hibernate and Cocoon database pool question

2004-12-03 Thread Johannes Textor
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

RE: Advantage using Hibernate with Cocoon

2004-09-10 Thread Hugo Burm
[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

RE: Advantage using Hibernate with Cocoon

2004-09-10 Thread Derek Hohls
-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

Re: Advantage using Hibernate with Cocoon

2004-09-10 Thread Johannes Textor
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

Re: Advantage using Hibernate with Cocoon

2004-09-10 Thread Derek Hohls
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

RE: [cocoon] Re: Advantage using Hibernate with Cocoon

2004-09-10 Thread Ernesto Echeverría
. 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

Advantage using Hibernate with Cocoon

2004-09-09 Thread patrick
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

RE: Advantage using Hibernate with Cocoon

2004-09-09 Thread Jeroen Reijn
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

Re: Advantage using Hibernate with Cocoon

2004-09-09 Thread Ugo Cei
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

RE: Advantage using Hibernate with Cocoon

2004-09-09 Thread Paul Joseph
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

Re: Advantage using Hibernate with Cocoon

2004-09-09 Thread Johannes Textor
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

Re: Advantage using Hibernate with Cocoon

2004-09-09 Thread Derek Hohls
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

Re: Advantage using Hibernate with Cocoon

2004-09-09 Thread Derek Hohls
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

Re: Advantage using Hibernate with Cocoon

2004-09-09 Thread Ugo Cei
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

Hibernate with Cocoon connection pool

2004-09-02 Thread Johannes Textor
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

Re: Hibernate with Cocoon connection pool

2004-09-02 Thread Upayavira
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

Re: Hibernate with Cocoon connection pool

2004-09-02 Thread Guido Casper
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,

Re: Hibernate 2.1.3 + cocoon + c3p0 jar hell [repost from dev]

2004-05-11 Thread Leszek Gawron
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

Re: Hibernate 2.1.3 + cocoon + c3p0 jar hell [repost from dev]

2004-05-11 Thread Peter Velychko
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

RE: Hibernate 2.1.3 + cocoon + c3p0 jar hell [repost from dev]

2004-05-11 Thread Hugo Burm
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

Re: Hibernate 2.1.3 + cocoon + c3p0 jar hell [repost from dev]

2004-05-11 Thread Leszek Gawron
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

Re: Hibernate 2.1.3 + cocoon + c3p0 jar hell [repost from dev]

2004-05-11 Thread Peter Velychko
-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

Re: Hibernate 2.1.3 + cocoon + c3p0 jar hell [repost from dev]

2004-05-11 Thread Peter Velychko
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

Hibernate 2.1.3 + cocoon + c3p0 jar hell [repost from dev]

2004-05-09 Thread Leszek Gawron
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