Skip to main content

Application Settings

Applications can further be configured with settings in the ApplicationInstance.

project
├── conf
├── applications
├── components
├── settings
. ├── businessLogicSettings
│ └── tomee_posgres_hibernate.xml
├── globalOptionSettings
│ └── modern.xml
├── presentationSettings
│ └── knockout_bootstrap.xml
└── technicalInfrastructure
│ └── java_11.xml

You can have multiple instances of each setting type and then refer to them by name in the ApplicationInstance:

applicationInstance1.xml
<applicationInstance name="applicationInstance1">
<globalOptionSettings name="Modern"/>
<presentationSettings name="Knockout Bootstrap"/>
<businessLogicSettings name="TomEE Postgres Hibernate"/>
<technicalInfrastructure name="Java 11"/>
</applicationInstance>

Global Option Settings

Here you can toggle several features for your application

tomee_posgres_hibernate.xml
<globalOptionSettings name="Modern">
<counterDefault>IDENTITY</counterDefault>
<useJavaEESecurity>FALSE</useJavaEESecurity>
<buildEngine>MAVEN</buildEngine>
<beanInterfacePolicy>BOTH</beanInterfacePolicy>
<enforceHttpMethod>false</enforceHttpMethod>
<useCsrfProtection>false</useCsrfProtection>
<generateArtifactLabel>false</generateArtifactLabel>
</globalOptionSettings>
List of GlobalOptionSettings features
Deprecated

These settings have been deprecated. See Expanders 5.15.0

optiondescription
counterDefaultCan be GLOBAL or IDENTITY. If set to GLOBAL, new database id's will be taken from a global counter.
useJavaEESecurityDisables authentication using the account Component. You can also leave the account Component out of your application or use the option struts.security.custom.
buildEngineTechnology used to build the Application. Currently only Maven is supported.
beanInterfacePolicyCan be BOTH (default), LOCAL or REMOTE. This will define whether bean classes in the Application have a Local and/or Remote interface.
enforceHttpMethodIf set to true, requests using the wrong http methods will be rejected.
useCsrfProtectionIf set to true, requests are implemented with a mechanism to protect against Cross Site Request Forgery attacks.
generateArtifactLabelIf set to true, versions of the artifacts in the Application will get a postfix to make them unique for the application.

Presentation Settings

Here you can configure the technologies used in the view layer.

knockout_bootstrap.xml
<presentationSettings name="Knockout Bootstrap">
<version>2.1</version>
<viewStyler name="BOOTSTRAP"/>
<viewController name="KNOCKOUT"/>
</presentationSettings>

Business Logic Settings

Here you can configure technologies used in the backend.

tomee_posgres_hibernate.xml
<businessLogicSettings name="TomEE Postgres Hibernate">
<targetDatabase name="POSTGRESQL"/>
<persistenceProvider name="HIBERNATE"/>
<transactionProvider name="EJB3"/>
<applicationServer name="JAVAEE6"/>
</businessLogicSettings>

Technical Infrastructure

Here you can define versions of underlying technologies.

java_11.xml
<technicalInfrastructure name="Java 11">
<javaVersion>jdk11</javaVersion>
<jeeVersion>7</jeeVersion>
</technicalInfrastructure>