[jboss-user] [Beginners Corner] - Determine the current deployment location within the Web App
do-not-reply at jboss.com
Sat Mar 1 03:27:26 EST 2008
I've the following problem: my Web Application reads and writes text files from within the Application. This files have to be accessible over the internet.
The problem is: when i create a file, it's created in the jboss/bin directory... but it has to be created in the web application (otherwise it wouldn't be accessible though the browser)... but every time i deploy the application, the random number increments, making it impossible to set a path or something like that...
How can I get the current deployment location from within the code? or, if that's not possible, how can i set one fixed location for the deployment of the Application, making it possible to hardcode the path?
Thanks in advance!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133404#4133404
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133404
More information about the jboss-user