Question about Jboss deployment
Posted
by Manoj
on Stack Overflow
See other posts from Stack Overflow
or by Manoj
Published on 2009-02-11T01:55:00Z
Indexed on
2010/04/30
11:07 UTC
Read the original article
Hit count: 479
Hi All,
I am new to Jboss and deployment of web applications etc. I have two different war files deployed on the same Jboss server. Further they also share some classes which read different properties based on the application settings (Let's call a common class as CommonClass.class which is present in App1.war and App2.war; CommonClass has a member "FIELD1", so both these war files have CommonClass.class each of which reads different properties, into CommonClass.FIELD1). But during run-time when I access FIELD1 in one application (App2.war->CommonClass.FIELD1) it has the value from another application (App1.war->CommonClass.FIELD1). Is there any way I can explicitly specify so that JBoss treats these classes and fields to be different? so that both these classes can exist in memory yet hold their respective correct values?
Thanks a ton, Manoj
© Stack Overflow or respective owner