Klemens-sensei wrote: > We also found that the db seems to be created in c:/Windows/system32 if > we did not modify the system.xml file specified and start tomcat as a > service.
Right. The "./db/" configuration means that it will be created in the directory called "db" under the "current directory." The "current directory" is whereever you start Tomcat from. This may become a serious problem for developers who are starting and stopping Tomcat from different working directories while they are tuning an application. For the XML-RPC version, I would rather have the directory be relative to the current servlet context. With a default value of "/WEB-INF/db" (with logic to make the leading '/' optional) I would know exactly where the database should be. Furthermore, this will work on all platforms the same. The major drawback to this solution that I see is that one MUST expand the .war file for use in order to have a writable directory available. (I haven't tested it, but I can't think of a reason why this won't run left in its WAR state.) I know that the XML-RPC servlet is just one example of how a server could be built. I just fear that having the default database storage location in a completely unrelated directory (such at Windows' Start menu heirarchy) will tend to confuse a lot of people getting started. Having it under WEB-INF is much more logical. -- Michael Westbay Work: Beacon-IT http://www.beacon-it.co.jp/ Home: http://www.seaple.icc.ne.jp/~westbay Commentary: http://www.japanesebaseball.com/forum/
