Re: warp persist, guice & wicket: use warp persist during wicket application startup to load db objects

2010-05-13 Thread Edward Zarecor
I think this questions was resolved on the Guice list. Correct me if I'm wrong. This is the thread: http://groups.google.com/group/google-guice/browse_thread/thread/78ffb08353f4dcf The thread was somewhat messy, so the upshot is: A good worked example of persistence outside the context of a re

Re: warp persist, guice & wicket: use warp persist during wicket application startup to load db objects

2010-05-13 Thread nino martinez wael
Maybe mark your servlet listener as transactional? 2010/5/11 Christoph Grün : > Hi all, > >  I am using Wicket together with Guice and Warp Persist/Servlet. > > I have registered the PersistenceService in the contextInitialized method. > However, I would like to do some data loading from the datab

Re: warp persist, guice & wicket: use warp persist during wicket application startup to load db objects

2010-05-11 Thread Igor Vaynberg
if this was spring i would tell you that you need to start a transaction, which in turn will bind a hibernate session to a threadlocal context. it probably works in a request because you have a filter that does that for you, so look at that filter and see what it does. -igor On Tue, May 11, 2010

warp persist, guice & wicket: use warp persist during wicket application startup to load db objects

2010-05-11 Thread Christoph Grün
Hi all, I am using Wicket together with Guice and Warp Persist/Servlet. I have registered the PersistenceService in the contextInitialized method. However, I would like to do some data loading from the database when wicket starts, and like to access Hibernate Daos. I am getting the error: org