Re: rendering a page for an email: org.hibernate.HibernateException: createCriteria is not valid without active transaction

2010-09-07 Thread Jeremy Thomerson
On Fri, Sep 3, 2010 at 12:10 PM, Fernando Wermus fernando.wer...@gmail.comwrote: Hi all, I have coded the following to render a mail, Application app; try{ app=MyApplication.get(); }catch(Exception e){ app=new WicketTester().getApplication(); } final Application app2=app; final

rendering a page for an email: org.hibernate.HibernateException: createCriteria is not valid without active transaction

2010-09-03 Thread Fernando Wermus
Hi all, I have coded the following to render a mail, Application app; try{ app=MyApplication.get(); }catch(Exception e){ app=new WicketTester().getApplication(); } final Application app2=app; final ExecutorService service = new ScheduledThreadPoolExecutor(1) { @Override protected void