Uploaded image for project: 'CDI Specification Issues'
  1. CDI Specification Issues
  2. CDI-626

How should CDI.current() and CDI.getBeanManager() behave for non-CDI apps?

XMLWordPrintable

    • Icon: Clarification Clarification
    • Resolution: Done
    • Icon: Major Major
    • 2.0 .Final
    • None
    • None

      We did hit the following situation:
      A user installs a Spring application WAR file in TomEE. In that case we don't boot the CDI container. But the JSF Container calls CDI.current().

      How should CDI.current() behave in that case? Throwing an IllegalStateException, returning null or return a non-functional BeanManager?

      We should also define the behaviour of CDI.getBeanManager while we are at it.

            asabotdu@redhat.com Antoine Sabot-Durand (Inactive)
            struberg Mark Struberg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: