Hibernate in Cocoon
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 area. David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hibernate in Cocoon
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 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 didn't see anything about Hibernate's XML export feature (sorry I'm not familiar with this feature) but it shouldn't be difficult to do that from Flow. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hibernate in Cocoon
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 existing work in this area. I'd like to do the same. I may do it with a generator. Bye Beat De Martin -- Telefonieren Sie schon oder sparen Sie noch? NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Cocoon-Users] Re: Hibernate in Cocoon
FWIW, You can probably get more mileage out of a transformer. That way, you can pass config information into it via the pipeline, which would allow you to configure it via request params more easily. I've bene this route with Excel input and ended up with a transformer because it was a lot 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 Transformer (which is quite a bit different and more advanced than the stanard cocoon one). We just didn't need the caching and lazy loading that hibernate would have provided. We need to drive an AJAX tree view of a tree data structure. David Thus Spoke 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 existing work in this area. I'd like to do the same. I may do it with a generator. Bye Beat De Martin
Re: [Cocoon-Users] Re: Hibernate in Cocoon
>From what I have seen, the typical way people have used Hibernate is the following: 1. Javaflow or flowscript gets the initial call 2. All the request parameters, etc are all dealt with in flow 3. Hibernate is used from within flow to deal with the business request 4. When the request is processed, java objects representing the result are passed to the jxtemplate generator 5. Normal cocoon pipeline processing (jxtg, xsl, etc) are used to send final result IrvOn 1/9/06, David Kavanagh <[EMAIL PROTECTED]> wrote: FWIW, You can probably get more mileage out of a transformer. That way, you can pass config information into it via the pipeline, which would allow you to configure it via request params more easily. I've bene this route with Excel input and ended up with a transformer because it was a lot 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 Transformer (which is quite a bit different and more advanced than the stanard cocoon one). We just didn't need the caching and lazy loading that hibernate would have provided. We need to drive an AJAX tree view of a tree data structure. David Thus Spoke 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 existing work in this area. I'd like to do the same. I may do it with a generator.ByeBeat De Martin