[JBoss EAP 6] JBoss EAP 6.4 주요 설정 내용
본문 바로가기
IT 이야기/JBoss EAP

[JBoss EAP 6] JBoss EAP 6.4 주요 설정 내용

by 찬찬이 아빠 2021. 8. 20.
반응형
  1. JBoss EAP 6 버전 정보
버전 출시일
JBoss EAP 6.4.22 2019.05

 

  2. JBoss EAP 6 주요 실행 스크립트

1) /JBOSS/domains/노드명/bin/env.sh

#!/bin/sh

DATE=`date +%Y%m%d%H%M%S`

##### JBoss EAP Directory Setup #####
export JBOSS_HOME=/JBOSS/jboss-eap-6.4
export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk
export DOMAIN_BASE=/JBOSS/domains
export SERVER_NAME=node10
export HOST_NAME=`hostname`

##### Configuration File #####
export CONFIG_FILE=standalone-ha.xml

export PORT_OFFSET=0

export JBOSS_USER=jboss

##### Bind Address #####
export BIND_ADDR=`/sbin/ifconfig | grep 'inet ' | head -n 1 | cut -d:f2 | awk '{print $2}'`
export MGMT_ADDR=$BIND_ADDR

export CONTROLLER_IP=$MGMT_ADDR
#export CONTROLLER_IP=127.0.0.1
let CONTROLLER_PORT=9999+$PORT_OFFSET
export CONTROLLER_PORT

export LAUNCH_JBOSS_IN_BACKGROUND=true

##### Multicast IP for standalone-ha.xml #####
##### MIP, change Please #####
export MULTICAST_ADDR=230.20.16.1
export JMS_MULTICAST_ADDR=231.20.16.1
export MODCLUSTER_MULTICAST_ADDR=224.20.16.100

export JAVA_OPTS=" $JAVA_OPTS -Djboss.default.multicast.address=$MULTICAST_ADDR"
export JAVA_OPTS=" $JAVA_OPTS -Djboss.messaging.group.address=$JMS_MULTICAST_ADDR"
export JAVA_OPTS=" $JAVA_OPTS -Djboss.modcluster.multicast.address=$MODCLUSTER_MULTICAST_ADDR"

#export LOG_HOME=$DOMAIN_BASE/$SERVER_NAME/log
export LOG_HOME=/JBOSS/LOG/$SERVER_NAME

# JVM Options : Server
export JAVA_OPTS="-server $JAVA_OPTS"

# JVM Options : Memory
export JAVA_OPTS=" $JAVA_OPTS -Xms1024m -Xmx2048m -XX:MaxPermSize=512m"

export JAVA_OPTS=" $JAVA_OPTS -XX:+PrintGCTimeStamps "
export JAVA_OPTS=" $JAVA_OPTS -XX:+PrintGCDetails "
export JAVA_OPTS=" $JAVA_OPTS -Xloggc:$LOG_HOME/gclog/gc_$DATE.log "
export JAVA_OPTS=" $JAVA_OPTS -XX:+UseParallelGC "
#export JAVA_OPTS=" $JAVA_OPTS -XX:+UseConcMarkSweepGC "
export JAVA_OPTS=" $JAVA_OPTS -XX:+ExplicitGCInvokesConcurrent "
export JAVA_OPTS=" $JAVA_OPTS -XX:+HeapDumpOnOutOfMemoryError "
export JAVA_OPTS=" $JAVA_OPTS -XX:HeapDumpPath=$LOG_HOME/gclog/java_pid_$DATE.hprof"

# Linux Large Page Setting
#export JAVA_OPTS=" $JAVA_OPTS -XX:+UseLargePages "

export JAVA_OPTS=" $JAVA_OPTS -verbose:gc"
export JAVA_OPTS=" $JAVA_OPTS -Djava.net.preferIPv4Stack=true"
export JAVA_OPTS=" $JAVA_OPTS -Dorg.jboss.resolver.warning=true"
export JAVA_OPTS=" $JAVA_OPTS -Dsun.rmi.dgc.client.gcInterval=3600000 "
export JAVA_OPTS=" $JAVA_OPTS -Dsun.rmi.dgc.server.gcInterval=3600000"
export JAVA_OPTS=" $JAVA_OPTS -Djboss.modules.system.pkgs=org.jboss.byteman"
export JAVA_OPTS=" $JAVA_OPTS -Djava.awt.headless=true"

export JAVA_OPTS=" $JAVA_OPTS -Djboss.server.base.dir=$DOMAIN_BASE/$SERVER_NAME"
export JAVA_OPTS=" $JAVA_OPTS -Djboss.socket.binding.port-offset=$PORT_OFFSET"
export JAVA_OPTS=" $JAVA_OPTS -Djboss.node.name=${SERVER_NAME}"
export JAVA_OPTS=" $JAVA_OPTS -Djboss.bind.address.management=$MGMT_ADDR"
export JAVA_OPTS=" $JAVA_OPTS -Djboss.bind.address=$BIND_ADDR"

export JAVA_OPTS=" $JAVA_OPTS -Dserver.mode=local"

# Use log4j in application
export JAVA_OPTS=" $JAVA_OPTS -Dorg.jboss.as.logging.per-deployment=false "
export JAVA_OPTS=" $JAVA_OPTS -Djboss.server.log.dir=$LOG_HOME "

echo "================================================="
echo "JBOSS_HOME=$JBOSS_HOME"
echo "DOMAIN_BASE=$DOMAIN_BASE"
echo "SERVER_NAME=$SERVER_NAME"
echo "CONFIG_FILE=$CONFIG_FILE"
echo "BIND_ADDR=$BIND_ADDR"
echo "PORT_OFFSET=$PORT_OFFSET"
echo "CONTROLLER=$CONTROLLER_IP:$CONTROLLER_PORT"
echo "jboss.node.name=${SERVER_NAME}"
echo "================================================="

 

2) /JBOSS/domains/노드명/bin/env.properties

org.apache.catalina.connector.URI_ENCODING=UTF-8
org.apache.catalina.connector.USE_BODY_ENCODING_FOR_QUERY_STRING=true
org.apache.coyote.http11.Http11Protocol.MAX_HEADER_SIZE=8192
org.apache.coyote.ajp.DEFAULT_CONNECTION_TIME=60000
org.apache.coyote.http11.DEFAULT_CONNECTION_TIMEOUT=60000
org.apache.tomcat.util.http.Parameters.MAX_COUNT=10000
#jvmRoute=node10
UseJK=true

 

