Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-1325

Weld-SE Core causes multiple bean instances

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • 2.0.0.Beta3
    • Java SE Support
    • None

    Description

      I've got a simple test bean that I'm injecting. I bootstrap weld and then have a postconstruct that just logs the bean creation.

      When I pull in weld-se in maven, all works. When I change the dependency to weld-se-core, the post constructor is called multiple times, as is the constructor and a method observing ContainerInitialized.

      Unfortunately, just using weld-se isn't an option because of the embedded slf4j dependencies.

      The bean is ApplicationScoped.

      Attachments

        Activity

          People

            mkouba@redhat.com Martin Kouba
            jessebs_jira Jesse Bowes (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: