Luis According to JIRA 1610 you can retrieve the IP address this way: String remoteClientAddress = messageContext.getProperty(MessageContext.REMOTE_ADDR);
Paul On 5/24/07, Luis Mariano Luporini <[EMAIL PROTECTED]> wrote:
Hi, I been trying since this morning to get around this but did not succeeded. I'm starting to get a little frustrated so I think, by now, the best path is to trust in others knowledge. Anyway, I'm using Axis2 1.2, Tomcat 6.0.10 and Sun J2SE 1.5.0.11 on FC5 Linux. I'm trying to figure out a way to restrict access to services based on client IP address. Let's say I have 3 services: 1. MyPublicService: This needs to be available for any client IP address. 2. MyPrivateService: This needs to be available for my local subnet, for example 192.168.0.0/24 only. 3. MyPremiumService: This needs to be available for a list of configured IP addresses. I need a way to restrict access following above requirements and without the need to write code for that. Is there a way to configure this behavior somewhere or I will need to rely on some kind of reverse proxy (Apache, Lighty, etc) to control access based on URL pattern matching and client IP? Hope someone can give me a pointer. Thanks in advance. Luis --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Paul Fremantle Co-Founder and VP of Technical Sales, WSO2 OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org [EMAIL PROTECTED] "Oxygenating the Web Service Platform", www.wso2.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
