This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi folks, I'm not sure, if this is the right place, please forgive me, if it's not. Anyway, the problem came up, while transfering to JWS.
I'm facing the following: our application consists of multiple jars and some conf and log files. These files are changed programatically, e.g. by log4j. To use JWS I've to put these outter-jar-files into a jar, right? Okay, done. Finding conf resources seems no problem, but writing into a jar to update logging information by an appender is a tricky one, too much for me. Is anybody out there, who can give me a clue?
Yes this seems like the right place to post your question.
I think you should not be trying to write a logging file into a jar file. Certainly you can't write into the same jar file your jnlp application is running from. (Because modifying the file in that way would invalidate the jar signature.)
You need to write your log file somewhere else. Perhaps in the user's home directory, or perhaps ask the user where they want it to be written.