Hello all,
In order to display application ear version,I need to access ear-specific Manifest.mf file from my
jsp.
When I do:
application.getResourceAsStream("META-INF/MANIFEST.MF")
it gives me the war specific Manifest.mf(as expected) .
Changin it to application.getResourceAsStream("../META-INF/Manifest.mf") returns null.
I also tried few other things like but they all return null:
1. ClassLoader.getSystemClassLoader().getResourceAsStream(" META-INF/Manifest.mf")
2.this.getClass().getClassLoader().getParent().getResourceAsStream(" META-INF/Manifest.mf")
Here is my structure
abc.ear
- META-INF ( has manifest.mf and application.xml)
- xyz.war ( has readmanifest.jsp/WEB-INF/ META-INF->manifest.mf )
readmanifest.jsp should read manifest.mf one level up.
How do I get hold of the ear-level( app level) Classloader in Websphere?
Is there an alternate way to achieve what I am trying to do?
Thanks in advance.
[ November 21, 2007: Message edited by: K Thapa ]
[ November 21, 2007: Message edited by: K Thapa ]