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

Everything deleted on shutdown

Alexander Petrov
Greenhorn

Joined: Dec 18, 2007
Posts: 6
Hi, probably I am not doing something right. I have an application EAR file it is a shopping platform with a catalog I deploy it on jboss4.x.x. This shopping platform has different payment methods. The user uploads a .class or .jar file with a payment method and the platform starts using it. Or if another language for the platform should be specified it uploads .properties file.

But the problem is that on shutdown all the tmp directory is deleted and all changes made are deleted to. Where and how to place all the content that needs to be persistent and at the same time to be in my classpath.

The last time I worked with application server Oracle an Bea Weblogic I think, I remember that the deployment was only once and it is not delted after.

Where I should store all this files so they don't get deleted after shutdown and at the same time they should be in my classpath so the program has access to this folder.

What should I do?
Vesa Tanhua-Tyrkk�
Greenhorn

Joined: Jan 16, 2008
Posts: 25
You could try saving uploaded jar files to servers lib folder(for me: /server/default/lib). Then those jar file should be available next time server starts.
Alexander Petrov
Greenhorn

Joined: Dec 18, 2007
Posts: 6
Hi, I have thought about this solution, but I want my platform to be portable from the different application servers and also this jars and class and resource files are application specific. Their is not in the global lib directory.
Other ideas?
Vesa Tanhua-Tyrkk�
Greenhorn

Joined: Jan 16, 2008
Posts: 25
If you deploy your application as a exploded archive(like a folder not packaged archive) -at least then uploaded files could be saved inside of your ear in the deploy folder.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Everything deleted on shutdown