2016-09-19 1 views
0

안녕하세요, EAR 파일이 있고 Jboss 서버의 Jboss 독립 실행 형/배치 경로에 배치되었지만 문제가 없습니다. JBOSS가 EAR 파일을 인식하는 방법에 대해 의의가 있습니다. JBoss의 파일 배포 스캐너는 JBossJBOSS가 EAR 파일을 인식하는 방법

답변

2

는 : https://docs.jboss.org/author/display/AS7/Deployment+Scanner+configuration

당신은 standalone.xml를 통해 구성 할 수 있습니다.

기본적으로 새로운 배치 파일 (EAR, WAR, JAR)을 감지합니다 (파일이 이전에 존재하는 경우 수정 날짜가 최신인지 확인).

또한 earname.dodeploy, * .doundeploy와 같은 특수 파일을 사용하여 제어 할 수 있으며 파일이 무엇을하는지 나타내는 파일 (* .isdeploying, * .deployed)을 생성 할 수 있습니다.

0

배포 스캐너는 독립 실행 형 모드에서만 사용됩니다. 그 일은 디렉토리에서 새 파일을 모니터하고 그 파일을 전개하는 것입니다. 그것은 standalone.xml에서 찾을 수 있습니다

당신은 더 많은 지역에서 배포를 검색하기 위해 더 많은 배포 스캐너 항목을 정의 할 수 있습니다
<subsystem xmlns="urn:jboss:domain:deployment-scanner:1.0"> 
<deployment-scanner scan-interval="5000" 
    relative-to="jboss.server.base.dir" path="deployments" /> 
</subsystem> 

. 표시된 구성은 $ JBOSS_HOME/standalone/deployments 디렉토리를 5 초마다 검색합니다. 런타임 모델은 아래 그림과 XML에 지정되지 않은 속성에 대한 기본값을 사용합니다 :

[[email protected]:9999 /] /subsystem=deployment-scanner:read-resource(recursive=true) 
{ 
"outcome" => "success", 
"result" => {"scanner" => {"default" => { 
    "auto-deploy-exploded" => false, 
    "auto-deploy-zipped" => true, 
    "deployment-timeout" => 60L, 
    "name" => "default", 
    "path" => "deployments", 
    "relative-to" => "jboss.server.base.dir", 
    "scan-enabled" => true, 
    "scan-interval" => 5000 
}}} 
} 

배포 스캐너 서버를 시작하거나 추가하고 런타임에 제거 할 수 있습니다 전에 standalone.xml을 수정하여 추가 할 수 있습니다 CLI (명령 줄 인터페이스)를 사용하여.

[[email protected]:9999 /] /subsystem=deployment-scanner/scanner=new:add(scan-interval=10000,relative-to="jboss.server.base.dir",path="other-deployments") 
{"outcome" => "success"} 
[[email protected]:9999 /] /subsystem=deployment-scanner/scanner=new:remove            
{"outcome" => "success"} 

또한 검색 기능을 해제하기 위해 예를 들어, 그래서 당신은/독립

[[email protected]:9999 /] /subsystem=deployment-scanner/scanner=default:write-attribute(name="scan-enabled",value=false) 
{"outcome" => "success"} 
[[email protected]:9999 /] /subsystem=deployment-scanner:read-resource(recursive=true)         { 
"outcome" => "success", 
"result" => {"scanner" => {"default" => { 
    "auto-deploy-exploded" => false, 
    "auto-deploy-zipped" => true, 
    "deployment-timeout" => 60L, 
    "name" => "default", 
    "path" => "deployments", 
    "relative-to" => "jboss.server.base.dir", 
    "scan-enabled" => false, 
    "scan-interval" => 5000 
}}} 
} 

를 수행 제이보스 애플리케이션 서버 7 배포 디렉토리 배포가 수, 런타임에 속성입니다 변경할 수있는 위치 최종 사용자 (예 : 전쟁, 귀, 항아리, sar 파일)을 배치하여 서버 런타임에 자동 배치되도록 할 수 있습니다.

관련 문제