• 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

Need to store file out of tmp directory in JBOSS server

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
we are using JBOSS Application sever for deploying our web application.
The EJBEAR and WEBEAR files are deployed in the location C:\jboss-4.0.0\server\default\deploy.
The corresponding war file and its contents are extracted in the location
C:\jboss-4.0.0\server\default\tmp\deploy\tmp45694QUOTEWEBEAR.ear-contents\QUOTEWEB-exp.war\PDF\sample1.pdf
using the ServletContext base url.
now i have a specific piece of work, that i have to change the location of the Pdf file outside of the tmp directory.
like (C:\jboss-4.0.0\server\default\PDF\quote1.pdf)
Waiting for your valuable suggestion to move forward.

Regards,
Saravanan
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So you are packaging a pdf in a .war and want it to be available at a fixed location? Try exploded deployment. That way, the archive will not be extracted to tmp folder and instead it will be available at a fixed location within your application.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic