Date: Thu, 28 Mar 2024 08:20:07 +0000 (UTC) Message-ID: <823152040.31.1711614007850@da62a927ae84> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_30_1050565369.1711614007849" ------=_Part_30_1050565369.1711614007849 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Spring Boot as runtime framework of OpenHub supports runni= ng standalone via executable jar/war. This feature is also supported by= OpenHub framework.
OpenHub uses fat war approach - basically all necessary dependencies are= packaged together and this war archive can by l= aunched by Spring Boot WarLauncher. To package all dependencies (DB = drivers, embedded servlet container and so on) it is necessary to = use maven profile esb.executable:
mvn cle= an && mvn package -P esb.executable
Result of build can be found in war/target/openhub-exec.war (relative to root of project).
Be careful if additional maven profiles are activated= dynamically, for example esb.dev (or esb.prod). Recommen= ded approach is to strictly define which maven profiles should be touch int= o account.
By default OpenHub uses Tomcat as embedded servlet container. Actually T= omcat 8.x is used, but it is possible to change version of tomcat:
<prop= erties> <tomcat.version>8.0.3</tomcat.version> </properties>
If H2 database is used, it is possible to use persistent type of H2 (emb=
edded mode, not in-memory mode), but H2 database must be initialized correc=
tly. Initialization of H2 is automatic if flyway.enabled=3Dtrue=
(default value in application.properties). See more=
information how to use Flyway.
There are many ways how OpenHub (generally Spring Boot application= ) can be started:
via command line (in root of project where = OpenHub is dowloaded or cloned):= p>
java $J= AVA_OPTS -Dserver.port=3D8080 -Dspring.profiles.active=3Dexample-module,h2 = -jar war/target/openhub-exec.war
After OpenHub runs you can verify that everything is ok via http://localhost:8080/http/version (if you use default serve= r address and port binding). Or look at Admin GUI (see = login credentials) at address http:= //localhost:8080/web/admin/console/
By default OpenHub is started on root context and 8080 port, but it can = be customized with for example JVM arguments:
java $J= AVA_OPTS -Dserver.port=3D8080 -Dspring.profiles.active=3Dexample-module,h2 = -jar war/target/openhub-exec.war