2 Replies Latest reply on Mar 1, 2008 5:05 PM by Klaus Gradinger

    Determine the current deployment location within the Web App

    Klaus Gradinger Newbie

      Hey there.

      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!
      Klaus