glassfish
  1. glassfish
  2. GLASSFISH-20959

JMSContext injection does not work in CDI bean that is jbatch artifact.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 4.0
    • Fix Version/s: None
    • Component/s: batch, cdi, jms
    • Labels:
      None
    • Environment:

      Mac OS X 10.9, Ubuntu 12.04, Windows 7

      Description

      The following construct does not work when used inside CDI bean that is batch artifact:

      @Inject private JMSContext context;

      It results in org.jboss.weld.context.ContextNotActiveException: WELD-001303 No active contexts for scope type javax.enterprise.context.RequestScoped when the injected context is used.

        Activity

        Hide
        jiggster added a comment -

        How can I add attachment? Would like to upload sample application that presents the issue...

        Show
        jiggster added a comment - How can I add attachment? Would like to upload sample application that presents the issue...
        Hide
        jjsnyder83 added a comment -

        Login and you should see "Attach file" under Operations on the left column.

        Show
        jjsnyder83 added a comment - Login and you should see "Attach file" under Operations on the left column.
        Hide
        jjsnyder83 added a comment -

        please provide a reproducible test case

        Show
        jjsnyder83 added a comment - please provide a reproducible test case

          People

          • Assignee:
            Mahesh Kannan
            Reporter:
            jiggster
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: