There are six different ears in my application. there is one java file, which do some logic. this java file is common in all the ears. how can I read application.xml to identify which ear I am presently in? As if i know the display name of the application then that class can execute logic specific to that particular ear.
Infact is there any other way from where class can find out the ear to which it belongs??
Assuming you are talking about thr 6 six different ear...
well i know this is a workaround but you can use some property file...
“The difference between 'involvement' and 'commitment' is like an eggs-and-ham breakfast: the chicken was 'involved' - the pig was 'committed'.”
Joined: Nov 23, 2009
Thanks for your response.
These six ears are deployed in 6 jvms where a java class will have logic to perform based on context in application.xml
So, I want to get the context by reading the application.xml
subject: Reading application.xml from ear in a java class