Work in progress.
One could say that's 'kee', but the 'j' stands for jakarta
now.
Run it on intellij mostly because kotlin support, but i hope to keep it as agnostic as possible.
Works on Payara server but should work on other jee-compliant servers
A few goals in order to say "hey this kotlin thing might really works on JEE"
- simple hello world-ish features proven to be quite simple
- better instructions regarding jdbc driver and datasource configurations
- payara
- wildfly
- websphere open liberty
- better instructions regarding jdbc driver and datasource configurations
- figure out a decent schema migration: flywaydb
- enable integration tests
- modularize the gradle project
- a project just for the models
- one or more projects for the services
- one web facade project for the controllers
- one for the frontend itself, but maybe not
- working on most app servers
- payara
- wildfly
- websphere open liberty
- make it respect profile settings (development, test, production)
- prove that it works on any jee8-compatible app server
- payara
- wildfly
- websphere open liberty
- run devmode on other IDE's than intellij ultimate
- https://vorozco.com/blog/2019/2019-04-17-Evaluating-Kotlin-caveats-JavaEE.html
- https://kotlinlang.org/docs/reference/compiler-plugins.html#all-open-compiler-plugin
Configuring a datasource at app-server level is essential in JEE world.
Piece of cake!
Take your reading, and always prefer to use admin tools instead of past random xml files over the app-server!
Various ways to set up the driver as a module and how to define a datasource
- https://ralph.blog.imixs.com/2016/10/22/wildfly-install-postgresql-jdbc-driver-as-a-module/
- https://cleanprogrammer.net/how-to-configure-datasource-in-wildfly/
- http://www.adam-bien.com/roller/abien/entry/installing_oracle_jdbc_driver_on
- https://www.stenusys.com/how_to_setup_postgresql_datasource_with_wildfly/ (see 'option 3')
- http://www.mastertheboss.com/jboss-server/jboss-datasource/jboss-datasource-configuration
The very very important step about how to delegate transaction to the bean
How to change the default domain datasource, since there is a bug
- searching...
The download the full jee profile version.
- https://openliberty.io/blog/2018/06/29/full_java_ee_8_liberty_18002.html
- https://openliberty.io/blog/2019/09/13/testing-database-connections-REST-APIs.html
- https://openliberty.io/docs/ref/config/#dataSource.html#dataSource/properties.postgresql
Please note that default WAS port is 9080 instead of 8080 like their cousins.