Glassfish以20多岁做热部署,对吗? [英] Glassfish taking 20s to do hot deployment, is that right?
问题描述
我正在使用 Eclipse
和 Glassfish 3.1.2在
。 JSF
项目中工作
每次我做一个小改动并保存它时,Glassfish都会执行热部署
,但花费的时间太多了,大约 20s
,至少。
这次可以做些什么吗?是可怕的发展的东西,你必须等待所有的时间,每次我改变的东西。
更新
这是我的项目设置。
只要打开下面的文件夹,这让我感到惊讶,就是这么多的.jar文件,这是正确的?
而这一个:
>
我的Glassfish配置:
任何想法?
有几种方法来部署 GlassFish
应用程序。为了加速开发/调试,我们需要一种即时部署Web应用程序的方式。其中一种方法是使用热部署功能,另一个鲜为人知的功能是目录部署。您只需将 GlassFish
指向您的开发目录,并让它从那里获取并部署应用程序。没有包装和重新解决麻烦。无论何时你想重新部署应用程序,你只需要 touch
一个名为 .reload
的文件存在于您的网页文件夹中。
以下是您可以使用的命令和目录结构。
- | myproj
- | - | src
- | - | web
- | - | - | WEB-INF
- | - | - | -lib
- | - | - | -classes
- | - | - - | -web.xml
- | - | .reload
GLASS_FISH_HOME / bin / asadmin deploydir full_path_to_you_web_folder
I'm working in a JSF
project with Eclipse
and Glassfish 3.1.2
.
Every time I did a minor change and save it, Glassfish do the hot deployment
, but is taking too much time to do that, about 20s
, at least.
Can I do something do deacrease this time ? Is horrible develop something where you have to wait all time time everytime I change something.
UPDATE This is how my project settings.
Just open the folder below, this surprise me, is this so many .jar files, is this correct ?
And this one:
My Glassfish configuration :
Any idea ?
There are several ways to deploy a GlassFish
application. To speed up development/debuging we need a way to instantly deploy web applications. One of the ways is to use hot deployment feature, another lesser known feature is ‘directory deployment’. You simply point GlassFish
to your development directory and let it pick up and deploy application from there. No packaging and re-deoploying hassles. The catch is whenever you want to re-deploy your application you just need to touch
a file called .reload
which should be present in your web folder.
Following is the command and directory structure you can use.
–|myproj –|–|src –|–|web –|–|–|WEB-INF –|–|–|–lib –|–|–|–classes –|–|–|–web.xml –|–|.reload
GLASS_FISH_HOME/bin/asadmin deploydir full_path_to_you_web_folder
这篇关于Glassfish以20多岁做热部署,对吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!