glassfish
  1. glassfish
  2. GLASSFISH-18585

embedded glassfish: jersey-test does not honor @Singleton and @ManagedBean

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: embedded
    • Labels:
      None
    • Environment:

      Linux + Glassfish.

      Description

      I am trying to switch my project to run in Glassfish. The application seems to work, but I have problems with tests. They all seem to fail, as my class, annoted as

      import javax.annotation.ManagedBean;
      import javax.inject.Singleton;

      @Path("/")
      @Singleton
      @ManagedBean
      public class Quoridor {
      }

      is instantiate more than one per each test run. Could the Jersey framework honor the @Singleton + @ManagedBean annotation as glassfish does?

      1. embedded_log.txt
        27 kB
        sakshi.jain
      2. UsingEmbeddedGlassfish.diff
        44 kB
        jst
      3. UsingExternalGlassfish.diff
        45 kB
        jst

        Activity

          People

          • Assignee:
            sakshi.jain
            Reporter:
            jst
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: