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

Bean unsatisfied in ejb module from jar library

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Won't Do
    • 2.2.13.Final, 2.3.2.Final
    • None
    • Resolution
    • None

    Description

      Difficult to explain my issue
      In ear packaging, I have :
      1 ejb module ocelot.ejb.jar with beans.xml and bean-discovery-mode="all"
      1 war module ocelot.web.war with beans.xml and bean-discovery-mode="all"
      1 jar librairy ocelot-core.jar with beans.xml and bean-discovery-mode="all"
      I try to get Bean from a class cls in ocelot-core.jar (lib) using CDI.current().select(cls).get();
      That work's for classes in jar library in lib of ear but if the class is in ejb module or war module, the class is unsatisfied. However if I try to do cls.newInstance(); That's work.
      But of course it's not a bean cdi, no injection inside.
      I do something wrong ?

      Attachments

        Activity

          People

            Unassigned Unassigned
            hhfrancois_jira Francois Francois (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: