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
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>