[jboss-user] [Beginner's Corner] - Re: files on Jboss server

Peter Johnson do-not-reply at jboss.com
Sun Jan 30 13:34:58 EST 2011


Peter Johnson [http://community.jboss.org/people/peterj] created the discussion

"Re: files on Jboss server"

To view the discussion, visit: http://community.jboss.org/message/584126#584126

--------------------------------------------------------------
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
[http://community.jboss.org/message/584126#584126]

Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110130/546a14d2/attachment.html 


More information about the jboss-user mailing list