0

i want to clean the jboss 7 tmp folder using java code

is there a way to do this? it should be use JMX? please help me i want to this code and thanks

Suresh Atta
  • 118,038
  • 37
  • 189
  • 297
ofloflofl
  • 187
  • 3
  • 5
  • 12

2 Answers2

1

I guess you need to get the file structure like this and have to clean/delete internal files in that temp folder.

JBoss AS 7: How to clean up tmp?

But please read the recommendation there.

Community
  • 1
  • 1
Suresh Atta
  • 118,038
  • 37
  • 189
  • 297
1

This would give you the temp directory path which you can use in your java program create a file instance and carry out the operation.

System.getProperty("jboss.server.temp.dir");  
Bilbo Baggins
  • 2,739
  • 9
  • 45
  • 70