Hi,
I have two wars part of an ear.
I am trying to access a file of second war file in the first one.
I am using Rataional application developer.
In the project references i have linked the other war file to the first one.But i m still unable to access the file.It gives me filenotfound exception.
Please let me know where am i goin wrong.
-
How to access file of different war file. (2 messages)
- Posted by: Abhay Singh
- Posted on: November 22 2005 18:52 EST
Threaded Messages (2)
- How to access file of different war file. by Christian Spartano on November 23 2005 23:31 EST
- How to access file of different war file. by Marina Prikaschikova on November 24 2005 02:06 EST
-
How to access file of different war file.[ Go to top ]
- Posted by: Christian Spartano
- Posted on: November 23 2005 23:31 EST
- in response to Abhay Singh
Ok, first I have to tell you that you shouldn't do that. It is not scalable (think in a clustered environment or having those 2 web app running in different servers.....)
Now that my conscience is clean....
The quickest thing to is:
You can have that file in the file system istead of inside of the war file, or you can have your file inside the war side but access it using java.io (using the full os path) like a normal file. -
How to access file of different war file.[ Go to top ]
- Posted by: Marina Prikaschikova
- Posted on: November 24 2005 02:06 EST
- in response to Abhay Singh
See for example Unzip servlet in JSOS:
http://www.servletsuite.com/servlets/unzip.htm