-
Notifications
You must be signed in to change notification settings - Fork 71
EeConfig
cen1 edited this page Aug 4, 2020
·
7 revisions
Use the EeConfig
object to access the entire current KumuluzEE configuration. The object is constructed using the configuration framework as described here. The current object can be retrieved using its following static method:
EeConfig eeConfig = EeConfig.getInstance();
The object contains getter methods with the same name as every property possible in the KumuluzEE configuration. An example of a full config can be found below.
kumuluzee:
name: testapp
version: 1.0.0
env:
prod: true
name: production
dev:
webapp-dir: webresources
server:
base-url: https://localhost
show-server-info: true
context-path: /
dir-browsing: false
force-https: false
min-threads: 5
max-threads: 100
http:
port: 9080
address: 0.0.0.0
http2: true
proxy-forwarding: true
request-header-size: 8192
response-header-size: 8192
idle-timeut: 3600000
so-linger-time: -1
https:
enabled: false
port: 9443
http2: true
keystore-path: /Users/tilen/Playgrounds/keystore
keystore-password: password
key-alias: test
key-password: password
ssl-protocols: TLSv1.1,TLSv1.2
ssl-ciphers: >
TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,
TLS_DHE_RSA_WITH_AES_128_CBC_SHA256
gzip:
enabled: false
min-gzip-size: [integer]
included-methods: [list]
included-mime-types: [list]
excluded-mime-types: [list]
excluded-agent-patterns: [list]
excluded-paths: [list]
included-paths: [list]
datasources:
- jndi-name: jdbc/SampleDS
driver-class: org.postgresql.Driver
datasource-class: org.postgresql.ds.PGSimpleDataSource
connection-url: jdbc:postgresql://localhost:5432/postgres
username: postgres
password: postgres
pool:
auto-commit: true
flush-on-close: false
connection-timeout: 30000
idle-timeout: 600000
max-lifetime: 1800000
min-idle: null [deprecated]
initial-size: 0
min-size: 0
max-size: 10
name: sample-ds [deprecated]
initialization-fail-timeout: 1 [deprecated]
isolate-internal-queries: false [deprecated]
allow-pool-suspension: false [deprecated]
read-only: true [deprecated]
register-mbeans: false [deprecated]
connection-init-sql: null
transaction-isolation: null
validation-timeout: 5000
leak-detection-threshold: 0
idle-validation-timeout: 0
connection-valid-sql: null
props:
database-metadata-cache-fields: 65538
xa-datasources:
- jndi-name: jdbc/PostgresXADS
xa-datasource-class: org.postgresql.xa.PGXADataSource
username: postgres
password: postgres
pool:
auto-commit: true
flush-on-close: false
connection-timeout: 30000
idle-timeout: 600000
max-lifetime: 1800000
min-idle: null [deprecated]
initial-size: 0
min-size: 0
max-size: 10
name: sample-ds [deprecated]
initialization-fail-timeout: 1 [deprecated]
isolate-internal-queries: false [deprecated]
allow-pool-suspension: false [deprecated]
read-only: true [deprecated]
register-mbeans: false [deprecated]
connection-init-sql: null
transaction-isolation: null
validation-timeout: 5000
leak-detection-threshold: 0
idle-validation-timeout: 0
connection-valid-sql: null
props:
server-name: localhost
port-number: 5432
database-name: postgres
persistence-units:
- name: "kumuluzee-samples-jpa"
continue-on-error: false
- name: "kumuluzee-samples-jpa-failed"
continue-on-error: true