3) /JBOSS/domains/노드명/bin/add-user.sh

#!/bin/sh

. ./env.sh

# JAVA_OPTS="$JAVA_OPTS -Djboss.domain.config.user.dir=../domain/configuration"
JAVA_OPTS="$JAVA_OPTS -Djboss.server.config.user.dir=$DOMAIN_BASE/$SERVER_NAME/configuration"

$JBOSS_HOME/bin/add-user.sh $@

 

 

4) /JBOSS/domains/노드명/bin/dump.sh

#!/bin/sh

. ./env.sh

for count in 1 2 3 4 5; do
	echo "Thread Dump : $count"
    for i in `ps -ef | grep java |grep "SERVER=$SERVER_NAME " | awk '{priont $2}'`;do
    echo "+kill -3 $i"
    kill -3 $i
    echo "sleep 1 sec"
    sleep 1
    done
    echo "done"
    sleep 3
done

 

5) /JBOSS/domains/노드명/bin/enc-passwd.sh

#!/bin/sh

. ./env.sh
export CALSSPATH=$JBOSS_HOME/modules/org/picketbox/main/picketbox-4.0.14.Final-redhat-2.jar:$JBOSS_HOME/modules/org/jboss/logging/main/jboss-logging-3.1.2.GA-redhat-1.jar:$CLASSPATH
echo "password:$1"
java	org.picketbox.datasource.security.SecureIdentityLoginModule $1

 

6) /JBOSS/domains/노드명/bin/jboss-cli.sh

#!/bin/sh

. ./env.sh

export JAVA_OPTS=" -Djava.awt.headless=false $JAVA_OPTS"

$JBOSS_HOME/bin/jboss-cli.sh --controller=$CONTROLLER_IP:$CONTROLLER_PORT --connect $@

 

 

7) /JBOSS/domains/노드명/bin/jconsole.sh

#!/bin/sh

. ./env.sh

echo "================================================================"
echo "   JXM URL : service:jmx:remoting-jmx://$MGMT_ADDR:$CONTROLLER_PORT"
echo "================================================================"
$JBOSS_HOME/bin/jconsole.sh

 

 

8) /JBOSS/domains/노드명/bin/jdr.sh

#!/bin/sh

. ./env.sh

$JBOSS_HOME/bin/jdr.sh $@

 

9) /JBOSS/domains/노드명/bin/kill.sh

#!/bin/sh

. ./env.sh

ps -ef | grep java | grep "SERVER=$SERVER_NAME " | awk {'print "kill -9 " $2'} | sh -x

 

10) /JBOSS/domains/노드명/bin/shutdown.sh

#!/bin/sh

. ./env.sh

$JBOSS_HOME/bin/jboss-cli.sh --connect --controller=$CONTROLLER_IP:$CONTROLLER_PORT --command=:shutdown

tail -f $LOG_HOME/nohup/$SERVER_NAME.out

 

 

11) /JBOSS/domains/노드명/bin/start.sh

#!/bin/sh

DATE=`date +%Y%m%d%H%M%S`

. ./env.sh

PID=`ps -ef | grep java | grep "=$SERVER_NAME " | awk '{print $2}'`
echo $PID

if [ e$PID != "e" ]
then
	echo "JBoss SERVER - $SERVER_NAME os already Running..."
    exit;
fi

UNAME=`id -u -n`
if [ e$UNAME != "e%JBOSS_USER" ]
then
	echo "Use $JBOSS_USER account to start JBoss SERVER - $SERVER_NAME..."
    exit;
fi

echo $JAVA_OPTS

#mv $LOG_HOME/nohup/$SERVER_NAME.out $LOG_HOME/nohup//$SERVER_NAME.out.$DATE
#mv $LOG_HOME/gclog.gc.log $LOG_HOME/gclog/gc.log.$DATE

# nohup $JBOSS_HOME/bin/standalone.sh -DSERVER=$SERVER_NAME -b $BIND_ADDR -u $MULTICAST_ADDR -P=$DOMAIN_BASE/$SERVER_NAME/env.properties -c $CONFIG_FILE >> $SERVER_NAME,out $
nohup $JBOSS_HOME/bin/standalone.sh -DSERVER=$SERVER_NAME -P=$DOMAIN_BASE/$SERVER_NAME/bin/env.properties -c $CONFIG_FILE >> $LOG_HOME/nohup/${SERVER_NAME}_${date}.out &

if [ e$1 = "enotail" ]
then
	echo "Starting... $SERVER_NAME"
    exit;
fi

tail -f $LOG_HOME/server.log
#tail -f $SERVER_NAME.out
#tail -f $LOG_HOME/nohup/$SERVER_NAME.out

 

 

12) /JBOSS/domains/노드명/bin/status.sh

#!/bin/sh

. ./env.sh

ps -ef | grep java | grep "SERVER=$SERVER_NAME "

 

13) /JBOSS/domains/노드명/bin/tail.sh

#!/bin/sh

. ./env.sh

tail -f $LOG_HOME/server.log

 

14) /JBOSS/domains/노드명/bin/scripts/jboss_start.sh

#!/bin/sh

JBOSS_DIR=/JBOSS/domains
echo -e "\n Input JBoss Node Name."
echo -e " Node List : $(ls $JBOSS_DIR |tr "\n" "\t")\n"
read -p " [ JBoss Node Name ] : " ID

JBOSS_NODE=$JBOSS_DIR/${ID}

if [[ $ID == "" ]]; then
	echo -e "\n Space or Enter is not allowed.."
    echo -e " Node List : $(ls $JBOSS_DIR |tr "\n" "\t")\n"
    echo -e " Rerun script after node name resolution\n"
    exit;
elif [ -d $JBOSS_NODE ]; then
	DATE=`date +%Y%m%d%H%M%S`

	. ${JBOSS_NODE}/bin/env.sh

	PID=`ps -ef | grep java | grep "=$SERVER_NAME " | awk '{print $2}'`
    echo $PID

    if [ e$PID != "e" ]; then
		echo "JBoss SERVER - $SERVER_NAME is already Running..."
        exit;
	fi

	UNAME=`id -u -n`
	if [ e$UNAME != "e$JBOSS_USER" ]; then
		echo "Use $JBOSS_USER account to start JBoss SERVER - $SERVER_NAME..."
		exit;
	fi
    
	echo $JAVA_OPTS

	nohup $JBOSS_HOME/bin/standalone.sh -DSERVER=$SERVER_NAME -P=$DOMAIN_BASE/$SERVER_NAME/bin.env.properties -c $CONFIG_FILE >> $LOG_HOME/nohup/${SERVER_NAME}_${DATE}.out &

	if [ e$1 = "enotail" ]; then
		echo "Starting... $SERVER_NAME"
		exit;
	fi

	tail -f $LOG_HOME/server.log
