Is there a way to share the classes across the two war files? i have a singleton class, i want to have same instance of this class to be shared across two war files.
WAR files are a bit special, here the classes inside the war are favored.
You might place a jar in server/.../lib to get this behaviour.
A good starting point will be the wiki http://community.jboss.org/wiki/ClassLoadingOverview