어플리케이션 설정 파일

어플리케이션 부팅을 위한 환경 설정 정보를 포함하고 있다. 이 설정 파일을 통해 메타 데이터베이스 접속정보, 시스템 사용 이메일 및 관련 설정 정보 등을 포함한다.

인스톨 하기 전 다음 명령어를 실행하면 자동으로 설정 파일에 대한 정보를 인터렉티브 프롬프트를 통해 자동으로 수정 업데이트 반영된다.

  APP_HOME/config/amplix.properties

[META_DATABASE] 섹션을 사용하고자 하는 메타 데이터베이스 접속 정보로 수정한 후 저장한다.

On booting time, database connection password, email automatically encrypted and the value changes to starting {ENC} and followed encrypted codes. This protects and secure important database configuration information from leaking outside.

 

설정 파일 상세 구조

정 파일의 섹션별 설정값 목록

설정 노드의 상세 정보는 아래와 같습니다:

[META_DATABASE] 섹션

파라미터

설명

기본값

비고

connection_method

Connecion pool method selection

Tomcat Connection Pool

connectionpool

 

 

 

autocommit

maxpoolsize

 

 

 

monitor

 

 

 

 

[META_DATABSE] JDBC 접속 정보

파라미터

설명

기본값

비고

databasetype

mysql / oracle / apacheembd / postgress / mssql
db2 / as400 / sybase_iq

jdbcdriver

com.mysql.jdbc.Driver

jdbcurl

jdbc:mysql://localhost/bo_dev_01

userid

password

userowlimit

validatesql

 

설정 파일 정보 및 구조

다음은 amplix.properties 설정 파일의 예제입니다.

데이터베이스 패스워드 정보, 이메일 패스워드 등 보안이 필요한 항목은 어플리케이션 시작시 자동으로 암호화 되어 저장됩니다. 설정 파일 변경 후, 웹서버 재시작을 하여야 변경 사항이 서버에 반영됩니다.

[META_DATABASE]
############################################################################
# database general settings
############################################################################
connection_method****************** = "tomcat_dbcp"
connectionpool************************ = true
autocommit****************************************** = true
maxpoolsize**************************************** = 20
monitor************************************************ = false
 
# data base connection information only system applies first matching values
# password is automatically encrypted after server startup
databasetype="mysql"
jdbcdriver="com.mysql.jdbc.Driver"
jdbcurl="jdbc:mysql://localhost/bo_dev_01"
userid="root"
password = *Your password"
validatesql="select 1"
 
#automatically ignores bellow. delete settings after leaving top node
##--------------------------------------------------------------------------
databasetype="oracle"
jdbcdriver="oracle.jdbc.OracleDriver"
jdbcurl="jdbc:oracle:thin:@localhost:1521:orcl"
userid=
password=
schemaname=
validatesql="select 1 from dual"
 
databasetype="apacheembd"
jdbcdriver="org.apache.derby.jdbc.EmbeddedDriver"
jdbcurl="jdbc:derby:c:/workspace/metadata;create=true"
userid=
password=
schemaname=
validatesql="select 1 from sysibm.sysdummy1"
 
databasetype="oracle"
jdbcdriver="oracle.jdbc.OracleDriver"
jdbcurl="jdbc:oracle:thin:@localhost:1521:orcl"
userid=
password=
schemaname=
validatesql="select 1 from dual"
 
databasetype="postgresql"
jdbcdriver="org.postgresql.Driver"
jdbcurl="jdbc:postgresql://localhost:5432/dbname"
userid=
password=
schemaname=
validatesql="select 1"
##--------------------------------------------------------------------------
 
[APPLICATION]
############################################################################
# Application specific settings
############################################################################
appliction.mainpage.mdi ********************************************************** = "../launcher/analytics.jsp"
appliction.mainpage.dashboard *********************************** = "../launcher/dashboard.jsp"
 
[SCHEDULE_SERVER]
############################################################################
# Scheduler server information
############################################################################
acceptcount***************************** = 10
defaultlocale**************** = "en_US"
idletimeout******************************* = 0
ignore_error***************** = false
maxthreads****************************** = 30
minthreads******************************* = 0
port***************************************** = 4504
serverhost******************************** = 127.0.0.1
servername****************************** = "mecsvr"
session_expire************* = 600
defaultdateformat********* = "''yy-MM-dd hh:mm:ss a"
 
[SERVER_BOOT_CONFIG]
############################################################################
# Apache embedded boot server configuration
############################################################################
server_port****************************** = 8280
server_protocol = HTTP
 
https_keyalias ************* = keyAlias
https_keystore_pass = "changeit"
https_keystore_file = "keystore.jks"
https_ssl_protocol ******* = TLS
context_root **************** = "/"
 
shutdown_port************* = 6680
 

 

$TOMCAT/bin/startup.bat (Unix: $TOMCAT/bin/startup.sh) 파일을 통해 서버 서비스를 시작 하십시오.

웹브라우저에 아래 URL 을 입력하여 서버가 정상적으로 로드 되었는 지 확인 하십시오.

http://localhost:8080/amplix/