dev@glassfish.java.net

Re: Changing the default name of a deployed application

From: Hong Zhang <hong.hz.zhang_at_oracle.com>
Date: Wed, 26 Jan 2011 17:59:18 -0500

Hi, Chuk
    The registration name of an application needs to be determined very
early in the deployment lifecycle (to decide if the chosen name is in
conflict with another application, or if the deployment is a
redeployment of an existing application etc), and cannot be changed by
the container code in the later part of the deployment lifecycle.

- Hong

On 1/26/2011 5:32 PM, Lee Chuk Munn wrote:
> Hi Rebecca/Hong
>
> what I was looking for was doing this programatically in the container
> when I'm deploying it. Are there any parameters to set?
>
> Thanks
>
> Regards
> Chuk
> On 27/1/2011 2:32 AM, Hong Zhang wrote:
>> You can use the --name option of the deploy command with CLI or the
>> name field in admin console deploy screen to specify the name you
>> want the application to deploy with. For example:
>> asadmin deploy --name foo fred.xar
>> will deploy the application with name foo.
>>
>> On 1/17/2011 10:19 PM, Lee Chuk Munn wrote:
>>> Hi
>>>
>>> IHAQ on changing the name of a deployed application. I have a custom
>>> container and I'm deploying my application like so
>>>
>>> asadmin deploy fred.xar
>>>
>>> When I do a asadmin list-applications, the default name of the deployed
>>> app is the package name minus the suffix viz. fred. This is stopping me
>>> from deploying multiple copies of the same application.
>>>
>>> What properties do I need to change in my container to control what
>>> name
>>> the application gets deployed as.
>>>
>>> Thanks
>>>
>>> Regar
>