In my web application i have a option to upload images and the images are saved at two location one under the tmp folder in jboss(C:\jboss\server\default\tmp\deploy) and another under a folder (C:\jboss\vin_procure\images). Now when we start jboss , tmp folder get overwrites and images are lost . So i need to write a jboss service in order to copy all the images under folder (C:\jboss\vin_procure\images) to the tmp folder in jboss.
Please suggest how can be write a jboss service or modify at
Thanks and Regards,
posted 8 years ago
I think simple way is to write a Servlet to do this copy and set it to start on startup.