Uploaded image for project: 'JBoss BRMS Platform'
  1. JBoss BRMS Platform
  2. RHBRMS-1330

Enhance KieCDIExtension to allow optional injections

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Critical
    • 6.0.2
    • 6.0.0
    • BRE

    Description

      Description of problem:
      Currently KieCDIExtension will inject kieSession, KieBase or KieContainer to mandatory injection points:

      @Inject
      @KSession
      private KieSession ksession

      although sometimes it might be worth to allow optional injections as well to be aligned with CDI in general:

      @Inject
      @KSession
      private Instance<KieSession> ksession

      This is one of the enhancement needed for WebSphere support as apparently there is a bug in CDI implementation used by WebShpere that does not provide injection points when CDI extension is used for managed beans - POJO. This is still under evaluation but wanted to explain why it is required.

      Version-Release number of selected component (if applicable):

      How reproducible:

      Steps to Reproduce:
      1.
      2.
      3.

      Actual results:

      Expected results:

      Additional info:

      Attachments

        Activity

          People

            etirelli@redhat.com Edson Tirelli
            swiderski.maciej Maciej Swiderski (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson
            Marek Winkler Marek Winkler (Inactive)
            Marek Winkler Marek Winkler (Inactive)
            Maciej Swiderski (Inactive), Marek Baluch, Rajesh Rajasekaran

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty