I am using JBOSS 4.0.2 server i have a requirement that user have to create a directory dynamically in the server(jboss) that is independent of operating system. I tried to create a folder by getting the path from

ServletContext application = getServletConfig().getServletContext();
String absolutePath = application.getRealPath("\\");
System.out.println("absolutePath:"+absolutePath);
File fDir = new File(absolutePath+"\\uploadedFiles\\");
boolean b = fDir.mkdir();

i am able to create the folder in the tmp directory of the project war file . I dont want to create it in the temp folder , i need to create folder in the Jboss folder structure