On Thu, Jun 18, 2009 at 2:10 PM, André Warnier <a...@ice-sa.com> wrote:
> André Warnier wrote: > > Ooops. I forgot to add this : in the /thewebapp-internal, you should also > have a filter, this time which /blocks/ the request if it does /not/ come > from 127.0.0.1. Otherwise people not from 127.0.0.1 would be able to hit it > directly, just by knowing the /thewebapp-internal URL. > André, thanks for your help.If I deploy the app twice, would I not need to provide a different deployment url for the 2nd instance? In which case I could direct the internal clients to this unprotected url directly without using a filter. I'd like to not have 2 copies of the app running as there is global state in there that I would have to sync between instances. Can I write a custom valve that does this by alters the role ? Would this be a matter of defining a new class, say org.apache.catalina.valves.ValveMine and bundling it with the war, or would it need to go in a jar in CATALINA_HOME/libs? All I need to know then is how to change the role within the Valve. -Bruce