Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 70787 invoked from network); 3 Mar 2009 07:40:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Mar 2009 07:40:09 -0000 Received: (qmail 65104 invoked by uid 500); 3 Mar 2009 07:40:07 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 65087 invoked by uid 500); 3 Mar 2009 07:40:07 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 65078 invoked by uid 99); 3 Mar 2009 07:40:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 23:40:07 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Mar 2009 07:39:58 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LePE2-0004hP-51 for user@geronimo.apache.org; Mon, 02 Mar 2009 23:39:38 -0800 Message-ID: <22303812.post@talk.nabble.com> Date: Mon, 2 Mar 2009 23:39:38 -0800 (PST) From: Kaupo To: user@geronimo.apache.org Subject: Custom Login Module HttpServletRequest access for webservice MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: kparmas@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org Hi! I have made a custom login module where I need to retrieve some user data from the HttpServletRequest. The following piece of code work well: request = (HttpServletRequest) PolicyContext.getContext("javax.servlet.http.HttpServletRequest"); The problem is that it only works when I login from the website. When I use BASIC authentication from a webservice then the request is going to be null! (I think it's because I made my service out of a bean and configured it in the ejb container) Is there a way for me to get a similar or a HttpServletRequest when loging in from my webservice? I need to get the users/servers IP from where the call is made. Thanks in advance -Kaupo -- View this message in context: http://www.nabble.com/Custom-Login-Module-HttpServletRequest-access-for-webservice-tp22303812s134p22303812.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.