JBoss Community

Re: files on Jboss server

created by Peter Johnson in Beginner's Corner - View the full discussion

If you showed the code that you used to create the files, that would really help. And also mentioned hwre that code appears (within a servlet or web app, within an EJB, etc) Without that we are just guessing. Here are some fatcs that might help:

 

* If you create a file using a relative path, that file will usually show up in the jboss/bin directory since that is the working directory.

* To access files within a web app from a servlet, use ServletContext.getContextPath()

* To access files in specific JBoss AS directories, use one of the jboss.server.* system properties, such as jboss.server.data.dir. You can see all of the system properties in the jmx-console via the jboss:type=Service,name=SystemProperties MBean

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community