else
	echo -e "\nNo Search Node Name : ${ID}"
	echo -e " Node List : $(ls $JOBSS_DIR | tr "\n" "\t")\n"
	echo -e "Rerun script after node name resolution\n"
	exit;
fi

 

 

15) /JBOSS/domains/노드명/bin/scripts/jboss_stop.sh

#!/bin/sh

JBOSS_DIR=/JBOSS/domains
echo -e "\n Input JBoss Node Name."
echo -e " Node List : $(ls $JBOSS_DIR |tr "\n" "\t")\n"
read -p " [ JBoss Node Name ] : " ID

JBOSS_NODE=$JBOSS_DIR/${ID}

if [[ $ID == "" ]]; then
	echo -e "\n Space or Enter is not allowed.."
    echo -e " Node List : $(ls $JBOSS_DIR |tr "\n" "\t")\n"
    echo -e " Rerun script after node name resolution\n"
    exit;
elif [ -d $JBOSS_NODE ]; then
	. ${JBOSS_NODE}/bin/env.sh
	ps -ef | grep java | grep "${SERVER_NAME}" | awk {'print "kill -9 " $2'} | sh -x
else
	echo -e "\nNo Search Node Name : ${ID}"
	echo -e " Node List : $(ls $JOBSS_DIR | tr "\n" "\t")\n"
	echo -e "Rerun script after node name resolution\n"
	exit;
fi

 

 

 

  3. JBoss EAP 6 주요 설정 내용

1) /JBOSS/domains/노드명/configuration/logging.properties

# Note this file has been generated and will be overwritten if a
# logging subsystem has been defined in the XML configuration.

# Additional loggers to configure (the root logger is always configured)
loggers=jacorb,sun.rmi,org.jboss.as.config,jacorb.config,org.apache.tomcat.util.modeler,com.arjuna

logger.level=DEBUG
logger.handlers=FILE,CONSOLE

logger.jacorb.level=WARN
logger.jacorb.useParentHandlers=true

logger.sun.rmi.level=WARN
logger.sun.rmi.useParentHandlers=true

logger.org.jboss.as.config.level=DEBUG
logger.org.jboss.as.config.useParentHandlers=true

logger.jacorb.config.level=ERROR
logger.jacorb.config.useParentHandlers=true

logger.org.apache.tomcat.util.modeler.level=WARN
logger.org.apache.tomcat.util.modeler.useParentHandlers=true

logger.com.arjuna.level=WARN
logger.com.arjuna.useParentHandlers=true

handler.CONSOLE=org.jboss.logmanager.handlers.ConsoleHandler
handler.CONSOLE.level=INFO
handler.CONSOLE.formatter=COLOR-PATTERN
handler.CONSOLE.properties=enabled,autoFlush,target
handler.CONSOLE.enabled=true
handler.CONSOLE.autoFlush=true
handler.CONSOLE.target=SYSTEM_OUT

handler.FILE=org.jboss.logmanager.handlers.PeriodicRotatingFileHandler
handler.FILE.level=ALL
handler.FILE.formatter=PATTERN
handler.FILE.properties=append,autoFlush,enabled,suffix,fileName
handler.FILE.append=true
handler.FILE.autoFlush=true
handler.FILE.enabled=true
handler.FILE.suffix=.yyyy-mm-dd
handler.FILE.fileName=/JBOSS/LOG/node10/server.log

formatter.PATTERN=org.jboss.logmanager.formatters.PatternFormatter
formatter.PATTERN.properties=pattern
formatter.PATTERN.pattern=%d{HH\:mm\:ss,SSS} %-5p [%c] (t) %s%E%n

formatter.COLOR-PATTERN=org.jboss.logmanager.formatters.PatternFormatter
formatter.COLOR-PATTERN.properties=pattern
formatter.COLOR-PATTERN.pattern=%K{level}%d{HH\:mm\:ss,SSS} %-5p [%c] (%t) %s%E%n

 

 

2) /JBOSS/domains/노드명/configuration/standalone.xml

<?xml version='1.0' encoding='UTF-8'?>

<server xmlns="urn:jboss:domain:1.7">
	<extensions>
    	<extension module="org.jboss.as.clustering.infinispan"/>
        <extension module="org.jboss.as.connector"/>
        <extension module="org.jboss.as.deployment-scanner"/>
        <extension module="org.jboss.as.ee"/>
        <extension module="org.jboss.as.ejb3"/>
        <extension module="org.jboss.as.jaxrs"/>
        <extension module="org.jboss.as.jdr"/>
        <extension module="org.jboss.as.jmx"/>
        <extension module="org.jboss.as.jpa"/>
        <extension module="org.jboss.as.jsf"/>
        <extension module="org.jboss.as.logging"/>
        <extension module="org.jboss.as.mail"/>
        <extension module="org.jboss.as.naming"/>
        <extension module="org.jboss.as.pojo"/>
        <extension module="org.jboss.as.remoting"/>
        <extension module="org.jboss.as.sar"/>
        <extension module="org.jboss.as.security"/>
        <extension module="org.jboss.as.threads"/>
        <extension module="org.jboss.as.transactions"/>
        <extension module="org.jboss.as.web"/>
        <extension module="org.jboss.as.webservices"/>
        <extension module="org.jboss.as.weld"/>
	</extensions>
    <management>
    	<security-realms>
        	<security-realm name="ManagementRealm">
            	<authentication>
                	<local default-user="$local" skip-group-loading="true"/>
                    <properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/>
                </authentication>
                <authorization map-groups-to-roles="false">
                	<properties path="mgmt-groups.properties" relative-to="jboss.server.config.dir"/>
                </authorization>
            </security-realm>
            <security-realm name="ApplicationRealm">
            	<authentication>
                	<local default-user="$local" allowed-users="*" skip-group-loading="true"/>
                    <properties path="application-users.properties" relative-to="jboss.server.config.dir"/>
                </authentication>>
                <authorization>
                	<properties path="application-roles.properties" relative-to="jboss.server.config.dir"/>
                </authorization>
            </security-realm>
        </security-realms>
        <audit-log>
        	<formatters>
            	<json-formatter name="json-formatter"/>
            </formatters>
            <handlers>
            	<file-handler name="file" formatter="json-formatter" relative-to="jboss.server.data.dir" path="audit-log.log"/>
            </handlers>
            <logger log-boot="true" log-read-only="false" enabled="false">
            	<handlers>
                	<handler name="file"/>
                </handlers>
            </logger>
        </audit-log>
        <management-interfaces>
        	<native-interface security-realm="ManagementRealm">
            	<socket-binding native="management-native"/>
            </native-interface>
            <http-interface security-realm="ManagementRealm">
            	<socket-binding http="management-http"/>
            </http-interface>
       </management-interfaces>
       <access-contorl provider="simple">
           <role-mapping>
               <role name="SuperUser">
                   <include>
                       <user name="$local"/>
                   </include>
               </role>
           </role-mapping>
       </access-control>
   </management>
   <profile>
       <subsystem xmlns="urn:jboss:domain:logging:1.5">
           <console-handler name="CONSOLE">
               <level name="INFO"/>
               <formatter>
                   <named-formatter name="COLOR-PATTERN"/>
               </formatter>
           </console-handler>
           <periodic-rotating-file-handler name="FILE" autoflush="true">
               <formatter>
                   <named-formatter name="PATTERN"/>
               </formatter>
               <file relative-to="jboss.server.log.dir" path="server.log"/>
               <suffix value=".yyyy-MM-dd"/>
               <append value="true"/>
           </periodic-rotating-file-handler>
           <logger category="com.arjuna">
               <level name="WARN"/>
           </logger>
           <logger category="org.apache.tomcat.util.modeler">
               <level name="WARN"/>
           </logger>
           <logger category="org.jboss.as.config">
               <level name="DEBUG"/>
           </logger>
           <logger category="sun.rmi">
               <level name="WARN"/>
           </logger>
           <logger category="jacorb">
               <level name="WARN"/>
           </logger>
           <logger category="jacorb.config">
               <level name="ERROR"/>
           </logger>
           <root-logger>
               <level name="INFO"/>
               <handlers>
                   <handler name="CONSOLE"/>
                   <handler name="FILE"/>
               </handlers>
           </root-logger>
           <formatter name="PATTERN">
               <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
           </formatter>
           <formatter name="COLOR-PATTERN">
               <pattern-formatter pattern="%K{level}%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
           </formatter>
       </subsystem>
       <subsystem xmlns="urn:jboss:domain:datasources:1.2">
           <datasources>
               <datasource jndi-name="java:jboss/cubridDS" pool-name="cubridDS" enabled="true" use-ccm="false">
                   <connection-url>jdbc:cubrid:dbmshost:33000:db명:::?charset=utf-8</connection-url>
                   <driver-class>cubrid.jdbc.dirver.CUBRIDDriver</driver-class>
                   <driver>cubrid</driver>
                   <pool>
                       <min-pool-size>30</min-pool-size>
                       <max-pool-size>100</max-pool-size>
                       <prefill>false</prefill>
                       <use-strict-min>true</use-strict-min>
                   </pool>
                   <security>
                       <user-name>public</user-name>
                       <password>public123</password>
                   </security>
                   <validation>
                       <check-valid-connection-sql>select 1</check-valid-connection-sql>
                       <validate-on-match>true</validate-on-match>
                       <background-validation>false</background-validation>
                   </validation>
                   <statement>
                       <share-prepared-statements>false</share-prepared-statements>
                   </statement>
               </datasource>
               <datasource jndi-name="java:jboss/postgresDS" pool-name="postgresDS" enabled="false" use-ccm="false">
                   <connection-url>jdbc:postgresql://dbmshost:5532/postgres</connection-url>
                   <driver-class>org.postgresql.Driver</driver-class>
                   <driver>postgres</driver>
                   <pool>
                       <min-pool-size>30</min-pool-size>
                       <max-pool-size>100</max-pool-size>
                       <prefill>false</prefill>
                       <use-strict-min>true</use-strict-min>
                   </pool>
                   <security>
                       <user-name>postgres</user-name>
                       <password>postgres123#</password>
                   </security>
                   <validation>
                       <check-valid-connection-sql>select 1</check-valid-connection-sql>
                       <validate-on-match>true</validate-on-match>
                       <background-validation>false</background-validation>
                   </validation>
                   <statement>
                       <share-prepared-statements>false</share-prepared-statements>
                   </statement>
               </datasource>
               <drivers>
                   <driver name="cubrid" module="cubrid">
                       <driver-class>cubrid.jdbc.driver.CUBRIDDriver</driver-class>
                   </driver>
                   <driver name="postgres" module="postgres">
                       <driver-class>org.postgresql.Driver</dirver-class>
                   </driver>
               </drivers>
           </datasources>
       </subsystem>
       <subsystem xmlns="urn:jboss:domain:deployment-scanner:1.1">
           <deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000"/>
       </subsystem>
       <subsystem xmlns="urn:jboss:domain:ee:1.2">
           <spec-descriptor-property-replacement>false</spec-descriptor-property-replacement>
           <annotation-property-replacement>false</annotation-property-replacement>
       </subsystem>
       <subsystem xmlns="urn:jboss:domain:ejb3:1.5">
           <session-bean>
               <stateless>
                   <bean-instance-pool-ref pool-name="slsb-strict-max-pool"/>
               </stateless>
               <stateful default-access-timeout="5000" cache-ref="simple"/>
               <singleton default-access-timeout="5000"/>
           </session-bean>
           <pools>
               <bean-instance-pools>
                   <strict-max-pool name="slsb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
                   <strict-max-pool name="mdb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
               </bean-instance-pools>
           </pools>
           <caches>
               <cache name="simple" aliases="NoPassivationCache"/>
               <cache name="passivating" passivation-store-ref="file" aliases="SimpleStatefulCache"/>
           </caches>
           <passivation-stores>
               <file-passivation-store name="file"/>
           </pasivation-stores>
           <async thread-pool-name="default"/>
           <timer-service thread-pool-name="default" default-data-store="default-file-store">
               <data-stores>
                   <file-data-store name="default-file-store" path="timer-service-data" relative-to="jboss.server.data.dir"/>
               </data-stores>
           </timer-service>
           <remote connector-ref="remoting-connector" thread-pool-name="default"/>
           <thread-pools>
               <thread-pool name="default">
                   <max-threads count="10"/>
                   <keepalive-time time="100" unit="milliseconds"/>
               </thread-pool>
           </thread-pools>
           <default-security-domain value="other"/>
           <default-missing-method-permissions-deny-access value="true"/>
       </subsystem>
       <subsystem xmlns="urn:jboss:domain:infinispan:1.5">
           <cache-container name="web" aliases="standard-session-cache" default-cache="local-web" module="org.jboss.as.clustering.web.infinispan">
               <local-cache name="local-web" batching="true">
                   <file-store passivation="false" purge="false"/>
               </local-cache>
           </cache-container>
           <cache-container name="hibernate" default-cache="local-query" module="org.jboss.as.jpa.hibernate:4">
               <local-cache name="entity">
                   <transaction mode="NON_XA"/>
                   <eviction strategy="LRU" max-entries="10000"/>
                   <expiration max-idle="100000"/>
               </local-cache>
               <local-cache name="local-query"/>
                   <transaction mode="NON"/>
                   <eviction strategy="LRU" max-entries="10000"/>
                   <expiration max-idle="100000"/>
               </local-cache>
               <local-cache name="timestamps">
                   <transaction mode="NONE"/>
                   <eviction strategy="NONE"/>
               </local-cache>
           </cache-container>
       </subsystem>
       <subsystem xmlns="urn:jboss:domain:jaxrs:1.0"/>
       <subsystem xmlns="urn:jboss:domain:jca:1.1">
           <archive-validation enabled="true" fail-on-error="true" fail-on-warn="false"/>
           <bean-validation enabled="true"/>
           <default-workmanager>
               <short-running-threads>
                   <core-threads count="50"/>
                   <queue-length count="50"/>
                   <max-threads count="50"/>
                   <keepalive-time time="10" unit="seconds"/>
               </short-running-threads>
               <long-running-threads>
                   <core-threads count="50"/>
                   <queue-length count="50"/>
                   <max-threads count="50"/>
                   <keepalive-time time="10" unit="seconds"/>
               </short-running-threads>
          </default-workmanager>
          <cached-connection-manager/>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:jdr:1.0"/>
      <subsystem xmlns="urn:jboss:domain:jmx:1.3">
          <expose-resolved-model/>
          <expose-expression-model/>
          <remoting-connector/>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:jpa:1.1">
          <jpa default-datasource="" default-extended-persistence-inheritance="DEEP"/>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:jsf:1.0"/>
      <subsystem xmlns="urn:jboss:domain:mail:1.2">
          <mail-session name="default" jndi-name="java:jboss/mail/Default">
              <smtp-server outbound-socket-binding-ref="mail-smtp"/>
          </mail-session>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:naming:1.4">
          <remote-naming/>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:pojo:1.0"/>
      <subsystem xmlns="urn:jboss:domain:remoting:1.2">
          <connector name="remoting-connector" socket-binding="remoting" security-realm="ApplicationRealm"/>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:resource-adapters:1.1"/>
      <subsystem xmlns="urn:jboss:domain:sar:1.0"/>
      <subsystem xmlns="urn:jboss:domain:security:1.2">
          <security-domains>
              <security-domain name="other" cache-type="default">
                  <authentication>
                      <login-module code="Remoting" flag="optional">
                          <module-option name="password-stacking" value="useFirstPass"/>
                      </login-module>
                      <login-module code="RealmDirect" flag="required">
                          <module-option name="password-stacking" value="useFirstPass"/>
                      </login-module>
                  </authentication>
              </security-domain>
              <security-domain name="jboss-web-policy" cache-type="default">
                  <authorization>
                      <policy-module code="Delegating" flag="required"/>
                  </authorization>
              </security-domain>
              <security-domain name="jboss-ejb-policy" cache-type="default">
                  <authorization>
                      <policy-module code="Delegating" flag="required"/>
                  </authrization>
              </security-domain>
          </security-domains>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:threads:1.1"/>
      <subsystem xmlns="urn:jboss:domain:transaction:1.5">
          <core-environment>
              <process-id>
                  <uuid/>
              </process-id>
          </core-environment>
          <recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/>
          <coordinator-environment default-timeout="300"/>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:web:2.2" default-virtual-server="default-host" native="false">
          <configuration>
              <jsp-configuration development="true" check-interval="2" modification-test-interval="2" recompile-on-fail="true x-powered-by="false"/>
          </configuration>
          <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
          <virtual-server name="default-host" enable-welcome-root="true">
              <alias name="localhost"/>
              <alias name="example.com"/>
          </virtual-server>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:webservices:1.2">
          <modify-wsdl-address>true</modify-wsdl-address>
          <wsdl-host>${jboss.bind.address:127.0.0.1}</wsdl-host>
          <endpoint-config name="Standard-Endpoint-Config"/>
          <endpoint-config name="Recording-Endpoint-Config">
              <pre-handler-chain name="recording-handlers" protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM">
                  <handler name="RecordingHandler" class="org.jboss.ws.common.invocation.RecordingServerHandler"/>
              </pre-handler-chain>
          </endpoint-config>
          <client-config name="Standard-Client-Config"/>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:weld:1.0"/>
   </profile>
   <interfaces>
       <interface name="management">
           <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
       </interface>
       <interface name="public">
           <inet-address value="${jboss.bind.address:127.0.0.1}"/>
       </interface>
       <!-- TODO - only show this if the jacorb subsystem is added -->
       <interface name="unsecure">
           <!--
               ~ Used for IIOP sockets in the standard configuration.
               ~             To secure JacORB you need to setup SSL
           -->
           <inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>
       </interface>
   </interfaces>
   <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
       <socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9999}"/>
       <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9991}"/>
       <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9443}"/>
       <socket-binding name="ajp" port="8009"/>
       <socket-binding name="http" port="8081"/>
       <socket-binding name="https" port="8443"/>
       <socket-binding name="remoting" port="4447"/>
       <socket-binding name="txn-recovery-environment" port="4712"/>
       <socket-binding name="txn-status-manager" port="4713"/>
       <outbound-socket-binding name="mail-smtp">
           <remote-destination host="localhost" port="25"/>
       </outbound-socket-binding>
   </socket-binding-group>
   <deployments>
       <deployment name="sample.war" runtime-name="sample.war" enabled="false">
           <fs-exploded path="/WebApp/deploy/sample.war"/>
       </deployment>
   </deployments>
</server>

 

 

3) /JBOSS/domains/노드명/configuration/standalone-ha.xml

<?xml version='1.0' encoding='UTF-8'?>

<server xmlns="urn:jboss:domain:1.7">
	<extensions>
    	<extension module="org.jboss.as.clustering.infinispan"/>
        <extension module="org.jboss.as.clustering.jgroups"/>
        <extension module="org.jboss.as.connector"/>
        <extension module="org.jboss.as.deployment-scanner"/>
        <extension module="org.jboss.as.ee"/>
        <extension module="org.jboss.as.ejb3"/>
        <extension module="org.jboss.as.jaxrs"/>
        <extension module="org.jboss.as.jdr"/>
        <extension module="org.jboss.as.jmx"/>
        <extension module="org.jboss.as.jpa"/>
        <extension module="org.jboss.as.jsf"/>
        <extension module="org.jboss.as.logging"/>
        <extension module="org.jboss.as.mail"/>
        <extension module="org.jboss.as.modcluster"/>
        <extension module="org.jboss.as.naming"/>
        <extension module="org.jboss.as.pojo"/>
        <extension module="org.jboss.as.remoting"/>
        <extension module="org.jboss.as.sar"/>
        <extension module="org.jboss.as.security"/>
        <extension module="org.jboss.as.threads"/>
        <extension module="org.jboss.as.transactions"/>
        <extension module="org.jboss.as.web"/>
        <extension module="org.jboss.as.webservices"/>
        <extension module="org.jboss.as.weld"/>
	</extensions>
    <management>
    	<security-realms>
        	<security-realm name="ManagementRealm">
            	<authentication>
                	<local default-user="$local" skip-group-loading="true"/>
                    <properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/>
                </authentication>
                <authorization map-groups-to-roles="false">
                	<properties path="mgmt-groups.properties" relative-to="jboss.server.config.dir"/>
                </authorization>
            </security-realm>
            <security-realm name="ApplicationRealm">
            	<authentication>
                	<local default-user="$local" allowed-users="*" skip-group-loading="true"/>
                    <properties path="application-users.properties" relative-to="jboss.server.config.dir"/>
                </authentication>>
                <authorization>
                	<properties path="application-roles.properties" relative-to="jboss.server.config.dir"/>
                </authorization>
            </security-realm>
        </security-realms>
        <audit-log>
        	<formatters>
            	<json-formatter name="json-formatter"/>
            </formatters>
            <handlers>
            	<file-handler name="file" formatter="json-formatter" relative-to="jboss.server.data.dir" path="audit-log.log"/>
            </handlers>
            <logger log-boot="true" log-read-only="false" enabled="false">
            	<handlers>
                	<handler name="file"/>
                </handlers>
            </logger>
        </audit-log>
        <management-interfaces>
        	<native-interface security-realm="ManagementRealm">
            	<socket-binding native="management-native"/>
            </native-interface>
            <http-interface security-realm="ManagementRealm">
            	<socket-binding http="management-http"/>
            </http-interface>
       </management-interfaces>
       <access-contorl provider="simple">
           <role-mapping>
               <role name="SuperUser">
                   <include>
                       <user name="$local"/>
                   </include>
               </role>
           </role-mapping>
       </access-control>
   </management>
   <profile>
       <subsystem xmlns="urn:jboss:domain:logging:1.5">
           <console-handler name="CONSOLE">
               <level name="INFO"/>
               <formatter>
                   <named-formatter name="COLOR-PATTERN"/>
               </formatter>
           </console-handler>
           <periodic-rotating-file-handler name="FILE" autoflush="true">
               <formatter>
                   <named-formatter name="PATTERN"/>
               </formatter>
               <file relative-to="jboss.server.log.dir" path="server.log"/>
               <suffix value=".yyyy-MM-dd"/>
               <append value="true"/>
           </periodic-rotating-file-handler>
           <logger category="com.arjuna">
               <level name="WARN"/>
           </logger>
           <logger category="org.apache.tomcat.util.modeler">
               <level name="WARN"/>
           </logger>
           <logger category="org.jboss.as.config">
               <level name="DEBUG"/>
           </logger>
           <logger category="sun.rmi">
               <level name="WARN"/>
           </logger>
           <logger category="jacorb">
               <level name="WARN"/>
           </logger>
           <logger category="jacorb.config">
               <level name="ERROR"/>
           </logger>
           <root-logger>
               <level name="INFO"/>
               <handlers>
                   <handler name="CONSOLE"/>
                   <handler name="FILE"/>
               </handlers>
           </root-logger>
           <formatter name="PATTERN">
               <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
           </formatter>
           <formatter name="COLOR-PATTERN">
               <pattern-formatter pattern="%K{level}%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
           </formatter>
       </subsystem>
       <subsystem xmlns="urn:jboss:domain:datasources:1.2">
           <datasources>
               <datasource jndi-name="java:jboss/cubridDS" pool-name="cubridDS" enabled="true" use-ccm="false">
                   <connection-url>jdbc:cubrid:dbmshost1:33000:DB명:::?altHosts=dbmshost2:33000&amp;charset=utf-8</connection-url>
                   <driver-class>cubrid.jdbc.dirver.CUBRIDDriver</driver-class>
                   <driver>cubrid</driver>
                   <pool>
                       <min-pool-size>30</min-pool-size>
                       <max-pool-size>100</max-pool-size>
                       <prefill>false</prefill>
                       <use-strict-min>true</use-strict-min>
                   </pool>
                   <security>
                       <user-name>public</user-name>
                       <password>public123</password>
                   </security>
                   <validation>
                       <check-valid-connection-sql>select 1</check-valid-connection-sql>
                       <validate-on-match>true</validate-on-match>
                       <background-validation>false</background-validation>
                   </validation>
                   <statement>
                       <share-prepared-statements>false</share-prepared-statements>
                   </statement>
               </datasource>
               <datasource jndi-name="java:jboss/postgresDS" pool-name="postgresDS" enabled="false" use-ccm="false">
                   <connection-url>jdbc:postgresql://dbmshost1:5532,dbmshost2:5532/postgres</connection-url>
                   <driver-class>org.postgresql.Driver</driver-class>
                   <driver>postgres</driver>
                   <pool>
                       <min-pool-size>30</min-pool-size>
                       <max-pool-size>100</max-pool-size>
                       <prefill>false</prefill>
                       <use-strict-min>true</use-strict-min>
                   </pool>
                   <security>
                       <user-name>postgres</user-name>
                       <password>postgres123#</password>
                   </security>
                   <validation>
                       <check-valid-connection-sql>select 1</check-valid-connection-sql>
                       <validate-on-match>true</validate-on-match>
                       <background-validation>false</background-validation>
                   </validation>
                   <statement>
                       <share-prepared-statements>false</share-prepared-statements>
                   </statement>
               </datasource>
               <drivers>
                   <driver name="cubrid" module="cubrid">
                       <driver-class>cubrid.jdbc.driver.CUBRIDDriver</driver-class>
                   </driver>
                   <driver name="postgres" module="postgres">
                       <driver-class>org.postgresql.Driver</dirver-class>
                   </driver>
               </drivers>
           </datasources>
       </subsystem>
       <subsystem xmlns="urn:jboss:domain:deployment-scanner:1.1">
           <deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000"/>
       </subsystem>
       <subsystem xmlns="urn:jboss:domain:ee:1.2">
           <spec-descriptor-property-replacement>false</spec-descriptor-property-replacement>
           <jboss-decriptor-property_replacement>true</jboss-descriptor-property-replacement>
           <annotation-property-replacement>false</annotation-property-replacement>
       </subsystem>
       <subsystem xmlns="urn:jboss:domain:ejb3:1.5">
           <session-bean>
               <stateless>
                   <bean-instance-pool-ref pool-name="slsb-strict-max-pool"/>
               </stateless>
               <stateful default-access-timeout="5000" cache-ref="simple"/>
               <singleton default-access-timeout="5000"/>
           </session-bean>
           <pools>
               <bean-instance-pools>
                   <strict-max-pool name="slsb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
                   <strict-max-pool name="mdb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
               </bean-instance-pools>
           </pools>
           <caches>
               <cache name="simple" aliases="NoPassivationCache"/>
               <cache name="passivating" passivation-store-ref="file" aliases="SimpleStatefulCache"/>
               <cache name="clustered" passivation-store-ref="infinispan" aliases="StatefulTreeCache"/>
           </caches>
           <passivation-stores>
               <file-passivation-store name="file"/>
               <cluster-passivation-store name="infinispan" cache-container="ejb"/>
           </pasivation-stores>
           <async thread-pool-name="default"/>
           <timer-service thread-pool-name="default" default-data-store="default-file-store">
               <data-stores>
                   <file-data-store name="default-file-store" path="timer-service-data" relative-to="jboss.server.data.dir"/>
               </data-stores>
           </timer-service>
           <remote connector-ref="remoting-connector" thread-pool-name="default"/>
           <thread-pools>
               <thread-pool name="default">
                   <max-threads count="10"/>
                   <keepalive-time time="100" unit="milliseconds"/>
               </thread-pool>
           </thread-pools>
           <default-security-domain value="other"/>
           <default-missing-method-permissions-deny-access value="true"/>
       </subsystem>
       <subsystem xmlns="urn:jboss:domain:infinispan:1.5">
           <cache-container name="singleton" aliases="cluster ha-partition" default-cache="default">
               <transport lock-timeout="60000"/>
               <replicated-cache name="default" mode="SYNC" batching="true">
                   <locking isolation="REPEATABLE_READ"/>
               </replicated-cache>
           </cache-container>
           <cache-container name="web" aliases="standard-session-cache" default-cache="local-web" module="org.jboss.as.clustering.web.infinispan">
               <transport lock-timeout="60000"/>
               <replicated-cache name="repl" mode="ASYNC" batching="true">
                   <file-store/>
               </replicated-cache>
               <replicated-cache name="sso" mode="SYNC" batching="true"/>
               <distributed-cache name="dist" mode="ASYNC" batching="true" l1-lifespan="0">
                   <file-store/>
               </distributed-cache>
           </cache-container>
           <cache-container name="ejb" aliases="sfsb sfsb-cache" default-cache="repl" module="org.jboss.as.clustering.ejb3.infinispan">
               <transport lock-timeout="60000"/>
               <replicated-cache name="repl" mode="ASYNC" batching="true">
                   <eviction strategy="LRU" max-entrieds="10000"/>
                   <file-store/>
               </replicated-cache>
               <!--
                   ~ Clustered cache used internally by EJB subsystem for managing the client-mapping(s) of
                   ~          the socketbinding referenced by the EJB remoting connector
               -->
               <replicated-cache name="remote-connector-client-mappings" mode="SYNC" batching="true"/>
               <distributed-cache name="dist" mode="ASYNC" batching="true" l1-lifespan="0">
                   <eviction strategy="LRU" max-entries="10000"/>
                   <file-store/>
               <distributed-cache>
           </cache-container>
           <cache-container name="hibernate" default-cache="local-query" module="org.jboss.as.jpa.hibernate:4">
               <transport lock-timeout="60000"/>
               <local-cache name="local-query"/>
                   <transaction mode="NONE"/>
                   <eviction strategy="LRU" max-entries="10000"/>
                   <expiration max-idle="100000"/>
               </local-cache>
               <invalidation-cache name="entity" mode="SYNC">
                   <transaction mode="NON_XA"/>
                   <eviction strategy="LRU" max-entries="10000"/>
                   expiration max-idle="100000"/>
               </invalidation-cache>
               <replicated-cache name="timestamps" mode="ASYNC">
                   <transaction mode="NONE"/>
                   <eviction strategy="NONE"/>
               </replicated-cache>
           </cache-container>
       </subsystem>
       <subsystem xmlns="urn:jboss:domain:jaxrs:1.0"/>
       <subsystem xmlns="urn:jboss:domain:jca:1.1">
           <archive-validation enabled="true" fail-on-error="true" fail-on-warn="false"/>
           <bean-validation enabled="true"/>
           <default-workmanager>
               <short-running-threads>
                   <core-threads count="50"/>
                   <queue-length count="50"/>
                   <max-threads count="50"/>
                   <keepalive-time time="10" unit="seconds"/>
               </short-running-threads>
               <long-running-threads>
                   <core-threads count="50"/>
                   <queue-length count="50"/>
                   <max-threads count="50"/>
                   <keepalive-time time="10" unit="seconds"/>
               </short-running-threads>
          </default-workmanager>
          <cached-connection-manager/>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:jdr:1.0"/>
      <subsystem xmlns="urn:jboss:domain:jgroups:1.1" default-stack="udp">
          <stack name="udp">
              <transport type="UDP" socket-binding="jgroups-udp"/>
              <protocol type="PING"/>
              <protocol type="MERGE3"/>
              <protocol type="FD_SOCK" socket-binding="jgroups-udp-fd"/>
              <protocol type="FD"/>
              <protocol type="VERIFY_SUSPECT"/>
              <protocol type="pbcast.NAKACK"/>
              <protocol type="UNICAST2"/>
              <protocol type="pbcast.STABLE"/>
              <protocol type="pbcast.GMS"/>
              <protocol type="UFC"/>
              <protocol type="MFC"/>
              <protocol type="FRAG2"/>
              <protocol type="RSVP"/>
          </stack>
          <stack name="tcp"
              <transport type="TCP" socket-binding="jgroups-tcp"/>
              <protocol type="MPING" socket-binding="jgroups-mping"/>
              <protocol type="MERGE2"/>
              <protocol type="FD_SOCK" socket-binding="jgroups-tcp-df"/>
              <protocol type="FD"/>
              <protocol type="VERIFY_SUSPECT"/>
              <protocol type="pbcast.NAKACK"/>
              <protocol type="UNICAST2"/>
              <protocol type="pbcast.STABLE"/>
              <protocol type="pbcast.GMS"/>
              <protocol type="UFC"/>
              <protocol type="MFC"/>
              <protocol type="FRAG2"/>
              <protocol type="RSVP"/>
          </stack>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:jmx:1.3">
          <expose-resolved-model/>
          <expose-expression-model/>
          <remoting-connector/>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:jpa:1.1">
          <jpa default-datasource="" default-extended-persistence-inheritance="DEEP"/>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:jsf:1.0"/>
      <subsystem xmlns="urn:jboss:domain:mail:1.2">
          <mail-session name="default" jndi-name="java:jboss/mail/Default">
              <smtp-server outbound-socket-binding-ref="mail-smtp"/>
          </mail-session>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:modcluster:1.2">
          <mod-cluster-config advertise-socket="modcluster" connector="ajp">
              <dynamic-load-provider>
                  <load-metric type="busyness"/>
              </dynamic-load-provider>
          </mod-cluster-config>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:naming:1.4">
          <remote-naming/>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:pojo:1.0"/>
      <subsystem xmlns="urn:jboss:domain:remoting:1.2">
          <connector name="remoting-connector" socket-binding="remoting" security-realm="ApplicationRealm"/>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:resource-adapters:1.1"/>
      <subsystem xmlns="urn:jboss:domain:sar:1.0"/>
      <subsystem xmlns="urn:jboss:domain:security:1.2">
          <security-domains>
              <security-domain name="other" cache-type="default">
                  <authentication>
                      <login-module code="Remoting" flag="optional">
                          <module-option name="password-stacking" value="useFirstPass"/>
                      </login-module>
                      <login-module code="RealmDirect" flag="required">
                          <module-option name="password-stacking" value="useFirstPass"/>
                      </login-module>
                  </authentication>
              </security-domain>
              <security-domain name="jboss-web-policy" cache-type="default">
                  <authorization>
                      <policy-module code="Delegating" flag="required"/>
                  </authorization>
              </security-domain>
              <security-domain name="jboss-ejb-policy" cache-type="default">
                  <authorization>
                      <policy-module code="Delegating" flag="required"/>
                  </authrization>
              </security-domain>
          </security-domains>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:threads:1.1"/>
      <subsystem xmlns="urn:jboss:domain:transaction:1.5">
          <core-environment>
              <process-id>
                  <uuid/>
              </process-id>
          </core-environment>
          <recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/>
          <coordinator-environment default-timeout="300"/>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:web:2.2" default-virtual-server="default-host" native="false">
          <configuration>
              <jsp-configuration development="true" check-interval="2" modification-test-interval="2" recompile-on-fail="true x-powered-by="false"/>
          </configuration>
          <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
          <connector name="ajp" protocol="AJP/1.3" scheme="http" socket-binding="ajp"/>
          <virtual-server name="default-host" enable-welcome-root="false">
              <alias name="localhost"/>
              <alias name="example.com"/>
          </virtual-server>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:webservices:1.2">
          <modify-wsdl-address>true</modify-wsdl-address>
          <wsdl-host>${jboss.bind.address:127.0.0.1}</wsdl-host>
          <endpoint-config name="Standard-Endpoint-Config"/>
          <endpoint-config name="Recording-Endpoint-Config">
              <pre-handler-chain name="recording-handlers" protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM">
                  <handler name="RecordingHandler" class="org.jboss.ws.common.invocation.RecordingServerHandler"/>
              </pre-handler-chain>
          </endpoint-config>
          <client-config name="Standard-Client-Config"/>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:weld:1.0"/>
   </profile>
   <interfaces>
       <interface name="management">
           <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
       </interface>
       <interface name="public">
           <inet-address value="${jboss.bind.address:127.0.0.1}"/>
       </interface>
       <!-- TODO - only show this if the jacorb subsystem is added -->
       <interface name="unsecure">
           <!--
               ~ Used for IIOP sockets in the standard configuration.
               ~             To secure JacORB you need to setup SSL
           -->
           <inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>
       </interface>
   </interfaces>
   <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
       <socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9999}"/>
       <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9991}"/>
       <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9443}"/>
       <socket-binding name="ajp" port="8009"/>
       <socket-binding name="http" port="8081"/>
       <socket-binding name="https" port="8443"/>
       <socket-binding name="jgroups-mping" port="0" multicast-address="${jboss.default.multicast.address:230.0.0.4}" multicast-port="45700"/>
       <socket-binding name="jgroups-tcp" port="7600"/>
       <socket-binding name="jgroups-tcp-fd" port="57600"/>
       <socket-binding name="jgroups-udp" port="55200" multicast-address="${jboss.default.multicast.address:230.0.0.4}" multicast-port="45688"/>
       <socket-binding name="jgroups-udp-fd" port="54200"/>
       <socket-binding name="modcluster" port="0" multicast-address="224.0.1.105" multicast-port="23364"/>
       <socket-binding name="remoting" port="4447"/>
       <socket-binding name="txn-recovery-environment" port="4712"/>
       <socket-binding name="txn-status-manager" port="4713"/>
       <outbound-socket-binding name="mail-smtp">
           <remote-destination host="localhost" port="25"/>
       </outbound-socket-binding>
   </socket-binding-group>
   <deployments>
       <deployment name="sample.war" runtime-name="sample.war" enabled="false">
           <fs-exploded path="/WebApp/deploy/sample.war"/>
       </deployment>
   </deployments>
</server>

 

반응형

댓글