You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Manuel Hartl <ma...@kobil.com> on 2012/02/10 17:00:17 UTC
MyFaces CODI JPA - un-scoped usage :)
Hi MyFaces CODI (JPA) Team,
currently you can only use Transaction when the RequestScope is active
(-> TransactionBeanStorage is a RequestScoped-Bean).
it would be nice, if i could use the EntityManager/@Transaction-stuff in
threads, where no RequestScope is active, f.e. during
- ServletContextlistener (beans can be used my getting a bean reference
manually)
or
- when i use an ServletResponse-Object from a Thread that is not
associated to a Request (like using AsyncContext in some different
Thread, then the original one)
Are there any plans to support that?
Regards,
Manuel.
--
Dipl. Inform. Manuel Hartl
Software Architect
FlexSecure-Logo KobilGroup-Logo
FlexSecure GmbH
Industriestr. 12
D - 64297 Darmstadt
Tel: +49 (0) 6151 501 23-18
Fax: +49 (0) 6151 501 23-19
E-Mail: hartl@flexsecure.de
Internet: www.flexsecure.de
Geschäftsführer:
Erwin Stallenberger, Markus Ruppert
Amtsgericht Darmstadt HRB 8036
Umsatzsteuernummer: DE 214745269
Re: MyFaces CODI JPA - un-scoped usage :)
Posted by Gerhard Petracek <ge...@gmail.com>.
hi manuel,
thx for the feedback!
we changed that already (see [1]).
we plan to release it next week [2].
regards,
gerhard
[1] https://issues.apache.org/jira/browse/EXTCDI-258
[2] http://s.apache.org/Atb
http://www.irian.at
Your JSF/JavaEE powerhouse -
JavaEE Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces
2012/2/10 Manuel Hartl <ma...@kobil.com>
> Hi MyFaces CODI (JPA) Team,
>
> currently you can only use Transaction when the RequestScope is active
> (-> TransactionBeanStorage is a RequestScoped-Bean).
>
> it would be nice, if i could use the EntityManager/@Transaction-stuff in
> threads, where no RequestScope is active, f.e. during
> - ServletContextlistener (beans can be used my getting a bean reference
> manually)
> or
> - when i use an ServletResponse-Object from a Thread that is not
> associated to a Request (like using AsyncContext in some different
> Thread, then the original one)
>
> Are there any plans to support that?
>
> Regards,
> Manuel.
>
> --
> Dipl. Inform. Manuel Hartl
> Software Architect
>
> FlexSecure-Logo KobilGroup-Logo
>
> FlexSecure GmbH
> Industriestr. 12
> D - 64297 Darmstadt
> Tel: +49 (0) 6151 501 23-18
> Fax: +49 (0) 6151 501 23-19
>
> E-Mail: hartl@flexsecure.de
> Internet: www.flexsecure.de
>
> Geschäftsführer:
> Erwin Stallenberger, Markus Ruppert
>
> Amtsgericht Darmstadt HRB 8036
> Umsatzsteuernummer: DE 214745269
>
>