I would like to upload files to my the server/default/data directory using a simple upload servlet and be able to access them from within my application, but I can't seem to find how to access it. I tried
getServletContext().getRealPath("data");
but that didn't help.
jboss.server.base.dir/configuration. jboss.server.data.dir. The directory used for persistent data file storage.
In Figure 3.1, “The JBoss AS directory structure”, the default server configuration file set is shown expanded. It contains a number of subdirectories: conf, data, deploy, lib, log, and tmp. In a clean installation, only the conf, deploy, and lib directories will exist.
The default JBoss configuration file set is located in the JBOSS_DIST/server/default directory. JBoss allows you to add more than one configuration set so a server can easily be run using alternate configurations.
If you do: more /etc/passwd and look for the JBoss user you may find it to point at /usr/local/jboss as well.
to get the absolute path, just do:
System.getProperty("jboss.server.data.dir");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With