javaee-spec icon indicating copy to clipboard operation
javaee-spec copied to clipboard

UserTransaction, SessionContext, TimerService and anything injectable via @Resource to inject with @Inject

Open glassfishrobot opened this issue 14 years ago • 6 comments

All "default" resources (like UserTransaction, SessionContext), injectable with @Resource in Java EE 6 should be also injectable with @Inject as well.

glassfishrobot avatar Nov 07 '11 19:11 glassfishrobot

Reported by abien

glassfishrobot avatar Nov 07 '11 19:11 glassfishrobot

mvatkina said: Support for @Inject should be defined at platform level.

glassfishrobot avatar Nov 03 '12 00:11 glassfishrobot

@bshannon said: We've had discussions about providing "default producers" for all Java EE injectable resources, but it's more difficult than originally expected to make this work right. It's still an interesting idea that we hope to explore more in the future.

glassfishrobot avatar Nov 03 '12 00:11 glassfishrobot

agoncal said: Being able to @Inject ServletContext and WebServiceContext (JAX-WS) would be awsome too

glassfishrobot avatar Nov 03 '12 07:11 glassfishrobot

ldemichiel said: Agree. We expect to re-open this discussion in Java EE 8.

glassfishrobot avatar May 31 '13 18:05 glassfishrobot

This issue was imported from java.net JIRA JAVAEE_SPEC-14

glassfishrobot avatar Apr 25 '17 09:04 glassfishrobot