Return-Path: X-Original-To: apmail-felix-users-archive@minotaur.apache.org Delivered-To: apmail-felix-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 26E249055 for ; Thu, 9 Feb 2012 09:39:11 +0000 (UTC) Received: (qmail 23791 invoked by uid 500); 9 Feb 2012 09:39:10 -0000 Delivered-To: apmail-felix-users-archive@felix.apache.org Received: (qmail 23153 invoked by uid 500); 9 Feb 2012 09:38:59 -0000 Mailing-List: contact users-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@felix.apache.org Delivered-To: mailing list users@felix.apache.org Received: (qmail 23145 invoked by uid 99); 9 Feb 2012 09:38:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2012 09:38:56 +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 (athena.apache.org: domain of ivanhoeabrahams@gmail.com designates 209.85.213.177 as permitted sender) Received: from [209.85.213.177] (HELO mail-yx0-f177.google.com) (209.85.213.177) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2012 09:38:49 +0000 Received: by yenm4 with SMTP id m4so925045yen.22 for ; Thu, 09 Feb 2012 01:38:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=WKsh3vxwELpSDhQQcChtX5yp9qCe7l4yODdMpwb/T+U=; b=SH/oCG4ltRAQmBxicYjQp3GWfEgPnJ7cS8QRBXwYF9ZERWEpfd9A/0ZXRTAMVePite 8GP0TriwnBNDp53W8vs3YEbgHwOoBXZUq5aKaHjF8/ZACoeaaeCg9wD/OPsx8R++vzpG HyFm9/GaHaRMEzSnSrao6Dq1tP55UisTg6in0= MIME-Version: 1.0 Received: by 10.101.152.7 with SMTP id e7mr293600ano.83.1328780308572; Thu, 09 Feb 2012 01:38:28 -0800 (PST) Received: by 10.147.85.3 with HTTP; Thu, 9 Feb 2012 01:38:28 -0800 (PST) Date: Thu, 9 Feb 2012 11:38:28 +0200 Message-ID: Subject: Http Service context path From: Ivanhoe Abrahams To: users@felix.apache.org Content-Type: multipart/alternative; boundary=001636c9230e46eb2b04b884c6af --001636c9230e46eb2b04b884c6af Content-Type: text/plain; charset=ISO-8859-1 Hi all I have been playing around with the httpservice. In my playpen want to get OSGI (Felix) and Vaadin to play nicely together (which it does). However at this point I am facing a problem whereby I register two servlets with different aliases (these servlets extend Vaadin's AbstractApplicationServlet). My problem is that these two servlets(actually vaadin applications), seem to be sharing the same session and what I would like to know is, Is there a way to register servlets under different context-paths? because the context path for both servlets is "/" which is what is causing the servlets to share the same session, i think. I want to be able to do this programmatically as well. The way I am testing this is simply to fire up chrome and open 2 url's eg: http://localhost:8080/testapp1/ and then another tab http://localhost:8080/testapp2/ However when I access the second url, it seems like the httprequest contains the first app's session. Hence my question about context-paths and how to seperate the two app's (in terms of session management). Any advice would be helpful. By the way I am use the http service bundle (ExtHttpService) to register servlets and filters and have jetty enabled in the config file. Regards Ivanhoe --001636c9230e46eb2b04b884c6af--