-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Vicky,
On 5/28/13 1:21 PM, vicky007aggar...@yahoo.co.in wrote: > Thanks David & Chris for responding back. > > Actually i am doing a proof of concept,in which in want to use the > same CATALINA_BASE across in lieu of creating 10 different tomcat > instances. > > I am doing this by using variables in server.xml for port > numbers,work directories etc. & then i am passing the respective > values to the tomcat startup script as arguments. > > The idea is to get away from the need of creating tomcat instances > & to have one common config file which will be used for running > multiple instances using single catalina_base .with this i can > reduce lot of support work & it will be easier to maintain as > well. So you want to have separate instances (e.g. JVM processes) but you want them all to use the same set of parameterized configuration files? Why not have a set of scripts that generates server.xml files on the fly for you? That's what we have set up through ant: we have a template server.xml (and context.xml for our webapps) and then we merge parameters for each webapp (or instance) at deployment-time. I think you will never want to use the same work and/or temp directories because you could have two instances with the same context deployed and they would interfere with each other in unexpected ways. > So related to this My Queries are :- > > 1) do you guys find this approach as reliable in which i will be > passing the port numbers,work directory location & catalina base to > tomcat startup script as argument on runtime??? 2) Are there any > concerns/pitfalls which i should take care ? 3) i am not able to > create separate temp directory for the instances ,is it possible to > change the temp location which is used by tomcat instances or it > can be shared across multiple instances ? > > Please suggest i really need your guidance. I think it's likely to be overly complicated, since you need to maintain a whole set of scripts that basically just moves the problem of separate server.xml files into separate script files. What's the difference? - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJRpRNYAAoJEBzwKT+lPKRYiAIP/3XkaGZvaMbzmu0uYxm9v55i M+jn8KasYV4FlmY9HXn8iOCCPhcopz8Qh0nAmXIP2ONG11L4EzxMQDHJKirgrpBb o0LB1z3Qb6VGftywPvnQ3WG21WsLJcRB+YJf0TBazWaJ7XEjs91Agwa9/cLNn6S7 Ndpt9PWAKo1FBywkdALI6Mj0KP9FHlxIrH64WEesXJhbeYe/CbCoUvnMKmO2HWog ehCS9DoelS5IQ+AXjMGK1mJfUVbVF9YWxd4CQ3S6r6I9KRmPPwCmYR1gFfyE5n+M RWCHDoCMSrmdB3zQODscgN5JJP0nsr8g4HiBVjQLMvKyUhcBXAtuAnX00ujtOeSi ZC+frgdFaWRABteSL5d8nl/T9R4hzCQtiW+9GSZuID16nh6su0csVNXh9gBnVfCg W6mljeKXhHmY69mpbnI0/e9tGOyhbghWfLwBiXLfu+o4KGA8zBJkGHGVJLFyeWW9 vl8MR1VMdRsBBzcjNFwOUT7BLhBncGUS77fwWTBvHb/Y1vfF9LTTppkxlq7kQqQJ H05+mXYAnV4iux4Ne+UXLj4saA692jbETaYZwerLgEXb6MnCeDuG8n8fBbrRwKQf qTeT9lA4AmTFGMkZTUGaa4pJ3TU7dhmOcMgJzAVuJwCmg7G2qzVfYIzUNZ9o9w++ vQX+1azsinOq2MIaI+Rr =b8jY -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org