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 13:32:57 -0500

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
>