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;
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.
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
:
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
@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
@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
-
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
7 matches
Mail list logo