The standalone/deployments directory in the Red Hat JBoss Enterprise Application Platform
distribution is the location end users can place their deployment content
(e.g. war, ear, jar, sar files) to have it automatically deployed into the server
runtime.
Users, particularly those running production systems, are encouraged to use the
JBoss EAP management APIs to upload and deploy deployment content instead of
relying on the deployment scanner subsystem that periodically scans this
directory. See the JBoss EAP documentation for details.
DEPLOYMENT MODES
The filesystem deployment scanner in JBoss EAP 6 and later works differently from
previous JBoss EAP releases. The scanner can operate in one of two different
modes, depending on whether it will directly monitor the deployment content
in order to decide to deploy (or redeploy) it.
1) Auto-deploy mode: The scanner will directly monitor the deployment content,
automatically deploying new content and redeploying content whose timestamp
has changed. This is similiar to the behavior of previous JBoss EAP releases, although
there are differences:
a) A change in any file in an exploded deployment triggers redeploy. Because
EE 6 applications do not require deployment descriptors, there is no attempt
to monitor deployment descriptors and only redeploy when a deployment
descriptor changes.
b) The scanner will place marker files in this directory as an indication of
the status of its attempts to deploy or undeploy content. These are detailed
below.
2) Manual deploy mode: The scanner will not attempt to directly monitor the
deployment content and decide if or when the end user wishes the content to
be deployed or undeployed. Instead, the scanner relies on a system of marker
files, with the user's addition or removal of a marker file serving as a sort
of command telling the scanner to deploy, undeploy or redeploy content.
Auto-deploy mode and manual deploy mode can be independently configured for
zipped deployment content and exploded deployment content. This is done
via the "auto-deploy" attributes on the deployment-scanner element in the
standalone.xml configuration file:
<deployment-scanner scan-interval="5000" relative-to="jboss.server.base.dir"
path="deployments" auto-deploy-zipped="true" auto-deploy-exploded="false"/>
By default, auto-deploy of zipped content is enabled, and auto-deploy of
exploded content is disabled. Manual deploy mode is strongly recommended for
exploded content, as exploded content is inherently vulnerable to the scanner
trying to auto-deploy partially copied content. Manual deploy mode also allows
deployment resources (e.g. html and css files) to be replaced without
triggering a redeploy of the application.
MARKER FILES
The marker files always have the same name as the deployment content to which
they relate, but with an additional file suffix appended. For example, the
marker file to indicate the example.war file should be deployed is named
example.war.dodeploy. Different marker file suffixes have different meanings.
The relevant marker file types are:
.dodeploy -- Placed by the user to indicate that the given content should
be deployed into the runtime (or redeployed if already
deployed in the runtime.)
.skipdeploy -- Disables auto-deploy of the content for as long as the file
is present. Most useful for allowing updates to exploded
content without having the scanner initiate redeploy in the
middle of the update. Can be used with zipped content as
well, although the scanner will detect in-progress changes
to zipped content and wait until changes are complete.
.isdeploying -- Placed by the deployment scanner service to indicate that it
has noticed a .dodeploy file or new or updated auto-deploy
mode content and is in the process of deploying the content.
This marker file will be deleted when the deployment process
completes.
.deployed -- Placed by the deployment scanner service to indicate that the
given content has been deployed into the runtime. If an end
user deletes this file, the content will be undeployed.
.failed -- Placed by the deployment scanner service to indicate that the
given content failed to deploy into the runtime. The content
of the file will include some information about the cause of
the failure. Note that with auto-deploy mode, removing this
file will make the deployment eligible for deployment again.
.isundeploying -- Placed by the deployment scanner service to indicate that it
has noticed a .deployed file has been deleted and the
content is being undeployed. This marker file will be deleted
when the undeployment process completes.
.undeployed -- Placed by the deployment scanner service to indicate that the
given content has been undeployed from the runtime. If an end
user deletes this file, it has no impact.
.pending -- Placed by the deployment scanner service to indicate that it
has noticed the need to deploy content but has not yet
instructed the server to deploy it. This file is created if
the scanner detects that some auto-deploy content is still in
the process of being copied or if there is some problem that
prevents auto-deployment. The scanner will not instruct the
server to deploy or undeploy any content (not just the
directly affected content) as long as this condition holds.
Basic workflows:
All examples assume variable $EAP_HOME points to the root of the JBoss EAP distribution.
Windows users: the examples below use Unix shell commands; see the "Windows
Notes" below.
A) Add new zipped content and deploy it:
1. cp target/example.war $EAP_HOME/standalone/deployments
2. (Manual mode only) touch $EAP_HOME/standalone/deployments/example.war.dodeploy
B) Add new unzipped content and deploy it:
1. cp -r target/example.war/ $EAP_HOME/standalone/deployments
2. (Manual mode only) touch $EAP_HOME/standalone/deployments/example.war.dodeploy
C) Undeploy currently deployed content:
1. rm $EAP_HOME/standalone/deployments/example.war.deployed
D) Auto-deploy mode only: Undeploy currently deployed content:
1. rm $EAP_HOME/standalone/deployments/example.war
Note that this approach is not recommended with unzipped content as the server
maintains no other copy of unzipped content and deleting it without first
triggering an undeploy temporarily results in a live application with
potentially critical resources no longer available. For unzipped content use
the 'rm $EAP_HOME/standalone/deployments/example.war.deployed' approach.
E) Replace currently deployed zipped content with a new version and deploy it:
1. cp target/example.war/ $EAP_HOME/standalone/deployments
2. (Manual mode only) touch $EAP_HOME/standalone/deployments/example.war.dodeploy
F) Manual mode only: Replace currently deployed unzipped content with a new
version and deploy it:
1. rm $EAP_HOME/standalone/deployments/example.war.deployed
2. wait for $EAP_HOME/standalone/deployments/example.war.undeployed file to appear
3. cp -r target/example.war/ $EAP_HOME/standalone/deployments
4. touch $EAP_HOME/standalone/deployments/example.war.dodeploy
G) Auto-deploy mode only: Replace currently deployed unzipped content with a
new version and deploy it:
1. touch $EAP_HOME/standalone/deployments/example.war.skipdeploy
2. cp -r target/example.war/ $EAP_HOME/standalone/deployments
3. rm $EAP_HOME/standalone/deployments/example.war.skipdeploy
H) Manual mode only: Live replace portions of currently deployed unzipped
content without redep
没有合适的资源?快使用搜索试试~ 我知道了~
jboss-eap-6.4.0.zip
共1011个文件
jar:363个
xml:318个
xsd:188个
需积分: 47 64 下载量 3 浏览量
2018-12-26
16:42:43
上传
评论
收藏 157.53MB ZIP 举报
温馨提示
jboss-eap-6.4.0.zip
资源推荐
资源详情
资源评论
收起资源包目录
jboss-eap-6.4.0.zip (1011个子文件)
standalone.bat 9KB
domain.bat 6KB
appclient.bat 4KB
domain.conf.bat 3KB
standalone.conf.bat 3KB
appclient.conf.bat 3KB
jboss-cli.bat 2KB
add-user.bat 2KB
jdr.bat 2KB
jconsole.bat 2KB
vault.bat 832B
wsconsume.bat 788B
wsprovide.bat 726B
run.bat 689B
domain.conf 3KB
standalone.conf 2KB
appclient.conf 2KB
jboss-as.conf 369B
product.conf 48B
eap.css 3KB
eap.css 3KB
java.sql.Driver 29B
ejb-jar_2_0.dtd 54KB
web-app_2_3.dtd 33KB
web-facesconfig_1_1.dtd 33KB
web-facesconfig_1_0.dtd 32KB
ejb-jar_1_1.dtd 29KB
web-app_2_2.dtd 19KB
web-jsptaglibrary_1_2.dtd 12KB
application_1_3.dtd 10KB
application_1_2.dtd 7KB
jboss-app_5_0.dtd 6KB
jboss-app_4_2.dtd 6KB
web-jsptaglibrary_1_1.dtd 6KB
service-ref_4_2.dtd 5KB
service-ref_5_0.dtd 5KB
jboss-app_4_0.dtd 5KB
service-ref_4_0.dtd 3KB
jboss-app_3_2.dtd 3KB
jboss-app_3_0.dtd 1KB
linux_add.gif 89KB
windows_add.gif 6KB
the jython license - license.html 17KB
the werken company license - license.html 5KB
index.html 1KB
index_win.html 1KB
index.html 1KB
index_noconsole.html 1KB
noredirect.html 1KB
noconsole.html 1KB
noConsoleForSlaveDcError.html 1KB
noConsoleForAdminModeError.html 1KB
favicon.ico 894B
dir.index 10B
dir.index 8B
release-stream-2.5.5.Final-redhat-1-resources.jar 30.61MB
jboss-client.jar 6.28MB
jacorb-2.3.2.redhat-6.jar 6MB
jboss-cli-client.jar 4.67MB
hibernate-core-4.2.18.Final-redhat-2.jar 4.48MB
lucene-smartcn-3.6.2.redhat-8.jar 3.42MB
xalan-2.7.1.redhat-7.jar 2.61MB
jbossweb-7.5.7.Final-redhat-1.jar 2.59MB
infinispan-core-5.2.11.Final-redhat-2.jar 2.41MB
ecj-4.4.2.redhat-1.jar 2.14MB
jsf-impl-2.1.28.redhat-8.jar 1.98MB
jgroups-3.2.13.Final-redhat-1.jar 1.93MB
jboss-as-controller-7.5.0.Final-redhat-21.jar 1.82MB
guava-13.0.1.redhat-2.jar 1.8MB
jboss-as-ejb3-7.5.0.Final-redhat-21.jar 1.75MB
xercesImpl-2.9.1.redhat-6.jar 1.68MB
solr-core-3.6.2.redhat-8.jar 1.56MB
lucene-core-3.6.2.redhat-8.jar 1.52MB
jbossjts-jacorb-4.17.29.Final-redhat-1.jar 1.52MB
h2-1.3.168.redhat-4.jar 1.49MB
opensaml-2.5.3.redhat-2.jar 1.34MB
netty-3.6.10.Final-redhat-1.jar 1.22MB
jboss-as-cmp-7.5.0.Final-redhat-21.jar 1.19MB
lucene-analyzers-3.6.2.redhat-8.jar 1.13MB
picketlink-federation-2.5.4.SP4-redhat-1.jar 1.12MB
cxf-api-2.7.14.redhat-1.jar 1.09MB
jboss-as-host-controller-7.5.0.Final-redhat-21.jar 1.03MB
hornetq-server-2.3.25.Final-redhat-1.jar 1.03MB
jaxb-xjc-2.2.5.redhat-9.jar 1.02MB
jboss-rmi-api_1.0_spec-1.0.4.Final-redhat-3.jar 1003KB
jaxb-impl-2.2.5.redhat-9.jar 998KB
jboss-as-server-7.5.0.Final-redhat-21.jar 966KB
hibernate-search-engine-4.6.0.Final-redhat-2.jar 924KB
jbossxts-4.17.29.Final-redhat-1.jar 923KB
weld-core-1.1.28.Final-redhat-1.jar 920KB
picketbox-4.1.1.Final-redhat-1.jar 906KB
jbossws-native-core-4.2.0.Final-redhat-1.jar 901KB
jboss-as-domain-management-7.5.0.Final-redhat-21.jar 825KB
jboss-as-cli-7.5.0.Final-redhat-21.jar 791KB
jackson-mapper-asl-1.9.9.redhat-4.jar 762KB
jboss-as-messaging-7.5.0.Final-redhat-21.jar 743KB
jboss-as-connector-7.5.0.Final-redhat-21.jar 706KB
cxf-rt-ws-security-2.7.14.redhat-1.jar 699KB
javassist-3.18.1.GA-redhat-1.jar 698KB
stilts-stomplet-server-bundle-0.1.26.redhat-4.jar 691KB
共 1011 条
- 1
- 2
- 3
- 4
- 5
- 6
- 11
资源评论
IluckySi
- 粉丝: 70
- 资源: 24
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功