If the whole reason for this objective is reading properties files, then I would recommend a different approach.
If the whole reason for this objective is reading properties files, then I would recommend a different approach. Use WebSphere Shared Library. publib.boulder.ibm.com/infocenter/wasinf... For each deployed EAR have a separate directory containing properties files that needs to be accessed by that EAR.
Create shared library entry for each directory containing properties file. From EAR create shared library reference to required shared library. .
However below links may be of some help to you for your approach: Managing applications through programming Interface AppManagement.
This might just be the right path to coming up with a dynamic solution. Not exactly what I was looking for but close enough for 'rock and roll' - thank you. – Matt1776 Feb 17 '10 at 18:40 Another issue you will face is managing various property files for each EAR and environments (Dev/QA/Prod, etc.) – Gladwin Burboz Feb 17 '10 at 20:49.
After all, it seems to make sense for a given application to be aware of what file to load. Writing code to read the display-name in a deployment descriptor sounds odd (especially since you, as Application Component Provider, shouldn't rely on something owned by the Application Assembler).
I completely agree - never said the request 'made sense' :) I am trying to come up with a more dynamic formula - as I enjoy dynamic solutions to configuration OR convention. – Matt1776 Feb 17 '10 at 18:39.
That is not for your application to know as such, but for EAR-handling tools, including the application server.
I am trying to accomplish the same thing here. I am trying to locate at runtime the ApplicationName found in the META-INF/application.xml. We use this AppName in our Log4J File Appender to create a proper log file name base on the Application currently logging.
We have lots of programmers and lots of App and we need to enforce some convention in a framework. I whish I could simply call: InputStream in = new MyObject().getClass(). GetResourceAsStream(“META-INF/application.
Xmlâ€); I also tried to change the classloader to ‘PARENT_LAST/FIRST’ and ‘Single ClassLoader’ but it does not work. I could locate the application. Xml on filesystem relative to my war file but I am not sure it would work all the time.Is the JMX Api realy the only way?
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.