I would recommend using some external security mechanism like Spring Security or Apache and ip filtering. If that doesn't work, you might be able to use Spring's RequestContextListener to put the request in a ThreadLocal.
Matt On Thu, Mar 19, 2009 at 4:09 AM, Marian <[email protected]> wrote: >>I don't know if it's possible, but I don't think it's a good idea. >>Your web services shouldn't be talking to the Servlet API IMO. > > Suppose I want to prevent a user coming from a certain IP to use a certain > method - how could I know his IP? In servlets it's easy - > request.getRemoteAddr() gives that. > > Marian > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
