dev@glassfish.java.net

Re: Changing the default name of a deployed application

From: Lee Chuk Munn <chuk-munn.lee_at_oracle.com>
Date: Thu, 27 Jan 2011 06:32:34 +0800

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