-
Notifications
You must be signed in to change notification settings - Fork 7
Application Configuration
homedirectory edited this page Oct 9, 2024
·
5 revisions
TG applications are configured with a .properties file.
Typically, one has a file named application.properties located in the app-web-server directory,
which is then specified as the first argument on the command line to the Java application.
This section describes parameters that can be specified in a .properties file to configure TG applications.
-
email.smtp- address of the mail server where emails will be sent (e.g., for password reset).- A string matching pattern
HOST(:PORT)?; the default port is25.
- A string matching pattern
This category of parameters controls various aspects of dynamic property access, which affects performance.
-
dynamicPropertyAccess.caching- one of {enabled,disabled,auto}. -
dynamicPropertyAccess.typeCache- configures the main type cache (see cache parameters below) -
dynamicPropertyAccess.tempTypeCache- configures the temporary type cache (see cache parameters below)
Cache parameters:
-
concurrEncyLevel- a non-negative decimal; -
maxSize- a non-negative decimal; -
expireAfterAccess- a duration specifier; Specifies that each entry should be automatically removed from the cache once a fixed duration has elapsed after the entry's creation, the most recent replacement of its value, or its last access. -
expireAfterWrite- a duration specifier; Specifies that each entry should be automatically removed from the cache once a fixed duration has elapsed after the entry's creation, or the most recent replacement of its value.
Glossary:
- Duration specifier - a non-negative decimal followed by a unit character.
-
Unit character - one of:
-
s- seconds; -
m- minutes; -
h- hours; -
d- days;
-
Configuration example:
dynamicPropertyAccess.caching = ENABLED
dynamicPropertyAccess.typeCache.concurrencyLevel = 100
dynamicPropertyAccess.typeCache.expireAfterAccess = 12h
dynamicPropertyAccess.tempTypeCache.maxSize = 2048
dynamicPropertyAccess.tempTypeCache.expireAfterWrite = 10mPer aspera ad astra
- Web UI Design and Web API
- Safe Communication and User Authentication
- Gitworkflow
- JavaScript: Testing with Maven
- Java Application Profiling
-
TG Development Guidelines
- TG Releases
- TLS and HAProxy for development
- TG Development Checklist
- Entity
- Entities and their validation
- Entity Properties
- Entity Type Enhancement
- EQL
- Tooltip How To
- All about Matchers
- All about Fetch Models
- Streaming data
- Synthetic entities
- Activatable entities
- Jasper Reports
- Opening Compound Master from another Compound Master
- Window management test plan
- Multi Time Zone Environment
- GraphQL Web API
- Guice
- Maven
- RichText Data Migration
- Full Text Search
- Deployment recipes
- Application Configuration
- Observability
- JRebel Installation and Integration
- Compile-time mechanisms
- Work in progress