R: HibernateWorkflow store
"Travelli Stefano" <[email protected]>
| Newsgroups | gmane.comp.java.open-symphony.devel |
|---|---|
| Message-ID | <[email protected]> |
So we need a HibernateWorkflow.... in fact you did the same with OfBiz, where an OfbizWorkflow extends AbstractWorkflow. It seems not so transparent because this way the workflow instance depends on the underlying persistence mechanism, while with Jdbc or memory store all the persistance issues are managed with configuration parameters. By now jdbc is more comfortable for my purposes. Maybe I will try to deal with this issue in the future. Thanks stefano -----Messaggio originale----- Da: Mike Cannon-Brookes [mailto:[email protected]] Inviato: giovedì 26 giugno 2003 1.08 A: opensymphony-developers Oggetto: Re: [Opensymphony-developers] HibernateWorkflow store Pat, You might also want to look at how I solved this for the OSUser HibernateProvider. There's a HibernateConfigurationSomething interface which you pass in an implementation class of as a parameter. This has one method getConfiguration() used to get a Hibernate config. Allows you to write one simple class (with one method) and use it to get the Hibernate config for your app however you do it normally. M On 26/6/03 6:29 AM, "Pat Lightbody" ([email protected]) penned the words: > Good question... this isn't documented very well (feel free to document it > in the wiki tho!). Basically, I created the HibernateWorkflowStore in such a > manner that the Session should be passed in by extending AbstractWorkflow > yourself and overriding the getPersistence() method. Hope that helps. > > -Pat > > ----- Original Message ----- > From: "Travelli Stefano" <[email protected]> > To: <[email protected]> > Sent: Wednesday, June 25, 2003 8:12 AM > Subject: [Opensymphony-developers] HibernateWorkflow store > > >> Since my project will use hibernate as persistance layer I would like to > use hibernate for workflow store too. >> >> Looking at HibernateWorkflowStore I can't understand how the store object > could get the hibernate session instance. There is constructor with a > session object as parameter, but I don't see where it is used. >> >> I think that an elegant way could be to declare the jndi path for the > SessionFactory in a property, just as it works for the datasource in > JdbcWorkflowStore but, as far as I understand, HibernateWorkflowStore has no > reference to a SessionFactory. >> >> Could someone give me some directions about this? >> thanks, >> >> stefano >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: INetU >> Attention Web Developers & Consultants: Become An INetU Hosting Partner. >> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! >> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php >> _______________________________________________ >> Opensymphony-developers mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/opensymphony-developers > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: INetU > Attention Web Developers & Consultants: Become An INetU Hosting Partner. > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > _______________________________________________ > Opensymphony-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/opensymphony-developers ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ Opensymphony-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensymphony-developers ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php