Re: HibernateWorkflow store

Mike Cannon-Brookes <[email protected]>
Newsgroups gmane.comp.java.open-symphony.devel
Message-ID <BB206868.2D099%[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.