Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 85051 invoked from network); 28 Apr 2009 17:06:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Apr 2009 17:06:42 -0000 Received: (qmail 75782 invoked by uid 500); 28 Apr 2009 17:06:42 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 75748 invoked by uid 500); 28 Apr 2009 17:06:42 -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 75740 invoked by uid 99); 28 Apr 2009 17:06:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Apr 2009 17:06:42 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS 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, 28 Apr 2009 17:06:32 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Lyql1-0004O7-VV for user@geronimo.apache.org; Tue, 28 Apr 2009 10:06:11 -0700 Message-ID: <23281912.post@talk.nabble.com> Date: Tue, 28 Apr 2009 10:06:11 -0700 (PDT) From: alex_r To: user@geronimo.apache.org Subject: Re: How to get client IP address called EJB method In-Reply-To: <14af40510904280839x2400a15du964cd3efeb80c5e9@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: aryabukhin@gmail.com References: <23273787.post@talk.nabble.com> <14af40510904280839x2400a15du964cd3efeb80c5e9@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org No, it is not servlet. Method called by standalone GUI client. Some hourse ago i has add to org.apache.openejb.ejbd.EJBServer some code that store client IP and port in CallContext. I think it is bad solution, but i have not another. :-( Ashish Jain-5 wrote: > > If it is a servlet which is accessing your ejb you can get the IP address > through ServletRequest.getRemoteAddr(). > > HTH > > On Tue, Apr 28, 2009 at 3:23 PM, alex_r wrote: > >> >> Sorry for my bad english. >> >> Can i get ip address of client requested some EJB method within this >> method? >> -- >> View this message in context: >> http://www.nabble.com/How-to-get-client-IP-address-called-EJB-method-tp23273787s134p23273787.html >> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/How-to-get-client-IP-address-called-EJB-method-tp23273787s134p23281912.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.