Camel
  1. Camel
  2. CAMEL-5906

camel-servlet - Create a camel filter for starting Camel without using Spring XML etc

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.11.0
    • Component/s: camel-servlet
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      I have been toying with this idea for a while. And years ago I think we had a JIRA ticket similar to this.

      As Camel can run without Spring we ought to have a simple way of starting/stopping a CamelContext in a web-app without using Spring.

      For example using a servlet listener. And then have servlet-init parameters to configure the camel context, and refer to route builders and whatnot.

      Yes in the future CDI and other frameworks will also help with this. But that takes time to mature and for ppl to get familar to use. And web containers to support etc.

      Servlets is supported by any container and also old school containers.

        Activity

        Show
        Claus Ibsen added a comment - See also http://stackoverflow.com/questions/13965874/using-apache-camel-in-a-web-application-without-using-spring
        Hide
        Claus Ibsen added a comment -

        There is a new camel-servletlistener component for this.
        I also create a new example: servlet-tomcat-no-spring to showcase it.

        Show
        Claus Ibsen added a comment - There is a new camel-servletlistener component for this. I also create a new example: servlet-tomcat-no-spring to showcase it.
        Hide
        Claus Ibsen added a comment -

        Updated docs as well.

        Show
        Claus Ibsen added a comment - Updated docs as well.

          People

          • Assignee:
            Claus Ibsen
            Reporter:
            Claus Ibsen
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development