CODI+OWB+Scheduler, ContextNotActiveException

2012-02-17 Thread Bonhold, Erwin
Hi all, at first, CDI + CODI is really cool stuff for building a webapp. 1) Our Environment: We are using OWB 1.1.3, CODI 1.0.2 on a Tomcat 7 environment with CODI @Transactional. Database Producer: @PersistenceContext(unitName = myunit) private EntityManager extendedEntityManager;

Re: CODI+OWB+Scheduler, ContextNotActiveException

2012-02-17 Thread Gerhard Petracek
hi erwin, first of all: welcome @ myfaces! for a conversation a window is needed. therefore, the current conversation can't be resolved outside of a faces request. since it's possible to destroy the window-context at any time, it isn't suggested to use such scopes in an asynchronous task at all.

Re: CODI+OWB+Scheduler, ContextNotActiveException

2012-02-17 Thread Gerhard Petracek
short addition: just store all information which are needed to process the task in a storage which is valid outside of requests. + you can use e.g. @TransactionScoped (since codi 1.0.4 it also works outside of requests.) regards, gerhard http://www.irian.at Your JSF/JavaEE powerhouse - JavaEE

Re: CODI+OWB+Scheduler, ContextNotActiveException

2012-02-17 Thread Mark Struberg
: Sent: Friday, February 17, 2012 10:58 AM Subject: Re: CODI+OWB+Scheduler, ContextNotActiveException hi erwin, first of all: welcome @ myfaces! for a conversation a window is needed. therefore, the current conversation can't be resolved outside of a faces request. since it's possible

Re: CODI+OWB+Scheduler, ContextNotActiveException

2012-02-17 Thread Manuel Hartl
@myfaces.apache.org Cc: Sent: Friday, February 17, 2012 10:58 AM Subject: Re: CODI+OWB+Scheduler, ContextNotActiveException hi erwin, first of all: welcome @ myfaces! for a conversation a window is needed. therefore, the current conversation can't be resolved outside of a faces request. since it's

Re: CODI+OWB+Scheduler, ContextNotActiveException

2012-02-17 Thread Manuel Hartl
@myfaces.apache.org Cc: Sent: Friday, February 17, 2012 10:58 AM Subject: Re: CODI+OWB+Scheduler, ContextNotActiveException hi erwin, first of all: welcome @ myfaces! for a conversation a window is needed. therefore, the current conversation can't be resolved outside of a faces request. since it's

Re: CODI+OWB+Scheduler, ContextNotActiveException

2012-02-17 Thread Mark Struberg
- From: Manuel Hartl manuel.ha...@kobil.com To: MyFaces Discussion users@myfaces.apache.org Cc: Sent: Friday, February 17, 2012 11:40 AM Subject: Re: CODI+OWB+Scheduler, ContextNotActiveException Hi Mark, i would slightly disagree to that. i think it should at least be possible to use