| Author |
Everything deleted on shutdown
|
Alexander Petrov
Greenhorn
Joined: Dec 18, 2007
Posts: 3
|
|
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: 3
|
|
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.
|
 |
 |
|
|
subject: Everything deleted on shutdown
|
|
|