Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.0
    • Fix Version/s: 2.10.0
    • Component/s: camel-core
    • Labels:
      None

      Description

      We should add support for JEE CDI.

      Its most likely to implement a CDIRegistry and a few more things. We need to find a CDI Test kit as we can use for unit testing and whatnot.

        Activity

        Hide
        Richard Kettelerij added a comment - - edited

        For testing CDI you can use JBoss Arquillian (http://www.jboss.org/arquillian). It's Apache 2.0 licensed. Example: http://docs.jboss.org/arquillian/reference/latest/en-US/html_single/#examples.cdi

        Show
        Richard Kettelerij added a comment - - edited For testing CDI you can use JBoss Arquillian ( http://www.jboss.org/arquillian ). It's Apache 2.0 licensed. Example: http://docs.jboss.org/arquillian/reference/latest/en-US/html_single/#examples.cdi
        Hide
        Charles Moulliard added a comment -

        JBoss arquillian is not at all required. There is a CDITestContainer class provided by Apache Openwebbeans project (project implementing jsr-299 and jsr-330) that we can use for unit test. I will commit a unit test tomorrow with a Camel CDI Registry.

        Show
        Charles Moulliard added a comment - JBoss arquillian is not at all required. There is a CDITestContainer class provided by Apache Openwebbeans project (project implementing jsr-299 and jsr-330) that we can use for unit test. I will commit a unit test tomorrow with a Camel CDI Registry.
        Hide
        Łukasz Dywicki added a comment -

        FYI I've done an patch in CAMEL-5145 which allows to test - both Weld and OWB implementations with camel-cdi. It doesn't depend directly on any CDI implementation.

        Show
        Łukasz Dywicki added a comment - FYI I've done an patch in CAMEL-5145 which allows to test - both Weld and OWB implementations with camel-cdi. It doesn't depend directly on any CDI implementation.
        Hide
        Claus Ibsen added a comment - - edited

        With Lukasz patch and when deltaspike is released, then this starts to look good.

        We need some documentation, and an example in the examples would also be great.

        Show
        Claus Ibsen added a comment - - edited With Lukasz patch and when deltaspike is released, then this starts to look good. We need some documentation, and an example in the examples would also be great.
        Hide
        Claus Ibsen added a comment -

        Docs added etc.

        Show
        Claus Ibsen added a comment - Docs added etc.

          People

          • Assignee:
            Charles Moulliard
            Reporter:
            Claus Ibsen
          • Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development