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
  • 120,458
  • 37
  • 198
  • 307
ofloflofl
  • 205
  • 3
  • 6
  • 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
  • 120,458
  • 37
  • 198
  • 307
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,899
  • 10
  • 52
  • 77