Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6BD1E1774C for ; Wed, 18 Mar 2015 13:06:04 +0000 (UTC) Received: (qmail 36281 invoked by uid 500); 18 Mar 2015 13:06:04 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 36239 invoked by uid 500); 18 Mar 2015 13:06:04 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Delivered-To: moderator for users@camel.apache.org Received: (qmail 13597 invoked by uid 99); 18 Mar 2015 10:50:50 -0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of withsnaveen@gmail.com designates 209.85.218.45 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=xfQJ520V4F61kjdmz5Ov0s4smlA9jtUyW4ATIIqsoKs=; b=VuH1k/4sQ+XFd2dIDhOi/B47nAJRq87OoQ+WWnW2NCjRVv8yXgBon1sKXTCHqMt9Wg Wx9f8DicDnMf/epdCwwOM8PM8mB98Cm3q0IV79/5uv5hHd3h3yg7LUNHeXIjqNSN+q3x WZUADlIZFhKYstG3cM8gGh9a2DxR042gDVBseOnsoFzpF00juVuttQU5UOSxmQHETbf7 digzW19s9KA0ysMA9Hr7niVNkndU/BSHltlOll9RS6LBJ4U9VFsQDmhd3EF+WUaOu01b cKQAUnG0I1c0hhWwrfI1nekS8t9ZzfeA12/9KX3sVPAMSG+FAp7yZduEMA/l2pk/7a/i SbsQ== MIME-Version: 1.0 X-Received: by 10.60.145.137 with SMTP id su9mr42967800oeb.40.1426675822700; Wed, 18 Mar 2015 03:50:22 -0700 (PDT) Date: Wed, 18 Mar 2015 16:20:22 +0530 Message-ID: Subject: Camel - CDI and Servlet Context Implementation From: Naveen Subramanian To: users@camel.apache.org Content-Type: multipart/alternative; boundary=047d7b5d4bc29f2e8d05118dd99e X-Virus-Checked: Checked by ClamAV on apache.org --047d7b5d4bc29f2e8d05118dd99e Content-Type: text/plain; charset=UTF-8 Hi, I have implemented Camel with Servlet implementation using ServletContext. I wish to implement CDI as well (which needs CdiCamelConext). I am unable to find a way to implement both. Please suggest. My web.xml routeBuilder-routes packagescan:com.example.api.routes CamelContextLifecycle com.example.api.camel.CustomCamelContextLifeCycle org.apache.camel.component.servletlistener.SimpleCamelServletContextListener APIServerServlet CamelServlet org.apache.camel.component.servlet.CamelHttpTransportServlet 1 CamelServlet /* (P.S no Spring ) --047d7b5d4bc29f2e8d05118dd99e--