JBoss의 서비스 포트 정의
* JBoss의 서비스 포트 정의
- Service Binding Manager에 의해 포트 관리.
- binding set 이라고 하는 포트 구성 정보를 제공.
- 포트 충돌을 방지하고자 port-default 값에 100씩 증분하여 정의.
o JBoss service port set
|
port-default |
ports-01 |
ports-03 |
ports-04 |
JNDI |
1099 |
1199 |
1299 |
1399 |
HA-JNDI |
1100 |
1200 |
1300 |
1400 |
HTTP |
8080 |
8180 |
8280 |
8380 |
AJP |
8009 |
8109 |
8209 |
8309 |
RMI |
1090 |
1190 |
1290 |
1390 |
o JBoss 포트관리 예제
- 버전 : JBoss 6.1.0.Final - 위치 : conf/bindingervice.beans/META-INF/binding-beans.xml
<bean name="ServiceBindingManagementObject"
class="org.jboss.services.binding.managed.ServiceBindingManagementObject"> <constructor> <parameter>${jboss.service.binding.set:ports-default}</parameter> <parameter> <set> <inject bean="PortsDefaultBindings"/> <inject bean="Ports01Bindings"/> <inject bean="Ports02Bindings"/> <inject bean="Ports03Bindings"/> </set> </parameter> <!-- Base binding metadata that is used to create bindings for each set --> <parameter><inject bean="StandardBindings"/></parameter> </constructor> </bean> <!-- The ports-default bindings are obtained by taking the base bindings and adding 0 to each port value --> <bean name="PortsDefaultBindings" class="org.jboss.services.binding.impl.ServiceBindingSet"> <constructor> <parameter>ports-default</parameter> <parameter>${jboss.bind.address}</parameter> <parameter>0</parameter> <parameter><null/></parameter> </constructor> </bean> <!-- The ports-01 bindings are obtained by taking the base bindings and adding 100 to each port value --> <bean name="Ports01Bindings" class="org.jboss.services.binding.impl.ServiceBindingSet"> <constructor> <parameter>ports-01</parameter> <parameter>${jboss.bind.address}</parameter> <parameter>100</parameter> <parameter><null/></parameter> </constructor> </bean> |
by. 현주희