This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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.
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.
Joined: Dec 18, 2007
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?
Joined: Jan 16, 2008
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.