Tuesday, March 15, 2011

Question about Jboss deployment

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

From stackoverflow

0 comments:

Post a Comment