标签:java linux java-ee jboss jboss7-x
运行以下命令后,我在Jboss AS 7.0.1中成功部署了war文件;
/host=master/server-config=mobile:start
我得到以下内容;
[Server:mobile] 12:47:50,349 INFO [org.jboss.as.logging] (MSC service thread 1-4) Removing bootstrap log handlers
[Server:mobile] 12:47:50,391 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) Bound data source [java:jboss/datasources/ExampleDS]
[Server:mobile] 12:47:51,034 INFO [org.jboss.as.ee] (Controller Boot Thread) Activating EE subsystem
[Server:mobile] 12:47:51,068 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) Starting deployment of "MobileGateway.war"
[Server:mobile] 12:47:51,515 INFO [org.jboss.as.jpa] (MSC service thread 1-1) added javax.persistence.api dependency to MobileGateway.war
[Server:mobile] 12:47:51,809 INFO [org.jboss.web] (MSC service thread 1-4) registering web context: /MobileGateway
[Server:mobile] 12:47:51,822 INFO [org.jboss.as.server.controller] (Controller Boot Thread) Deployed "MobileGateway.war"
[Server:mobile] 12:47:51,824 INFO [org.jboss.as] (Controller Boot Thread) JBoss AS 7.0.1.Final "Zap" started in 4692ms - Started 122 of 176 services (54 services are passive or on-demand)
一切看起来都很好,直到你开始查看176条服务的启动122的最后一行.其他54项服务怎么了?为什么服务器不启动其余服务?
解决方法:
JBoss AS 7懒洋洋地启动了一些服务.这意味着当你启动时(并因此占用宝贵的启动时间),它们并非全部启动,当它们可能永远不需要时.
例如.当您不在任何bean中使用计时器服务时,不需要启动它.当你从不使用JSF时,不需要进行初始化等.
这与Glassfish采用的方法相同,也是启动速度如此之快的原因之一.
标签:java,linux,java-ee,jboss,jboss7-x 来源: https://codeday.me/bug/20190530/1185218.html
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。