Currently J2eeserver only allow selection of server instance that represent the
admin instance as target of a deployment. If there are more than one target
instances managed by the admin instance, deployment would happens to all target
instances. This is an invenience for developers that want to keep multiple
target instances or want to simulate production environment for debugging purpose.
We need to support deployment of a specific target instance.
One solution is following chnages:
1. Deployment.getTargetInstanceIDs to return (instanceID + target name) for use
by project customizers.
2. Add J2eeModuleProvider.getTargetInstanceID to be use instead of
getServerInstanceID whereever appropriate.
3. Facility to convert target-instance-id into ServerString for use by
*** Issue 57699 has been marked as a duplicate of this issue. ***
Increasing to p1 because of the p1 duplicate of this issue.
My preference would be we had something better than those `ID-strings'. I
would prefer some `bean??' type of thing which would encapsulate the
ServerString etc. and could also be used to generate a good display string for
Right now, we use the ID string, which is `ugly' in UI's.
Ok, my solution for now is to make a combined ServerInstanceID out of the
instanceURL (as NB original code) plus possibly '[[' + targetName + ']]' and
then split it up into pieces again where I need it.
As I said before, I don't like those String based ID's but this looked like
the closed I could get to the original code.
I guess this is not p1 anymore...