You will need to proxy all methods that you call through Quartz with the
Spring Hibernate interceptor - this will make sure that the method has a
Hibernate session open before it is called (http://tinyurl.com/6o7b9j). The
interceptor needs to be added in such a way that it fires before the Spring
transaction interceptor - you may need to play with the order attribute to
get this right!

Mike

2008/6/18 <[EMAIL PROTECTED]>:

> I know this is a classic question, but none of solutions I found after
> googling works for my case.
> I'm trying to run quartz inside appfuse that call some method in
> service manager.
>
> After some point executing, it thrown Exception:
>
> ERROR [DefaultQuartzScheduler_Worker-1]
> LazyInitializationException.<init>(19) | could not initialize proxy -
> no Session
> org.hibernate.LazyInitializationException: could not initialize proxy
> - no Session
>
> Any suggesstion to fix this ?
>
> Thanks,
>
> --
> Ernas M. Jamil
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to