Details

    • Similar Issues:
      Show 10 results 

      Description

      Weld and other CDI impls allow an embedded mode.

      See http://docs.jboss.org/weld/reference/latest/en-US/html/environments.html#d0e5417 for example

        Issue Links

          Activity

          Hide
          Pete Muir
          added a comment -

          From Rick Hightower:

          There should be a standard, minimalistic way to bootstrap a CDI container outside of Java EE. This is useful for unit testing extensions, and for other JSRs that need to do annotation processing, injection and interception. Instead of those other JSRs defining their own mechanism for annotation processing, injection and interception they can just use CDI.

          Also Java EE has clients (for JMS, RMI, Services). The same features on the serverside (injection, interceptions, proxying) are equally useful on the client side.

          There should also be some clear walls between what is included in Java SE CDI and Java EE CDI. Java SE CDI being a subset and core of Java EE CDI. This modularity should be better defined in the specification.

          Show
          Pete Muir
          added a comment - From Rick Hightower: There should be a standard, minimalistic way to bootstrap a CDI container outside of Java EE. This is useful for unit testing extensions, and for other JSRs that need to do annotation processing, injection and interception. Instead of those other JSRs defining their own mechanism for annotation processing, injection and interception they can just use CDI. Also Java EE has clients (for JMS, RMI, Services). The same features on the serverside (injection, interceptions, proxying) are equally useful on the client side. There should also be some clear walls between what is included in Java SE CDI and Java EE CDI. Java SE CDI being a subset and core of Java EE CDI. This modularity should be better defined in the specification.
          Hide
          John Ament
          added a comment -

          Just wondering, has there been any update on this?

          Show
          John Ament
          added a comment - Just wondering, has there been any update on this?
          Hide
          Pete Muir
          added a comment -

          I've spun out CDI-160 to split up the spec.

          Show
          Pete Muir
          added a comment - I've spun out CDI-160 to split up the spec.
          Hide
          Mark Struberg
          added a comment -

          The more I think about it, the more I'm sure that we need to push this to the EE7 umbrella spec.

          Booting the CDI container alone is nice, but by far not sufficient.

          EJB has already an API to boot the container (javax.ejb.embeddable.EJBContainer), CDI might get one too. But still the user will end up not being able to start his whole environment!

          Imagine a situation where a user likes to use openejb or JBossAS7-embedded in a SE environment. Starting the container alone would not be enough. Otoh one could argue that in those cases a user might easily use the containers native implementation specific classes directly. Wdyt?

          Show
          Mark Struberg
          added a comment - The more I think about it, the more I'm sure that we need to push this to the EE7 umbrella spec. Booting the CDI container alone is nice, but by far not sufficient. EJB has already an API to boot the container (javax.ejb.embeddable.EJBContainer), CDI might get one too. But still the user will end up not being able to start his whole environment! Imagine a situation where a user likes to use openejb or JBossAS7-embedded in a SE environment. Starting the container alone would not be enough. Otoh one could argue that in those cases a user might easily use the containers native implementation specific classes directly. Wdyt?
          Hide
          Pete Muir
          added a comment -

          Slipping Java SE issues, we don't have time or scope in CDI 1.1 to address them.

          Show
          Pete Muir
          added a comment - Slipping Java SE issues, we don't have time or scope in CDI 1.1 to address them.

            People

            • Assignee:
              Unassigned
              Reporter:
              Pete Muir
            • Votes:
              5 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated: