I have a T5 application connected to a database using hibernate working fine. To perform background operations on the database, I have a quartz scheduler servlet included in the same project that calls the background job as expected. I would like to get an instance of tapestry's hibernate session to access the database and reference the same entity objects. Is it possible to get an instance of tapestry's hibernate session from this quartz job?
I have searched google and the mailing list but haven't found an answer to this yet. I know straight injection doesn't work. I have found a way to manually setup a second hibernate instance but that requires some duplicate settings and a set of hbm.xml files that aren't required by tapestry. Using this second way seems a lot of extra work and a maintenance nightmare if there is a way to get tapestry's hibernate instance.