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 <mn...@etai.fr> 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: users-unsubscr...@appfuse.dev.java.net > For additional commands, e-mail: users-h...@appfuse.dev.java.net > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net For additional commands, e-mail: users-h...@appfuse.dev.java.net