• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Everything deleted on shutdown

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic