This RFE is based on a query that I found... http://stackoverflow.com/questions/2469284/deploy-
It would be nice to make it easy to deploy multiple instances of the same ear file on single server.
Right now, you have to edit the descriptors or deploymentplan to put the same ear on one instance of
It looks like we could do the following, though... pretty simply.
assume I have an ear with a war file in it, mapped to /123
We could use the --contextroot option of asadmin to construct a new CR by appending the option's
argument WITH the CR specified in the application.xml
asadmin deploy EarWith123War.ear
results in the same old CR we would get today, "/123"
asadmin deploy --contextroot /abc EarWith123War.ear
results in a constructed CR /abc/123
If the user needed to deploy another version of EarWith123War.ear, they could do
asadmin deploy --contextroot /xyz EarWith123War.ear
to get the constructed CR /xyz/123