Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Regd.Document root

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hai
What is the document root folder in Websphere 4.0? I want to store some files in document root folder while running the program. So, I require document root folder for Websphere, if any body know please help me.
Thank's
Venkat
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The document root is (more or less) the web directory of your web app. This is just the way J2EE works. Are you sure you need the document root, or do you really just need to use a temporary directory? What are you trying to do?

------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
 
Venkat Ammisetty
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Yes I need document root.The reason is I am saving Image file during the program.When ever the Images should be retrived I have to refer the same directory where I placed the Images.I am able to place the images and retrive by placeing in web apps folder,but the problem is when ever I try to install or deploy the EAR file with slite modifications.The previous files and directories in the EAR file will be removed and new files and directory structure will be created.In that case I will lose the Images already added.
What I want is to save the Images perminetly?
I hope I am clear
Thank's
venkat
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What you're suggesting is a violation of J2EE packaging rules. My best advice to you is the following:
(1) Save them tempoarily in the web directory and put a SECOND copy somewhere completely outside of WebSphere in another directory.
(2) On startup of your app (in some servlet's init() method), look in the second directory and copy its contents to the web directory.
Kyle Brown
------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
 
Venkat Ammisetty
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ThankQ for your suggestions
I too thought that my solution is not the best one but I don't have any alternative to do that.
I like your second suggestion.copying in startup servlet.
we do have 2 startup servlets,we are loading them by load on start tag in XML. I will try that.
Once again thankQ for your suggestion.
One final request is if any one having JMS examples program which runs under WAS 4.0 using Queues please mail me.
I need it deadly.we implemented it in WebLogic and JBoss but the QueueCOnnectionFactories are different in WAS.
Please helpme in this regard.
Bye
Venkat
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic