• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

temp folder in jboss?

 
Preetham Chandrasekhar
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Here is the issue I am trying to resolve using ejb/servlets...

1. Download a zip file given a url...
2. Extract the contents of the zip file...
3. show the contents of the zip file....the content is primarily an html page...with a lot of images as relative paths
4. I dont want to cache any of these files...
5. Do we have a temep folder in jboss that allows us to do this?

Thanks
Preetham
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JBoss creates a temp folder under %JBOSS_HOME%/server/< serverName> folder. You can use the jboss.server.temp.dir system property to get the path programatically.

 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And remember that the contents of the temp folder will be deleted on server restarts.
 
Preetham Chandrasekhar
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jaikiran,

are the contents in this folder accessible thru a url by any chance?

Thanks
Preetham
 
Preetham Chandrasekhar
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so was still wondering...are these contents accessible thru a url...or can these contents be downloaded into another folder in jboss accessible thru a url...or whats the best way to access contents downloaded...thru a url (Well without caching them)...

Jaikiran or anyone else....any suggestions?
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Preetham Chandrasekhar:


are the contents in this folder accessible thru a url by any chance?



You mean you want to access the contents that you place in this temp folder through your web browser? I dont think that's possible. If you want that to be accessible through the browser then i would suggest creating a temp folder inside your web application. So that you can access it maybe like http://localhost:8080/myApp/uploadedFiles

If you are going to create a temp folder in your web-application, then i would suggest you go for ExplodedDeployment
 
Preetham Chandrasekhar
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jaikiran,

But again...exploded deployment is not a way to go though right in production environment?...or is it ok...could you please brief on its pros and cons...or probably paste a link that does the same?

Thanks
Preetham
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as i know, there are no problems in going into production with exploded deployment.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic