Hi:
We are moving an application from JBoss 4.0.4 to JBoss 5.1. The application is clustered and farm deployed.
The Legacy application has some code which is resolving to two different locations. Here is the code.
Code:
String ServerRoot = ChartDefinition.class.getClassLoader().getResource("corda").getFile();
JBoss 4.0.4
serverRoot = C:/Java_Env/jboss-4.0.4.GA/server/all/tmp/deploy/tmp2169762820022547025REL696.ear-contents/REL696-exp.war/WEB-INF/classes/corda/
JBoss 5.1
serverRoot = /C:/Java_Env/jboss-5.1.0.GA/server/all/farm/REL697.ear/REL697.war/WEB-INF/classes/
We need to get the same location as the 4.0.4 for loading the artifacts. We understand this is not the right way of doing.
What is the call I can make to get the dynamic location of the unzipped ear file in clustered farm deployment?
Thanks for your help,
Ravi.
Why do you need this?
Temp location is impl detail, and as such imposible to access w/o any explicit usage of JBoss api.
And even then I would say it's not trivial to get it -- I would need to check how I hid it. :-)