Re: HibernateWorkflow store
"Pat Lightbody" <[email protected]>
| Newsgroups | gmane.comp.java.open-symphony.devel |
|---|---|
| Message-ID | <277901c33b58$6f876190$800aef84@moose> |
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