메뉴 건너뛰기

tnt_os

2008/08/27 13:23

This content is to describe how to change JBoss Application Server's port.
한꺼번에 JBoss AS의 적용 포트를 변경하는 방법을 설명합니다.
JBoss가 사용하는 포트는 이미 이전 글에서 설명되어 있습니다.

JBoss의 서비스 포트를 일률적으로 변경하고 싶은 경우 다음의 절차를 진행하십시오.
1. $SERVER_HOME/conf/jboss-service.xml 파일을 엽니다.
해당 파일의 service binding 영역을 찾아 주석을 풀도록 합니다.

<!-- ==================================================================== -->
   <!-- Service Binding                                                      -->
   <!-- ==================================================================== -->

   <!-- Automatically activated when generatting the clustering environment -->
   <!-- @TESTSUITE_CLUSTER_CONFIG@ -->

   <!--
      | Binding service manager for port/host mapping. This is a sample
      | config that demonstrates a JBoss instances with a server name 'ports-01'
      | loading its bindings from an XML file using the ServicesStoreFactory
      | implementation returned by the XMLServicesStoreFactory.
      |
      | ServerName: The unique name assigned to a JBoss server instance for
      | lookup purposes. This allows a single ServicesStore to handle mulitiple
      | JBoss servers.
      |
      | StoreURL: The URL string passed to org.jboss.services.binding.ServicesStore
      | during initialization that specifies how to connect to the bindings store.
      | StoreFactory: The org.jboss.services.binding.ServicesStoreFactory interface
      | implementation to create to obtain the ServicesStore instance.

   <mbean code="org.jboss.services.binding.ServiceBindingManager"
     name="jboss.system:service=ServiceBindingManager">
     <attribute name="ServerName">ports-01</attribute>
     <attribute name="StoreURL">${jboss.home.url}/docs/examples/binding-manager/sample-bindings.xml</attribute>
     <attribute name="StoreFactoryClassName">
       org.jboss.services.binding.XMLServicesStoreFactory
     </attribute>
   </mbean>
   -->

위의 설정파일에서는 port를 변경할 수 있는 파일이 sample-bindings.xml 에 정의되어 있다는 내용이 있습니다. 위의 파일 위치에 있는 설정 파일을 여십시오..

2. bindings.xml 파일을 열어 ServerName의 ports-01에 해당하는 태그를 찾습니다. 500라인 부근에 ports-01 속성값들이 해당 서버의 port정보를 모두 담고 있습니다. 필요한 port로 바꾸도록 합니다.

<!-- ********************************************************** -->
   <!-- *                          ports-01                      * -->
   <!-- ********************************************************** -->
   <server name="ports-01">

      <!-- EJB3 Remoting Connector ejb3.deployer/META-INF/jboss-service.xml -->

      <service-config name="jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3" delegateClass="org.jboss.services.binding.AttributeMappingDelegate">
        <delegate-config>
           <attribute name="InvokerLocator">socket://${jboss.bind.address}:3973</attribute>
        </delegate-config>
         <binding port="3973"/>
      </service-config>

      <!-- ********************* jboss-service.xml ****************** -->

      <service-config name="jboss:service=Naming" delegateClass="org.jboss.services.binding.AttributeMappingDelegate">
         <delegate-config portName="Port" hostName="BindAddress">
            <attribute name="RmiPort">1198</attribute>
         </delegate-config>
         <binding port="1199" host="${jboss.bind.address}"/>
      </service-config>


      <service-config name="jboss:service=WebService" delegateClass="org.jboss.services.binding.AttributeMappingDelegate">
         <delegate-config portName="Port"/>
         <binding port="8183"/>
      </service-config>

      <service-config name="jboss:service=invoker,type=jrmp" delegateClass="org.jboss.services.binding.AttributeMappingDelegate">
         <delegate-config portName="RMIObjectPort"/>
         <binding port="4544"/>
      </service-config>


      <service-config name="jboss:service=invoker,type=pooled" delegateClass="org.jboss.services.binding.AttributeMappingDelegate">
         <delegate-config portName="ServerBindPort"/>
         <binding port="4545"/>
      </service-config>

이하 생략
. . . . .

위의 xml tag 중 ServerName에 해당하는 값은 각 파일간에 서로 매핑되어 있어야 함은 당연합니다.

번호 제목 글쓴이 날짜 조회 수
31 ubuntu에서 cron process 현황조회 총관리자 2014.06.16 316
30 linux에 jboss설치하기 구퍼 2011.01.06 4077
29 jboss4.03에서 기본포트 80을 다른 포트로 변경하기 구퍼 2010.12.30 3497
28 USB 메모리나 하드에 WIndows XP 설치하기 (USB에 XP설치) 구퍼 2010.09.14 9258
27 회사에서 원격 데스크탑 포트가 막혀있을때 구퍼 2010.09.13 6814
» JBoss Application Server Port 일괄 변경 방법 총관리자 2010.06.16 8138
25 ipmate 2.1.1이 window7에서 레지스트리 읽기 오류발생시 해결 총관리자 2010.05.17 7575
24 콘솔 없는 유닉스서버 IP 변경하는 방법 구퍼 2009.11.02 3713
23 JBoss Hot Deploy , 핫 디플로이 설정 구퍼 2009.10.19 7357
22 jboss와 호환 jdk버젼 매트릭스 구퍼 2009.10.19 3285
21 JBOSS IP접근문제 하늘과컴 2007.12.04 4694
20 다른 데이터베이스를 이용하기 하늘과컴 2007.11.27 2331
19 connection 반납하지 않는 프로그램 확인방법 하늘과컴 2007.10.30 5641
18 servlet사용시 web.xml설정 내용 박상현 2007.03.08 4765
17 이클립스 웹로직 8.0 연동시 핫디플로이 박상현 2006.09.05 4984
16 라이브러리 링크정보를 보는 ldd 명령 원우석 2004.07.31 4812
15 ksh에서 리스트데이터를 차례대로 처리할때 원우석 2004.07.31 2967
14 Weblogic 8.1 에서 jsp 사용하기 박상현 2004.07.27 3477
13 내부 네트웍에서 특정 ip에 대한 정보 보기 박상현 2004.07.14 2570
12 문자열 조작명령어 원우석 2004.04.24 4083
위로