I am attempting to re-deploy an existing .ear file using a new context so that I can access via /firstinstance and /secondinstance on the same jboss server.
So far I am only changing the application.xml file...
<display-name>firstinstance</display-name>
firstinstance
firstinstance_ejb.jar
<web-uri>firstinstance.war</web-uri>
<context-root>/firstinstance</context-root>
<display-name>nextinstance</display-name>
nextinstance
nextinstance_ejb.jar
<web-uri>nextinstance.war</web-uri>
<context-root>/nextinstance</context-root>
Other than rebuilding the application using different names, all other deployment descriptors are the same.
I have successfully re-deployed the web portion of the app by commenting out the tags but am receiving the InstanceAlreadyExistsException on the ejb's.
Is it possible to re-deploy the same app twice? Which configuration files am I failing to change?