quality@glassfish.java.net

Re: how deploy a application without packaging it in a war

From: Survivant 00 <survivant00_at_gmail.com>
Date: Thu, 28 Aug 2008 14:51:39 -0400

I'm using v3.

so I can continue to use


asadmin deploy file.war or asadmin deploydir folder


perfect I'll try that


2008/8/28 Tim Quinn <Timothy.Quinn_at_sun.com>

> Survivant 00 wrote:
>
>> can I copie a folder structure into the applications'sfolder of the domain
>> ?
>>
>> I want to try deploying an application without using a war. Like I do it
>> with Tomcat.. (Does Glassfish have a auto-reload context when it detects
>> changes ? )
>>
> Use the directory deployment feature. You didn't mention which version you
> are using.
>
> Use the v2 deploydir command or the v3 deploy command, specifying the
> directory rather than a .war file. There is no need to create the .war
> file. (Note that the deploydir command will also work in v3 but we are
> encouraging users to adopt the deploy command for both purposes in v3.)
>
> If you update .jsp files in your app the server should detect the changes
> automatically without any action from you. For it to recognize other
> changes you can:
>
> 1. redeploy the app using the original deploydir (in v2 or v3) or deploy
> command again (v2 or v3), or
> 2. use the redeploy command (v3), or
> 3. use this OS command
>
> touch {your-war-directory}/.reload
>
> to trigger a redeployment.
>
> - Tim
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>
>