Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reading application.xml from ear in a java class

 
seenu akula
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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??


 
K Abhijit
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can you have 6 ears in one application ? you can't have ear inside ear ....
http://www.bea-weblogic.com/can-i-have-an-ear-file-packaged-inside-another-ear-file.html

Assuming you are talking about thr 6 six different ear...

well i know this is a workaround but you can use some property file...


 
seenu akula
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic