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

[JBoss EAP 7] JBoss EAP 7.3 주요 설정 내용

by 찬찬이 아빠 2023. 4. 11.
반응형
  1. JBoss EAP 7 버전 정보
버전 출시일
JBoss EAP 7.3.7 2021.05

 

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

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-7.3
export JAVA_HOME=/usr/lib/jvm/java-1.8.0
export DOMAIN_BASE=/JBOSS/domains
export SERVER_NAME=AP_name10
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=`hostname -i`
export MGMT_ADDR=$BIND_ADDR
export CONTROLLER_IP=$MGMT_ADDR
let CONTROLLER_PORT=9991+$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.61.1
export JMS_MULTICAST_ADDR=231.20.61.1
export MODCLUSTER_MULTICAST_ADDR=224.20.61.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"

##### TCP mode can be used when multicast is not preferable or allowed by security policies.
#### https://access,redhat.com/solutions/3021711
#export TCP_MULTICAST_ADDR=was1[7600],was2[7600]

#export JAVA_OPTS=" $JAVA_OPTS -Djboss.jgroups.transport.machine=$SERVER_NAME"
#export JAVA_OPTS=" $JAVA_OPTS -Djboss.cluster.tcp.initial_hosts=$TCP_MULTICAST_ADDR"

export JAVA_OPTS=" $JAVA_OPTS -Djboss.tx.node.id=$SERVER_NAME"
export JAVA_OPTS=" $JAVA_OPTS -Djboss.as.management.blocking.timeout=600"
export LOG_HOME=/CLOUD/JBOSS/LOG/$SERVER_NAME

##### JBoss EAP System module and User module directory #####
export JBOSS_MODULEPATH=$JBOSS_HOME/modules

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

# JVM Options : Memory
export JAVA_OPTS=" $JAVA_OPTS -Xss2m -Xms1024m -Xmx2048m -XX:MaxMetaspaceSize=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:+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 -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 "================================================="

##### SCOUTER Setting
#SCOUTER_OPT="-javaagent:/scouter/agent.java_6_7/scouter.agent.jar -Dscouter.config=/scouter/agent.java_6_7/conf/AP_anme10.conf"
#export JAVA_OPTS=" $JAVA_OPTS $SCOUTER_OPT"
#export JAVA_OPTS=" $JAVA_OPTS -Djboss.modules.system.pkgs=org.jboss.byteman,scouter"

 

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
file.encoding=UTF-8
#jvmRoute=AP_name10
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/dbms-encryption-password.sh

#!/bin/sh

JAVA_HOME=/usr/lib/jvm/jre-1.8.0/bin
JBOSS_HOME=/JBOSS/jboss-eap-7.3

picketbox=`find ${JBOSS_HOME}/ -type f -name "picketbox*" | sort | head -n 1`
jboss_logging=`find ${JBOSS_HOME}/ -type f -name "jboss-logging*"`
module_name=org.picketbox.datasource.security.SecureIdentityLoginModule

export CLASSPATH=${picketbox}:${jboss_logging}

if [ -d $JAVA_HOME ]; then
	read -p "Input Database Password : " dbpassword
    ${JAVA_HOME}/java -cp $CLASSPATH ${module_name} ${dbpassword}
else
	echo "JAVA 1.8 is not installed. Please install and try again."
fi

 

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

#!/bin/sh

. ./env.sh

for count in 1 2 3; 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

 

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
ps -ef | grep "tail" | grep "$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 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

if [ ! -f $LOG_HOME/server.log ]; then
	touch $LOG_HOME/server.log
fi

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 $LOG_HOME/server.log -n0 -F | while read line; do
	if [[ $line =~ ' started in ' ]] && [[ $line =~ ' - Started ' ]] || [[ $line =~ ' ERROR ' ]]; then
    	pkill -9 -P $$ tail
    fi
done

 

 

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

#!/bin/sh

. ./env.sh

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

 

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

#!/bin/sh

. ./env.sh

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

 

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

#!/bin/sh

. ./env.sh

tail -f $LOG_HOME/server.log

 

 

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

#!/bin/sh

JBOSS_DIR="/JBOSS/domains"

unset JBOSS_NODE DATE JBOSS_BIN_DIR PNODE_NAME UNAME JBOSS_HOME JAVA_HOME DOMAIN_BASE SERVER_NAME HOST_NAME CONFIG_FILE PORT_OFFSET JBOSS_USER BIND_ADDR CONTROLLER_IP CONTROLLER_PORT MULTICAST_ADDR JMS_MULTICAST_ADDR MODCLUSTER_MULTICAST_ADDR JAVA_OPTS LOG_HOME JBOSS_MODULEPATH

if [ `ls -F $JBOSS_DIR | grep / | wc -l` -eq 1 ]; then
	node_list=`ls -F $JBOSS_DIR | grep / | cut -d/ -f1`
	JBOSS_BIN_DIR=$JBOSS_DIR/${node_list}/bin
    
	if [ ! -d $JBOSS_BIN_DIR ]; then
		JBOSS_BIN_DIR=$JBOSS_DIR/${node_list}
	fi
    
    DATE=`date +%Y%m%d%H%M%S`
    if [ -f ${JBOSS_BIN_DIR}/env.sh ]; then
    	. ${JBOSS_BIN_DIR}/env.sh
    else
    	echo -e "\n======================================"
        echo -e "${node_list} node are env.sh file not found\n"
        echo -e "\n======================================"
        echo -e "Rerun script after node name resolution\n"
        exit;
    fi
    
    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
    if [ ! -f $LOG_HOME/server.log ]; then
    	touch $LOG_HOME/server.log
    fi
    
	nohup $JBOSS_HOME/bin/standalone.sh -DSERVER=$SERVER_NAME -P=$JBOSS_BIN_DIR/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 $LOG_HOME/server.log -n0 -F | while read line; do
    	if [[ $line =~ ' started in ' ]] && [[ &line =~ ' - Started ' ]] || [[ $line =~ ' ERROR ' ]]; then
        	pkill -9 -P $$ tail
        fi
    done
else
	node_check=`ps ax | grep jboss | grep "DSERVER" | grep "standalone.sh" | egrep -v "java|grep" | awk -F= '{print $2}' | awk '{print $1}' | sort -u`
    node_name=`echo ${node_check} | grep -v -e '^$' | tr " " "|"`
    if [[ ${node_name} == "" ]]; then
    	NODE_LIST=`ls -F $JBOSS_DIR | grep / | cut -d/ -f1 | grep -v -e '^$' | tr "\n" "\t"`
    else
    	NODE_LIST=`ls -F $JBOSS_DIR | grep / | cut -d/ -f1 | egrep -v "${node_name}" | grep -v -e '^$' | tr "\n" "\t"`
    fi
    
    if [ `echo ${NODE_LIST} | grep -v -e '^$' | wc -l` -eq 1 ]; then
    	echo -e "\nInput JBoss Node Name."
        echo -e "\\033[0;31mNode List : \\033[0;32m ${NODE_LIST} \\033[0;39m\n"
        read -p " [ JBoss Node Name ] : " ID
        
        JBOSS_NODE=$JBOSS_DIR/${ID}
        
        if [[ $ID == "" ]]; then
        	echo -e "\nSpace or Enter is not allowed.."
            echo -e "\\033[0;31mNode List : \\033[0;32m ${NODE_LIST} \\033[0;39m\n"
            echo -e "Rerun script after node name resolution\n"
            exit;
        elif [ -d $JBOSS_NODE ]; then
        	JBOSS_BIN_DOR=$JBOSS_NODE/bin
            if [ ! -d $JBOSS_BIN_DIR ]; then
            	JBOSS_BIN_DIR=$JBOSS_NODE
            fi
            
            DATE=`date +%Y%m%d%H%M%S`
            if [ -f ${JBOSS_BIN_DIR}/env.sh ]; then
    			. ${JBOSS_BIN_DIR}/env.sh
            else
               	echo -e "\n======================================"
                echo -e "${node_list} node are env.sh file not found\n"
                echo -e "\n======================================"
                echo -e "Rerun script after node name resolution\n"
                exit;
            fi
            
            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=$JBOSS_BIN_DIR/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 $LOG_HOME/server.log -n0 -F | while read line; do
            	if [[ $line =~ ' started in ' ]] && [[ &line =~ ' - Started ' ]] || [[ $line =~ ' ERROR ' ]]; then
        			pkill -9 -P $$ tail
        		fi
            done
        else
        	echo -e "\nNo Search Node Name : ${ID}"
            echo -e "\\033[0;31mNode List : \\033[0;32m ${NODE_LIST} \\033[0;39m\n"
            echo -e "Rerun script after node name resolution\n"
            exit;
        fi
    else
    	echo -e "\nAll JBoss Nodes are Running!!\n"
    if
fi

 

 

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

#!/bin/sh

JBOSS_DIR=`ps ax | grep jboss | grep "DSERVER" | grep "standalone.sh" | egrep -v "grep" | awk -F-P= '{print $2}' | awk -F/ '{print "/" $2, $3, $4}' | sort -u | tr " " "/"`

node_check=`ps ax | grep jboss | grep "DSERVER" | grep "standalone.sh" | egrep -v "grep" | awk -F= '{print $2}' awk '{print $1}' | sort -u`

unset JBOSS_NODE DATE JBOSS_BIN_DIR PNODE_NAME UNAME JBOSS_HOME JAVA_HOME DOMAIN_BASE SERVER_NAME HOST_NAME CONFIG_FILE PORT_OFFSET JBOSS_USER BIND_ADDR CONTROLLER_IP CONTROLLER_PORT MULTICAST_ADDR JMS_MULTICAST_ADDR MODCLUSTER_MULTICAST_ADDR JAVA_OPTS LOG_HOME JBOSS_MODULEPATH

if [ `echo ${node_check} | grep -v -e '^$' | tr " " "\n" | wc -l` -ge 1 ]; then
	for ID in ${node_check[@]}
    do
    	JBOSS_NODE=$JBOSS_DIR/${ID}
        echo -e "\n Do you want ot stop the\\033]0;32m ${ID}\\033[0;39m Node?"
        JBOSS_BIN_DIR=${JBOSS_NODE}/bin
        if [ ! -d ${JBOSS_BIN_DIR} ]; then
        	JBOSS_BIN_DIR=${JBOSS_NODE}
        fi
        
        DATE=`date +%Y%m%d%H%M%S`
        if [ -f ${JBOSS_BIN_DIR/env.sh ]; then
        	. ${JBOSS_BIN_DIR}/env.sh
        else
        	echo -e "\n===================================="
            echo -e "${ID} are env.sh file not found"
            echo -e "\n===================================="
            continue;
        fi
        echo -e "\n"
        read -p " [ Input Yes or No  : ] " answer
        	case $answer in
            	[yY]* )
                	ps -ef | grep "java" | grep "${JBOSS_NODE}" | awk {'print "kill -15 " $2'} | sh -x && \
                    ps -ef | grep "tail" | grep "${ID}" | awk {'print "kill -15 " $2'} | sh -x;;
                [nN]* )
                	continue;;
                * )
                	echo -e "\n You must enter Yes or No. Rerun the shell. ";
            esac
        echo -e "\n"
    done
else
	echo -e "JBoss Service is not Running!!\n"
fi

 

17) /JBOSS/domains/노드명/bin/scripts/jboss_kill.sh

#!/bin/sh

JBOSS_DIR=`ps ax | grep jboss | grep "DSERVER" | grep "standalone.sh" | egrep -v "grep" | awk -F-P= '{print $2}' | awk -F/ '{print "/" $2, $3, $4}' | sort -u | tr " " "/"`

node_check=`ps ax | grep jboss | grep "DSERVER" | grep "standalone.sh" | egrep -v "grep" | awk -F= '{print $2}' awk '{print $1}' | sort -u`

unset JBOSS_NODE DATE JBOSS_BIN_DIR PNODE_NAME UNAME JBOSS_HOME JAVA_HOME DOMAIN_BASE SERVER_NAME HOST_NAME CONFIG_FILE PORT_OFFSET JBOSS_USER BIND_ADDR CONTROLLER_IP CONTROLLER_PORT MULTICAST_ADDR JMS_MULTICAST_ADDR MODCLUSTER_MULTICAST_ADDR JAVA_OPTS LOG_HOME JBOSS_MODULEPATH

if [ `echo ${node_check} | grep -v -e '^$' | tr " " "\n" | wc -l` -ge 1 ]; then
	for ID in ${node_check[@]}
    do
    	JBOSS_NODE=$JBOSS_DIR/${ID}
        echo -e "\n Do you want ot stop the\\033]0;32m ${ID}\\033[0;39m Node?"
        JBOSS_BIN_DIR=${JBOSS_NODE}/bin
        if [ ! -d ${JBOSS_BIN_DIR} ]; then
        	JBOSS_BIN_DIR=${JBOSS_NODE}
        fi
        
        DATE=`date +%Y%m%d%H%M%S`
        if [ -f ${JBOSS_BIN_DIR/env.sh ]; then
        	. ${JBOSS_BIN_DIR}/env.sh
        else
        	echo -e "\n===================================="
            echo -e "${ID} are env.sh file not found"
            echo -e "\n===================================="
            continue;
        fi
        echo -e "\n"
        read -p " [ Input Yes or No  : ] " answer
        	case $answer in
            	[yY]* )
                	ps -ef | grep "java" | grep "${JBOSS_NODE}" | awk {'print "kill -9 " $2'} | sh -x && \
                    ps -ef | grep "tail" | grep "${ID}" | awk {'print "kill -9 " $2'} | sh -x;;
                [nN]* )
                	continue;;
                * )
                	echo -e "\n You must enter Yes or No. Rerun the shell. ";
            esac
        echo -e "\n"
    done
else
	echo -e "JBoss Service is not Running!!\n"
fi

 

 

  3. JBoss EAP 7 주요 설정 내용

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=sun.rmi,org.jboss.as.config,io.jaegertracing.Configuration,com.arjuna

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

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.io.jaegertracing.Configuration.level=WARN
logger.io.jaegertracing.Configuration.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=WARN
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/AP_name10/server.log

formatter.PATTERN=org.jboss.logmanager.formatters.PatternFormatter
formatter.PATTERN.properties=pattern
formatter.PATTERN.pattern=%d{yyyy-mm-dd 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:11.0">
	<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.transactions"/>
        <extension module="org.jboss.as.webservices"/>
        <extension module="org.jboss.as.weld"/>
        <extension module="org.wildfly.extension.batch.jberet"/>
        <extension module="org.wildfly.extension.bean-validation"/>
        <extension module="org.wildfly.extension.clustering.web"/>
        <extension module="org.wildfly.extension.core-management"/>
        <extension module="org.wildfly.extension.discovery"/>
        <extension module="org.wildfly.extension.ee-security"/>
        <extension module="org.wildfly.extension.elytron"/>
        <extension module="org.wildfly.extension.io"/>
        <extension module="org.wildfly.extension.microprofile.config-smallrye"/>
        <extension module="org.wildfly.extension.microprofile.health-smallrye"/>
        <extension module="org.wildfly.extension.microprofile.metrics-smallrye"/>
        <extension module="org.wildfly.extension.microprofile.opentracing-smallrye"/>
        <extension module="org.wildfly.extension.request-controller"/>
        <extension module="org.wildfly.extension.security.manager"/>
        <extension module="org.wildfly.extension.undertow"/>
	</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">
            	<server-identities>
                	<ssl>
                    <!--	<keystore path="application.keystore" relative-to="jboss.server.config.dir" keystore-password="password" alias="server" key-password="password" generate-self-signed-certificate-host="localhost"/> -->
                    </ssl>
                </server-identities>
                <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>
        	<http-interface security-realm="ManagementRealm">
            	<http-upgrade enabled="true"/>
            	<socket-binding native="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:8.0">
           <console-handler name="CONSOLE">
               <level name="ERROR"/>
               <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="io.jaegertracing.Configuration">
               <level name="WARN"/>
           </logger>
           <logger category="org.jboss.as.config">
               <level name="DEBUG"/>
           </logger>
           <logger category="sun.rmi">
               <level name="WARN"/>
           </logger>
           <root-logger>
               <level name="INFO"/>
               <handlers>
                   <handler name="CONSOLE"/>
                   <handler name="FILE"/>
               </handlers>
           </root-logger>
           <formatter name="PATTERN">
               <pattern-formatter pattern="%d{yyyy-MM-dd 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:batch-jberet:2.0">
           <default-job-repository name="in-memory"/>
           <default-thread-pool name="batch"/>
           <job-repository name="in-menory">
               <in-memory/>
           </job-repository>
           <thread-pool name="batch">
               <max-threads count="10"/>
               <keepalive-time time="30" unit="seconds"/>
           </thread-pool>
       </subsystem>
       <subsystem xmlns="urn:jboss:domain:bean-validation:1.0"/>
       <subsystem xmlns="urn:jboss:domain:core-management:1.0"/>
       <subsystem xmlns="urn:jboss:domain:datasources:5.0">
           <datasources>
               <datasource jndi-name="java:jboss/cubridDS" pool-name="cubridDS" enabled="true">
                   <connection-url>jdbc:cubrid:dbmshost1:33000:db명:::?hold_cursor=no&amp;charset=utf-8</connection-url>
                   <driver-class>cubrid.jdbc.dirver.CUBRIDDriver</driver-class>
                   <driver>cubrid</driver>
                   <pool>
                       <min-pool-size>5</min-pool-size>
                       <max-pool-size>50</max-pool-size>
                       <prefill>false</prefill>
                       <use-strict-min>true</use-strict-min>
                   </pool>
                   <timeout>
                       <blocking-timeout-millis>300000</blocking-timeout-millis>
                       <idle-timeout-minutes>10</idle-timeout-minutes>
                   </timeout>
                   <security>
                       <security-domain>cubrid-password</security-domain>                       
                   </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">
                   <connection-url>jdbc:postgresql://dbmshost1:5432/postgres</connection-url>
                   <driver-class>org.postgresql.Driver</driver-class>
                   <driver>postgres</driver>
                   <pool>
                       <min-pool-size>5</min-pool-size>
                       <max-pool-size>50</max-pool-size>
                       <prefill>false</prefill>
                       <use-strict-min>true</use-strict-min>
                   </pool>
                   <timeout>
                       <blocking-timeout-millis>300000</blocking-timeout-millis>
                       <idle-timeout-minutes>10</idle-timeout-minutes>
                   </timeout>
                   <security>
                       <security-domanin>cubrid-password</security-domain>
                   </security>                  
                   <validation>
                       <check-valid-connection-sql>select 1</check-valid-connection-sql>
                       <validate-on-match>true</validate-on-match>
                       <background-validation>false</background-validation>
                       <valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.etensions.postgres.PostgreSQLValidConnectionChecker"></valid-connection-checker>
                       <exception-sorter class-name="org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLExceptionSorter"></exception-sorter>
                   </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:2.0">
           <deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="0" scan-enabled="false" runtime-failure-causes-rollback="${jboss.deployment.scanner.rollback.on.failure:false}"/>
       </subsystem>
       <subsystem xmlns="urn:jboss:domain:discovery:1.0"/>
       <subsystem xmlns="urn:jboss:domain:distributable-web:2.0" default-session-management="default" dafault-single-sign-on-management="default">
           <infinispan-session-management name="default" cache-container="web" granularity="SESSION">
               <primary-owner-affinity/>
           </infinispan-session-management>
           <infinispan-single-sign-on-management name="default" cache-container="web" cache="sso"/>
           <infinispan-routing cache-container="web" cache="routing"/>
       </subsystem>
       <subsystem xmlns="urn:jboss:domain:ee:4.0">
           <spec-descriptor-property-replacement>false</spec-descriptor-property-replacement>
           <concurrent>
               <context-services>
                   <context-service name="default" jnid-name="java:jboss/ee/concurrency/context/default" use-transaction-setup-provider="true"/>
               </context-services>
               <managed-thread-factories>
                   <managed-thread-factory name="default" jndi-name="java:jboss/ee/concurrency/factory/default" context-service="default"/>
               </managed-thread-factories>
               <managed-executor-services>
                   <managed-executor-service name="default" jndi-name="java:jboss/ee/concurrency/executor/default" context-service="default" hung-task-threshold="60000" keepalive-time="5000"/>
               </managed-executor-services>
               <managed-scheduled-executor-services>
                   <managed-scheduled-executor-service name="default" jndi-name="java:jboss/ee/concurrency/scheduler/default" context-service="default" hung-task-threshold="60000" keepalive-time="3000"/>
               </managed-scheduled-executor-services>
           </concurrent>
           <default-bindings context-service="java:jboss/ee/concurrency/context/default" datasource="java:/jboss/cubridDS" managed-executor-service="java:jboss/ee/concurrency/scheduler/default" managed-thread-factory="java:jboss/ee/concurrency/factory/default"/>
       </subsystem>
       <subsystem xmlns="urn:jboss:domain:ee-security:1.0"/>
       <subsystem xmlns="urn:jboss:domain:ejb3:6.0">       
           <session-bean>
               <stateless>
                   <bean-instance-pool-ref pool-name="slsb-strict-max-pool"/>
               </stateless>
               <stateful default-access-timeout="5000" cache-ref="simple" passivation-disabled-cache-ref="simple"/>
               <singleton default-access-timeout="5000"/>
           </session-bean>
           <pools>
               <bean-instance-pools>
                   <strict-max-pool name="mdb-strict-max-pool" derive-size="from-cpu-count" instance-acquisition-timeout="5" instance-acquisition-time-unit="MINUTES"/>
                   <strict-max-pool name="slsb-strict-max-pool" derive-size="from-worker-pools" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
               </bean-instance-pools>
           </pools>
           <caches>
               <cache name="simple"/>
               <cache name="distributable" passivation-store-ref="infinispan" aliases="passivating clustered"/>
           </caches>
           <passivation-stores>
               <passivation-store name="infinispan" cache-container="ejb" max-size="10000"/>
           </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="http-remoting-connector" thread-pool-name="default">
               <chnnel-creation-options>
                   <option name="MAX_OUTBOUND-MESSAGES" value="1234" type="remoting"/>
               </chnnel-creation-options>
           </remote>
           <thread-pools>
               <thread-pool name="default">
                   <max-threads count="10"/>
                   <keepalive-time time="60" unit="seconds"/>
               </thread-pool>
           </thread-pools>
           <default-security-domain value="other"/>
           <default-missing-method-permissions-deny-access value="true"/>
           <statistics enabled="${wildfly.ejb3.statistics-enabled:${wildfly.statistics-enabled:false}}"/>
           <log-system-exceptions value="true"/>
       </subsystem>
       <subsystem xmlns="urn:wildfly:elytron:8.0" final-providers="combinde-providers" disallowed-providers="OracleUcrypto">
           <providers>
               <aggregate-providers name="combined-providers">
                   <providers name="elytron"/>
                   <providers name="openssl"/>
               </aggregate-providers>
               <provider-loader name="elytron" module="org.wildfly.security.elytron"/>
               <provider-loader name="openssl" module="org.wildfly.openssl"/>
           </providers>
           <audit-logging>
               <file-audit-log name="local-audit" path="audit.log" relative-to="jboss.server.log.dir" format="JSON"/>
           </audit-logging>
           <security-domains>
               <security-domain name="ApplicationDomain" default-realm="ApplicationRealm" permission-mapper="default-permission-mapper">
                   <realm name="ApplicationRealm" role-decoder="groups-to-roles"/>
                   <realm name="local"/>
               </security-domain>
               <security-domain name="ManagementDomain" default-realm="ManagementRealm" permission-mapper="default-permission-mapper">
                   <realm name="ManagementRealm" role-decoder="groups-to-roles"/>
                   <realm name="local" role-mapper="super-user-mapper"/>
               </security-domain>
           </security-domains>
           <security-realms>
               <identity-realm name="local" identity="$local"/>
               <properties-realm name="ApplicationRealm">
                   <users-properties path="application-users.properties" relative-to="jboss.server.config.dir" digest-realm-name="ApplicationRealm"/>
                   <groups-properties path="application-roles.properties" relative-to="jboss.server.config.dir"/>
               </properties-realm>
               <properties-realm name="ManagementRealm">
                   <users-properties path="mgmt-users.properties" relative-to="jboss.server.config.dir" digest-realm-name="ManagementRealm"/>
                   <groups-properties path="mgmt-groups.properties" relative-to="jboss.server.config.dir"/>
               </properties-realm>
           </security-realms>
           <mappers>
               <simple-permission-mapper name="default-permission-mapper" mapping-mode="first">
                   <permission-mapping>
                       <principal name="anonymous"/>
                       <permission-set name="default-permissions"/>
                   </permission-mapping>
                   <permission-mapping match-all="true">
                       <permission-set name="login-permission"/>
                       <permission-set name="default-permissions"/>
                   </permission-mapping>
               </simple-permission-mapper>
               <constant-realm-mapper name="local" realm-name="local"/>
               <simple-role-decoder name="groups-to-roles" attribute="groups"/>
               <constant-role-mapper name="super-user-mapper">
                   <role name="SuperUser"/>
               </constant-role-mapper>
           </mappers>
           <permission-sets>
               <permission-set name="login-permission">
                   <permission class-name="org.wildfly.security.auth.permission.LoginPermission"/>
               </permission-set>
               <permission-set name="default-permissions">
                   <permission class-name="org.wildfly.extension.batch.jberet.deployment.BatchPermission" module="org.wildfly.extension.batch.jberet" target-name="*"/>
                   <permission class-name="org.wildfly.transaction.client.RemoteTransactionPermission" module="org.wildfly.transaction.client"/>
                   <permission class-name="org.jboss.ejb.client.RemoteEJBPermission" module="org.jboss.ejb-client"/>
               </permission-set>
           </permission-sets>
           <http>
               <http-authentication-factory name="management-http-authentication" security-domain="ManagementDomain" http-server-mechanism-factory="global">
                   <mechanism-configuration>
                       <mechanism mechanism-name="DIGEST">
                           <mechanism-realm realm-name="ManagementRealm"/>
                       </mechanism>
                   </mechanism-configuration>
               </http-authentication-factory>
               <provider-http-server-mechanism-factory name="global"/>
           </http>
           <sasl>
               <sasl-authentication-factory name="application-sasl-authentication" sasl-server-factory="configured" security-domain="ApplicationDomain">
                   <mechanism-configuration>
                       <mechanism mechanism-name="JBOSS-LOCAL-USER" realm-mapper="local"/>
                       <mechanism mechanism-name="DIGEST-MD5">
                           <mechanism-realm realm-name="ApplicationRealm"/>
                       </mechanism>
                   </mechanism-configuration>
               </sasl-authentication-factory>
               <sasl-authentication-factory name="management-sasl-authentication" sasl-server-factory="configured" security-domain="ManagementDomain">
                   <mechanism-configuration>
                       <mechanism mechanism-name="JBOSS-LOCAL-USER" realm-mapper="local"/>
                       <mechanism mechanism-name="DIGEST-MD5">
                           <mechanism-realm realm-name="ManagementRealm"/>
                       </mechanism>
                   </mechanism-configuration>
               </sasl-authentication-factory>
               <configurable-sasl-server-factory name="configured" sasl-server-factory="elytron">
                   <properties>
                       <property name="wildfily.sasl.local-user.default-user" value="$local"/>
                   </properties>
               </configurable-sasl-server-factory>
               <mechanism-provider-filtering-sasl-server-factory name="elytron" sasl-server-factory="global">
                   <filters>
                       <filter provider-name="WildFlyElytron"/>
                   </filters>
               </mechanism-provider-filtering-sasl-server-factory>
               <provider-sasl-server-factory name="global"/>
           </sasl>
       </subsystem>
       <subsystem xmlns="urn:jboss:domain:infinispan:9.0">
           <cache-container name="web" default-cache="passivation" module="org.wildfly.clustering.web.infinispan">
               <local-cache name="passivation">
                   <locking isolation="REPEATABLE_READ"/>
                   <transaction mode="BATCH"/>
                   <file-store passivation="true" purge="false"/>
               </local-cache>
               <local-cache name="sso">
                   <locking isolation="REPEATABLE_READ"/>
                   <transaction mode="BATCH"/>
               </local-cache>
               <local-cache name="routing"/>
           </cache-container>
           <cache-container name="server" default-cache="default" module="org.wildfly.clustering.server">
               <local-cache name="default">
                   <transaction mode="BATCH"/>
               </local-cache>
           <cache-container>
           <cache-container name="ejb" aliases="sfsb" default-cache="passivation" module="org.wildfly.clustering.ejb.infinispan">
               <local-cache name="passivation">
                   <locking isolation="REPEATABLE_READ"/>
                   <transaction mode="BATCH"/>
                   <file-store passivation="true" purge="false"/>
               </local-cache>
           <cache-container>    
           <cache-container name="hibernate" module="org.infinispan.hibernate-cache">
               <local-cache name="entity">
                   <object-memory size="10000"/>
                   <expiration max-idle="100000"/>
               </local-cache>
               <local-cache name="local-query"/>
                   <object-memory size="10000"/>
                   <expiration max-idle="100000"/>
               </local-cache>
               <local-cache name="timestamps"/>
           </cache-container>
       </subsystem>
       <subsystem xmlns="urn:jboss:domain:io:3.0">
           <worker name="default"/>
           <buffer-pool name="default"/>
       </subsystem>
       <subsystem xmlns="urn:jboss:domain:jaxrs:1.0"/>
       <subsystem xmlns="urn:jboss:domain:jca:5.0">
           <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.1"/>
      <subsystem xmlns="urn:jboss:domain:mail:3.0">
          <mail-session name="default" jndi-name="java:jboss/mail/Default">
              <smtp-server outbound-socket-binding-ref="mail-smtp"/>
          </mail-session>
      </subsystem>
      <subsystem xmlns="urn:wildfly:microprofile-config-smallrye:1.0"/>
      <subsystem xmlns="urn:wildfly:microprofile-health-smallrye:2.0" security-enabled="false" empty-liveness-checks-status="${env.MP_HEALTH_EMPTY_LIVENESS_CHECKS_STATUS:UP}" empty-readiness-checks-status="${env.MP_HEALTH_EMPTY_READINESS_CHECKS_STATUS:UP}"/>
      <subsystem xmlns="urn:wildfly:microprofile-metrics-smallrye:2.0" security-enabled="false" exposed-subsystems="*" prefix="${wildfly.metrics.prefix:jboss}"/>
      <subsystem xmlns="urn:wildfly:microprofile-opentracing-smallrye:1.0"/>
      <subsystem xmlns="urn:jboss:domain:naming:2.0">
          <remote-naming/>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:pojo:1.0"/>
      <subsystem xmlns="urn:jboss:domain:remoting:4.0">
          <connector name="http-remoting-connector" connector-ref="default" security-realm="ApplicationRealm"/>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:request-controller:1.0"/>
      <subsystem xmlns="urn:jboss:domain:resource-adapters:5.0"/>
      <subsystem xmlns="urn:jboss:domain:sar:1.0"/>
      <subsystem xmlns="urn:jboss:domain:security:2.0">
          <security-domains>
              <security-domain name="cubrid-password" cache-type="default">
                  <authentication>
                      <login-module code="org.picketbox.datasource.security.SecureIdentityLoginModule" flag="required">
                          <module-option name="username" value="public"/>
                          <module-option name="password" value="2d6219b35e931895a11f65ce06a77a33c"/>
                          <module-option name="managedConnectionFactoryName" value="jbossjca:service=LocalTxCM,name=cubridDS"/>
                      </login-module>
                  </authentication>
              </security-domain>
              <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="jaspitest" cache-type="default">
                  <authentication-jaspi>
                      <login-module-stack name="dummy">
                          <login-module code="Dummy" flag="optional"/>
                      </login-module-stack>
                      <auth-module code="Dummy"/>
                  </authentication-jaspi>
              </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:security-manager:1.0">
          <deployment-permissions>
              <maximum-set>
                  <permission class="java.security.AllPermission"/>
              </maximum-set>
          </deployment-permissions>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:transaction:5.0">
          <core-environment node-identifier="${jboss.tx.node.id:1}">
              <process-id>
                  <uuid/>
              </process-id>
          </core-environment>
          <recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/>
          <coordinator-environment statistics-enabled="${wildfly.transactions.statistics-enabled:${wildfly.statistics-enabled:false}}"/>
          <object-store path="tx-object-store" relative-to="jboss.server.data.dir"/>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:undertow:10.0" default-server="default-server" default-virtual-host="default-host" default-servlet-container="default" default-security-domain="other" statistics-enabled="${wildfly.undertow.statistics-enabled:${wildfly.statistics-enabled:false}}">
          <buffer-cache name="default"/>
          <server name="default-server">
              <ajp-listener name="ajp" max-post-size="524288000" socket-binding="ajp" max-connections="1024"/>
              <http-listener name="default" max-post-size="524288000" socket-binding="http" redirect-socket="https" enable-http2="true"/>
              <http-listener name="https" max-post-size="524288000" socket-binding="https" security-realm="ApplicationRealm" enable-http2="true"/>
              <host name="default-host" alias="localhost">
                  <location name="/" handler="welcom-content"/>
                  <http-invoker security-realm="ApplicationRealm"/>
                  <filter-ref name="secret-checker" predicate="equals(%p,${jboss.ajp.port:8009})"/>
              </host>
          </server>
          <servlet-container name="default">
              <jsp-config x-powered-by="false" development="false" check-interval="60"/>
              <websockets/>
          </servlet-container>
          <filters>
              <expression-filter name="secret-checker" expression="not equals(%{r,secret}, 'Q2xvdWQxMjMj') -> response-code(403)"/>
          </filters>
          <handlers>
              <file name="welcome-content" path="${jboss.home.dir}/welcome-content"/>
          </handlers>
      </subsystem>                 
      <subsystem xmlns="urn:jboss:domain:webservices:2.0" statistics-enabled="${wildfly.webservices.statistics-enabled:${wildfly.statistics-enabled:false}}">
          <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:4.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>       
   </interfaces>
   <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
       <socket-binding name="ajp" port="8009"/>
       <socket-binding name="http" port="8081"/>
       <socket-binding name="https" port="8443"/>
       <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:9993}"/>
       <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:11.0">
	<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.transactions"/>
        <extension module="org.jboss.as.webservices"/>
        <extension module="org.jboss.as.weld"/>
        <extension module="org.wildfly.extension.batch.jberet"/>
        <extension module="org.wildfly.extension.bean-validation"/>
        <extension module="org.wildfly.extension.clustering.web"/>
        <extension module="org.wildfly.extension.core-management"/>
        <extension module="org.wildfly.extension.discovery"/>
        <extension module="org.wildfly.extension.ee-security"/>
        <extension module="org.wildfly.extension.elytron"/>
        <extension module="org.wildfly.extension.io"/>
        <extension module="org.wildfly.extension.microprofile.config-smallrye"/>
        <extension module="org.wildfly.extension.microprofile.health-smallrye"/>
        <extension module="org.wildfly.extension.microprofile.metrics-smallrye"/>
        <extension module="org.wildfly.extension.microprofile.opentracing-smallrye"/>
        <extension module="org.wildfly.extension.request-controller"/>
        <extension module="org.wildfly.extension.security.manager"/>
        <extension module="org.wildfly.extension.undertow"/>
	</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">
            	<server-identities>
                	<ssl>
                    <!--	<keystore path="application.keystore" relative-to="jboss.server.config.dir" keystore-password="password" alias="server" key-password="password" generate-self-signed-certificate-host="localhost"/> -->
                    </ssl>
                </server-identities>
                <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>
        	<http-interface security-realm="ManagementRealm">
            	<http-upgrade enabled="true"/>
            	<socket-binding native="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:8.0">
           <console-handler name="CONSOLE">
               <level name="ERROR"/>
               <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="io.jaegertracing.Configuration">
               <level name="WARN"/>
           </logger>
           <logger category="org.jboss.as.config">
               <level name="DEBUG"/>
           </logger>
           <logger category="sun.rmi">
               <level name="WARN"/>
           </logger>
           <root-logger>
               <level name="INFO"/>
               <handlers>
                   <handler name="CONSOLE"/>
                   <handler name="FILE"/>
               </handlers>
           </root-logger>
           <formatter name="PATTERN">
               <pattern-formatter pattern="%d{yyyy-MM-dd 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:batch-jberet:2.0">
           <default-job-repository name="in-memory"/>
           <default-thread-pool name="batch"/>
           <job-repository name="in-menory">
               <in-memory/>
           </job-repository>
           <thread-pool name="batch">
               <max-threads count="10"/>
               <keepalive-time time="30" unit="seconds"/>
           </thread-pool>
       </subsystem>
       <subsystem xmlns="urn:jboss:domain:bean-validation:1.0"/>
       <subsystem xmlns="urn:jboss:domain:core-management:1.0"/>
       <subsystem xmlns="urn:jboss:domain:datasources:5.0">
           <datasources>
               <datasource jndi-name="java:jboss/cubridDS" pool-name="cubridDS" enabled="true">
                   <connection-url>jdbc:cubrid:dbmshost1:33000:db명:::?altHosts=dbmshost2:33000&amp;hold_cursor=no&amp;charset=utf-8</connection-url>
                   <driver-class>cubrid.jdbc.dirver.CUBRIDDriver</driver-class>
                   <driver>cubrid</driver>
                   <pool>
                       <min-pool-size>5</min-pool-size>
                       <max-pool-size>50</max-pool-size>
                       <prefill>false</prefill>
                       <use-strict-min>true</use-strict-min>
                   </pool>
                   <timeout>
                       <blocking-timeout-millis>300000</blocking-timeout-millis>
                       <idle-timeout-minutes>10</idle-timeout-minutes>
                   </timeout>
                   <security>
                       <security-domain>cubrid-password</security-domain>                       
                   </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">
                   <connection-url>jdbc:postgresql://dbmshost1:5432,dbmshost2:5432/postgres</connection-url>
                   <driver-class>org.postgresql.Driver</driver-class>
                   <driver>postgres</driver>
                   <pool>
                       <min-pool-size>5</min-pool-size>
                       <max-pool-size>50</max-pool-size>
                       <prefill>false</prefill>
                       <use-strict-min>true</use-strict-min>
                   </pool>
                   <timeout>
                       <blocking-timeout-millis>300000</blocking-timeout-millis>
                       <idle-timeout-minutes>10</idle-timeout-minutes>
                   </timeout>
                   <security>
                       <security-domanin>cubrid-password</security-domain>
                   </security>                  
                   <validation>
                       <check-valid-connection-sql>select 1</check-valid-connection-sql>
                       <validate-on-match>true</validate-on-match>
                       <background-validation>false</background-validation>
                       <valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.etensions.postgres.PostgreSQLValidConnectionChecker"></valid-connection-checker>
                       <exception-sorter class-name="org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLExceptionSorter"></exception-sorter>
                   </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:2.0">
           <deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="0" scan-enabled="false" runtime-failure-causes-rollback="${jboss.deployment.scanner.rollback.on.failure:false}"/>
       </subsystem>
       <subsystem xmlns="urn:jboss:domain:discovery:1.0"/>
       <subsystem xmlns="urn:jboss:domain:distributable-web:2.0" default-session-management="default" dafault-single-sign-on-management="default">
           <infinispan-session-management name="default" cache-container="web" granularity="SESSION">
               <primary-owner-affinity/>
           </infinispan-session-management>
           <infinispan-single-sign-on-management name="default" cache-container="web" cache="sso"/>
           <infinispan-routing cache-container="web" cache="routing"/>
       </subsystem>
       <subsystem xmlns="urn:jboss:domain:ee:4.0">
           <spec-descriptor-property-replacement>false</spec-descriptor-property-replacement>
           <concurrent>
               <context-services>
                   <context-service name="default" jnid-name="java:jboss/ee/concurrency/context/default" use-transaction-setup-provider="true"/>
               </context-services>
               <managed-thread-factories>
                   <managed-thread-factory name="default" jndi-name="java:jboss/ee/concurrency/factory/default" context-service="default"/>
               </managed-thread-factories>
               <managed-executor-services>
                   <managed-executor-service name="default" jndi-name="java:jboss/ee/concurrency/executor/default" context-service="default" hung-task-threshold="60000" keepalive-time="5000"/>
               </managed-executor-services>
               <managed-scheduled-executor-services>
                   <managed-scheduled-executor-service name="default" jndi-name="java:jboss/ee/concurrency/scheduler/default" context-service="default" hung-task-threshold="60000" keepalive-time="3000"/>
               </managed-scheduled-executor-services>
           </concurrent>
           <default-bindings context-service="java:jboss/ee/concurrency/context/default" datasource="java:/jboss/cubridDS" managed-executor-service="java:jboss/ee/concurrency/scheduler/default" managed-thread-factory="java:jboss/ee/concurrency/factory/default"/>
       </subsystem>
       <subsystem xmlns="urn:jboss:domain:ee-security:1.0"/>
       <subsystem xmlns="urn:jboss:domain:ejb3:6.0">       
           <session-bean>
               <stateless>
                   <bean-instance-pool-ref pool-name="slsb-strict-max-pool"/>
               </stateless>
               <stateful default-access-timeout="5000" cache-ref="simple" passivation-disabled-cache-ref="simple"/>
               <singleton default-access-timeout="5000"/>
           </session-bean>
           <pools>
               <bean-instance-pools>
                   <strict-max-pool name="mdb-strict-max-pool" derive-size="from-cpu-count" instance-acquisition-timeout="5" instance-acquisition-time-unit="MINUTES"/>
                   <strict-max-pool name="slsb-strict-max-pool" derive-size="from-worker-pools" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
               </bean-instance-pools>
           </pools>
           <caches>
               <cache name="simple"/>
               <cache name="distributable" passivation-store-ref="infinispan" aliases="passivating clustered"/>
           </caches>
           <passivation-stores>
               <passivation-store name="infinispan" cache-container="ejb" max-size="10000"/>
           </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="http-remoting-connector" thread-pool-name="default">
               <chnnel-creation-options>
                   <option name="MAX_OUTBOUND-MESSAGES" value="1234" type="remoting"/>
               </chnnel-creation-options>
           </remote>
           <thread-pools>
               <thread-pool name="default">
                   <max-threads count="10"/>
                   <keepalive-time time="60" unit="seconds"/>
               </thread-pool>
           </thread-pools>
           <default-security-domain value="other"/>
           <default-missing-method-permissions-deny-access value="true"/>
           <statistics enabled="${wildfly.ejb3.statistics-enabled:${wildfly.statistics-enabled:false}}"/>
           <log-system-exceptions value="true"/>
       </subsystem>
       <subsystem xmlns="urn:wildfly:elytron:8.0" final-providers="combinde-providers" disallowed-providers="OracleUcrypto">
           <providers>
               <aggregate-providers name="combined-providers">
                   <providers name="elytron"/>
                   <providers name="openssl"/>
               </aggregate-providers>
               <provider-loader name="elytron" module="org.wildfly.security.elytron"/>
               <provider-loader name="openssl" module="org.wildfly.openssl"/>
           </providers>
           <audit-logging>
               <file-audit-log name="local-audit" path="audit.log" relative-to="jboss.server.log.dir" format="JSON"/>
           </audit-logging>
           <security-domains>
               <security-domain name="ApplicationDomain" default-realm="ApplicationRealm" permission-mapper="default-permission-mapper">
                   <realm name="ApplicationRealm" role-decoder="groups-to-roles"/>
                   <realm name="local"/>
               </security-domain>
               <security-domain name="ManagementDomain" default-realm="ManagementRealm" permission-mapper="default-permission-mapper">
                   <realm name="ManagementRealm" role-decoder="groups-to-roles"/>
                   <realm name="local" role-mapper="super-user-mapper"/>
               </security-domain>
           </security-domains>
           <security-realms>
               <identity-realm name="local" identity="$local"/>
               <properties-realm name="ApplicationRealm">
                   <users-properties path="application-users.properties" relative-to="jboss.server.config.dir" digest-realm-name="ApplicationRealm"/>
                   <groups-properties path="application-roles.properties" relative-to="jboss.server.config.dir"/>
               </properties-realm>
               <properties-realm name="ManagementRealm">
                   <users-properties path="mgmt-users.properties" relative-to="jboss.server.config.dir" digest-realm-name="ManagementRealm"/>
                   <groups-properties path="mgmt-groups.properties" relative-to="jboss.server.config.dir"/>
               </properties-realm>
           </security-realms>
           <mappers>
               <simple-permission-mapper name="default-permission-mapper" mapping-mode="first">
                   <permission-mapping>
                       <principal name="anonymous"/>
                       <permission-set name="default-permissions"/>
                   </permission-mapping>
                   <permission-mapping match-all="true">
                       <permission-set name="login-permission"/>
                       <permission-set name="default-permissions"/>
                   </permission-mapping>
               </simple-permission-mapper>
               <constant-realm-mapper name="local" realm-name="local"/>
               <simple-role-decoder name="groups-to-roles" attribute="groups"/>
               <constant-role-mapper name="super-user-mapper">
                   <role name="SuperUser"/>
               </constant-role-mapper>
           </mappers>
           <permission-sets>
               <permission-set name="login-permission">
                   <permission class-name="org.wildfly.security.auth.permission.LoginPermission"/>
               </permission-set>
               <permission-set name="default-permissions">
                   <permission class-name="org.wildfly.extension.batch.jberet.deployment.BatchPermission" module="org.wildfly.extension.batch.jberet" target-name="*"/>
                   <permission class-name="org.wildfly.transaction.client.RemoteTransactionPermission" module="org.wildfly.transaction.client"/>
                   <permission class-name="org.jboss.ejb.client.RemoteEJBPermission" module="org.jboss.ejb-client"/>
               </permission-set>
           </permission-sets>
           <http>
               <http-authentication-factory name="management-http-authentication" security-domain="ManagementDomain" http-server-mechanism-factory="global">
                   <mechanism-configuration>
                       <mechanism mechanism-name="DIGEST">
                           <mechanism-realm realm-name="ManagementRealm"/>
                       </mechanism>
                   </mechanism-configuration>
               </http-authentication-factory>
               <provider-http-server-mechanism-factory name="global"/>
           </http>
           <sasl>
               <sasl-authentication-factory name="application-sasl-authentication" sasl-server-factory="configured" security-domain="ApplicationDomain">
                   <mechanism-configuration>
                       <mechanism mechanism-name="JBOSS-LOCAL-USER" realm-mapper="local"/>
                       <mechanism mechanism-name="DIGEST-MD5">
                           <mechanism-realm realm-name="ApplicationRealm"/>
                       </mechanism>
                   </mechanism-configuration>
               </sasl-authentication-factory>
               <sasl-authentication-factory name="management-sasl-authentication" sasl-server-factory="configured" security-domain="ManagementDomain">
                   <mechanism-configuration>
                       <mechanism mechanism-name="JBOSS-LOCAL-USER" realm-mapper="local"/>
                       <mechanism mechanism-name="DIGEST-MD5">
                           <mechanism-realm realm-name="ManagementRealm"/>
                       </mechanism>
                   </mechanism-configuration>
               </sasl-authentication-factory>
               <configurable-sasl-server-factory name="configured" sasl-server-factory="elytron">
                   <properties>
                       <property name="wildfily.sasl.local-user.default-user" value="$local"/>
                   </properties>
               </configurable-sasl-server-factory>
               <mechanism-provider-filtering-sasl-server-factory name="elytron" sasl-server-factory="global">
                   <filters>
                       <filter provider-name="WildFlyElytron"/>
                   </filters>
               </mechanism-provider-filtering-sasl-server-factory>
               <provider-sasl-server-factory name="global"/>
           </sasl>
       </subsystem>
       <subsystem xmlns="urn:jboss:domain:infinispan:9.0">
           <cache-container name="web" default-cache="dist" module="org.wildfly.clustering.web.infinispan">
               <transport lock-timeout="60000"/>
               <replicated-cache name="sso">
                   <locking isolation="REPEATABLE_READ"/>
                   <transaction mode="BATCH"/>
               </replicated-cache>
               <replicated-cache name="routing"/>
               <distributed-cache name="dist">
                   <locking isolation="REPEATABLE_READ"/>
                   <transaction mode="BATCH"/>
                   <file-store/>
               </distributed-cache>               
           </cache-container>
           <cache-container name="server" aliases="singleton cluster" default-cache="default" module="org.wildfly.clustering.server">
               <transport lock-timeout="60000"/>
                   <transaction mode="BATCH"/>
               </replicated-cache>               
           <cache-container>
           <cache-container name="ejb" aliases="sfsb" default-cache="dist" module="org.wildfly.clustering.ejb.infinispan">
               <transport lock-timeout="60000"/>
               <distributed-cache name="dist">
                   <locking isolation="REPEATABLE_READ"/>
                   <transaction mode="BATCH"/>
                   <file-store/>
               </distributed-cache>               
           <cache-container>    
           <cache-container name="hibernate" module="org.infinispan.hibernate-cache">
               <transport lock-timeout="60000"/>
               <local-cache name="local-query">
                   <object-memory size="10000"/>
                   <expiration max-idle="100000"/>
               </local-cache>
               <invalidation-cache name="entity"/>
                   <object-memory size="10000"/>
                   <expiration max-idle="100000"/>
               </invalidation-cache>
               <replicated-cache name="timestamps"/>
           </cache-container>
       </subsystem>
       <subsystem xmlns="urn:jboss:domain:io:3.0">
           <worker name="default"/>
           <buffer-pool name="default"/>
       </subsystem>
       <subsystem xmlns="urn:jboss:domain:jaxrs:1.0"/>
       <subsystem xmlns="urn:jboss:domain:jca:5.0">
           <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:7.0">
          <channels default="ee">
              <channel name="ee" stack"udp" cluster="ejb"/>
          </channels>
          <stacks>
              <stack name="udp">
                  <transport type="UDP" socket-binding="jgroups-udp"/>
                  <protocol type="PING"/>
                  <protocol type="MERGE3"/>
                  <socket-protocol type="FD_SOCK" socket-binding="jgroups-udp-fd"/>
                  <protocol type="FD_ALL"/>
                  <protocol type="VERIFY_SUSPECT"/>
                  <protocol type="pbcast.NAKACK2"/>
                  <protocol type="UNICAST3"/>
                  <protocol type="pbcast.STABLE"/>
                  <protocol type="pbcast.GMS"/>
                  <protocol type="UFC"/>
                  <protocol type="MFC"/>
                  <protocol type="FRAG3"/>
              </stack>
              <stack name="tcp">
                  <transport type="TCP" socket-binding="jgroups-tcp"/>
                  <!-- <protocol type="TCPPING"/>
                      <property name="initial_hosts">${jboss.cluster.tcp.initial_hosts}</property>
                      <property name="port_range">0</property>
                  </protocol> -->
                  <!-- <socket-protocol type="MPING" socket-binding="jgroups-mping"/> -->
                  <protocol type="MERGE3"/>
                  <socket-protocol type="FD_SOCK" socket-binding="jgroups-tcp-fd"/>
                  <protocol type="FD_ALL"/>
                  <protocol type="VERIFY_SUSPECT"/>
                  <protocol type="pbcast.NAKACK2"/>
                  <protocol type="UNICAST3"/>
                  <protocol type="pbcast.STABLE"/>
                  <protocol type="pbcast.GMS"/>
                  <protocol type="MFC"/>
                  <protocol type="FRAG3"/>
              </stack>
          </stacks>
      </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.1"/>
      <subsystem xmlns="urn:jboss:domain:mail:3.0">
          <mail-session name="default" jndi-name="java:jboss/mail/Default">
              <smtp-server outbound-socket-binding-ref="mail-smtp"/>
          </mail-session>
      </subsystem>
      <subsystem xmlns="urn:wildfly:microprofile-config-smallrye:1.0"/>
      <subsystem xmlns="urn:wildfly:microprofile-health-smallrye:2.0" security-enabled="false" empty-liveness-checks-status="${env.MP_HEALTH_EMPTY_LIVENESS_CHECKS_STATUS:UP}" empty-readiness-checks-status="${env.MP_HEALTH_EMPTY_READINESS_CHECKS_STATUS:UP}"/>
      <subsystem xmlns="urn:wildfly:microprofile-metrics-smallrye:2.0" security-enabled="false" exposed-subsystems="*" prefix="${wildfly.metrics.prefix:jboss}"/>
      <subsystem xmlns="urn:wildfly:microprofile-opentracing-smallrye:1.0"/>
      <subsystem xmlns="urn:jboss:domain:modcluster:5.0">
          <proxy name="default" advertise-socket="modcluster" listener="ajp">
              <dynamic-load-provider>
                  <load-metric type="cpu"/>
              </dynamic-load-provider>
          </proxy>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:naming:2.0">
          <remote-naming/>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:pojo:1.0"/>
      <subsystem xmlns="urn:jboss:domain:remoting:4.0">
          <http-connector name="http-remoting-connector" connector-ref="default" security-realm="ApplicationRealm"/>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:request-controller:1.0"/>
      <subsystem xmlns="urn:jboss:domain:resource-adapters:5.0"/>
      <subsystem xmlns="urn:jboss:domain:sar:1.0"/>
      <subsystem xmlns="urn:jboss:domain:security:2.0">
          <security-domains>
              <security-domain name="cubrid-password" cache-type="default">
                  <authentication>
                      <login-module code="org.picketbox.datasource.security.SecureIdentityLoginModule" flag="required">
                          <module-option name="username" value="public"/>
                          <module-option name="password" value="2d6219b35e931895a11f65ce06a77a33c"/>
                          <module-option name="managedConnectionFactoryName" value="jbossjca:service=LocalTxCM,name=cubridDS"/>
                      </login-module>
                  </authentication>
              </security-domain>
              <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="jaspitest" cache-type="default">
                  <authentication-jaspi>
                      <login-module-stack name="dummy">
                          <login-module code="Dummy" flag="optional"/>
                      </login-module-stack>
                      <auth-module code="Dummy"/>
                  </authentication-jaspi>
              </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:security-manager:1.0">
          <deployment-permissions>
              <maximum-set>
                  <permission class="java.security.AllPermission"/>
              </maximum-set>
          </deployment-permissions>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:singleton:1.0">
          <singleton-policies default="default">
              <singleton-policy name="default" cache-container="server">
                  <simple-election-policy/>
              </singleton-policy>
          </singleton-policies>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:transaction:5.0">
          <core-environment node-identifier="${jboss.tx.node.id:1}">
              <process-id>
                  <uuid/>
              </process-id>
          </core-environment>
          <recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/>
          <coordinator-environment statistics-enabled="${wildfly.transactions.statistics-enabled:${wildfly.statistics-enabled:false}}"/>
          <object-store path="tx-object-store" relative-to="jboss.server.data.dir"/>
      </subsystem>
      <subsystem xmlns="urn:jboss:domain:undertow:10.0" default-server="default-server" default-virtual-host="default-host" default-servlet-container="default" default-security-domain="other" statistics-enabled="${wildfly.undertow.statistics-enabled:${wildfly.statistics-enabled:false}}">
          <buffer-cache name="default"/>
          <server name="default-server">
              <ajp-listener name="ajp" max-post-size="524288000" socket-binding="ajp" max-connections="1024"/>
              <http-listener name="default" max-post-size="524288000" socket-binding="http" redirect-socket="https" enable-http2="true"/>
              <https-listener name="https" max-post-size="524288000" socket-binding="https" security-realm="ApplicationRealm" enable-http2="true"/>
              <host name="default-host" alias="localhost">
                  <location name="/" handler="welcom-content"/>
                  <http-invoker security-realm="ApplicationRealm"/>
                  <filter-ref name="secret-checker" predicate="equals(%p,${jboss.ajp.port:8009})"/>
              </host>
          </server>
          <servlet-container name="default">
              <jsp-config x-powered-by="false" development="false" check-interval="60"/>
              <websockets/>
          </servlet-container>
          <filters>
              <expression-filter name="secret-checker" expression="not equals(%{r,secret}, 'Q2xvdWQxMjMj') -> response-code(403)"/>
          </filters>
          <handlers>
              <file name="welcome-content" path="${jboss.home.dir}/welcome-content"/>
          </handlers>
      </subsystem>                 
      <subsystem xmlns="urn:jboss:domain:webservices:2.0" statistics-enabled="${wildfly.webservices.statistics-enabled:${wildfly.statistics-enabled:false}}">
          <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:4.0"/>
   </profile>
   <interfaces>
       <interface name="management">
           <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
       </interface>
       <interface name="private">
           <inet-address value="${jboss.bind.address.private:127.0.0.1}"/>
       </interface>
       <interface name="public">
           <inet-address value="${jboss.bind.address: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="ajp" port="8009"/>
       <socket-binding name="http" port="8081"/>
       <socket-binding name="https" port="8443"/>
       <socket-binding name="jgroups-mping" interface="private" multicast-address="${jboss.default.multicast.address:230.0.0.4}" multicast-port="45700"/>
       <socket-binding name="jgroups-tcp" interface="public" port="7600"/>
       <socket-binding name="jgroups-tcp-fd" interface="public" port="57600"/>
       <socket-binding name="jgroups-udp" interface="public" port="55200" multicast-address="${jboss.default.multicast.address:230.0.0.4}" multicast-port="45688"/>
       <socket-binding name="jgroups-udp-fd" interface="public" port="54200"/>
       <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:9993}"/>
       <socket-binding name="modcluster" multicast-address="${jboss.modcluster.multicast.address:224.0.1.105}" multicast-port="23364"/>
       <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>

 

반응형

댓글