First thing, that comes to my mind is to turn your background process into
a hivemind service and inject the session factory into it. Of course, you
would need to manage transactions/sessions manually again, because your
background task is (probably) not coupled to the standard
request-response-cycle.
hth,
Marcus

> -----Original Message-----
> From: =?ISO-8859-13?Q?b=EBgantis_debesis?= [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 19, 2006 3:30 PM
> To: tapestry-user@jakarta.apache.org
> Subject: honeycomb: acquiring session not in a tapestry page
> 
> 
> Hi,
> I started using honeycomb on my project as a 
> tapestry/hibernate glue. Before
> that, I just had a HibernateUtil with sessionFactory 
> initialization and so
> on..manual transaction management.
> The thing is, I need a session in other background process, 
> which is not a
> web page, just a periodical task. Can I get a session there 
> without creating
> a separate HibernateSessionFactory (one is created by honeycomb in its
> session factory service)?
> 
> Thanks in advance,
> Valdemaras
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to