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
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
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
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
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