javaee-spec
  1. javaee-spec
  2. JAVAEE_SPEC-14

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

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Labels:
      None

      Description

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

        Activity

        Hide
        marina vatkina added a comment -

        Support for @Inject should be defined at platform level.

        Show
        marina vatkina added a comment - Support for @Inject should be defined at platform level.
        Hide
        Bill Shannon added a comment -

        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.

        Show
        Bill Shannon added a comment - 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.
        Hide
        Antonio Goncalves added a comment -

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

        Show
        Antonio Goncalves added a comment - Being able to @Inject ServletContext and WebServiceContext (JAX-WS) would be awsome too
        Hide
        ldemichiel added a comment -

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

        Show
        ldemichiel added a comment - Agree. We expect to re-open this discussion in Java EE 8.

          People

          • Assignee:
            ldemichiel
            Reporter:
            abien
          • Votes:
            10 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

            • Created:
              Updated: