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

Enhance KieCDIExtension to allow optional injections

    Details

    • Type: Enhancement
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 6.0.0
    • Fix Version/s: 6.0.2
    • Component/s: BRE
    • Labels:

      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:

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tirelli Edson Tirelli
                Reporter:
                swiderski.maciej Maciej Swiderski
                Involved:
                Maciej Swiderski, Marek Baluch, Rajesh Rajasekaran
                Tester:
                Marek Winkler
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: