The main reason for not doing that is because you'd have to somehow tell the servlet where that location was.

Since the text file is not supposed to be touched by anything except the servlet I think it's probably best to keep it where it is.

Just in case this isn't already known...

The sequence of operations is this:

The FriendlyURLData class gets loaded by fu.cfc.

When it gets loaded, it reads the text file and stores it in memory. From then on it always assumes that it has the latest copy and just overwrites the text file any time a mapping is added or modified.

Putting it in the application working directory might tempt people to try to operate on the text file directly which could have unforseen consequences.

Spike


Just a thought....Part of me wonders if it would make more sense to
store the .txt file in the application working directory instead of in
with the Java classes?

~tom



--

--------------------------------------------
Stephen Milligan
Code poet for hire
http://www.spike.org.uk

Do you cfeclipse? http://cfeclipse.tigris.org

---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to