aspose file tools*
The moose likes JBoss/WildFly and the fly likes temp folder in jboss? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "temp folder in jboss?" Watch "temp folder in jboss?" New topic
Author

temp folder in jboss?

Preetham Chandrasekhar
Ranch Hand

Joined: Nov 05, 2003
Posts: 98
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


"In theory, there is no difference between theory and practice. But, in practice, there is."<br /> - Jan L.A. van de Snepscheut
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10201
    
166

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.



[My Blog] [JavaRanch Journal]
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10201
    
166

And remember that the contents of the temp folder will be deleted on server restarts.
Preetham Chandrasekhar
Ranch Hand

Joined: Nov 05, 2003
Posts: 98
Hi Jaikiran,

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

Thanks
Preetham
Preetham Chandrasekhar
Ranch Hand

Joined: Nov 05, 2003
Posts: 98
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

Joined: Jul 20, 2005
Posts: 10201
    
166

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

Joined: Nov 05, 2003
Posts: 98
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

Joined: Jul 20, 2005
Posts: 10201
    
166

As far as i know, there are no problems in going into production with exploded deployment.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: temp folder in jboss?