You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by bt...@apache.org on 2021/10/12 01:47:58 UTC
[james-project] branch master updated: JAMES-3261 JPA: extra JDBC
driver running the ZIPped apps (#684)
This is an automated email from the ASF dual-hosted git repository.
btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
The following commit(s) were added to refs/heads/master by this push:
new dd6b414 JAMES-3261 JPA: extra JDBC driver running the ZIPped apps (#684)
dd6b414 is described below
commit dd6b41484b3e2413b7f4141d2124b1f0996e4354
Author: Benoit TELLIER <bt...@linagora.com>
AuthorDate: Tue Oct 12 08:47:52 2021 +0700
JAMES-3261 JPA: extra JDBC driver running the ZIPped apps (#684)
---
server/apps/jpa-app/README.adoc | 26 +++++++++++++++++++++++++-
server/apps/jpa-smtp-app/README.adoc | 26 +++++++++++++++++++++++++-
2 files changed, 50 insertions(+), 2 deletions(-)
diff --git a/server/apps/jpa-app/README.adoc b/server/apps/jpa-app/README.adoc
index 08b87e8..2046436 100644
--- a/server/apps/jpa-app/README.adoc
+++ b/server/apps/jpa-app/README.adoc
@@ -25,7 +25,11 @@ Once everything is set up, you just have to run the jar with:
[source]
----
-$ java -javaagent:james-server-jpa-guice.lib/openjpa-3.1.2.jar -Dworking.directory=. -Djdk.tls.ephemeralDHKeySize=2048 -Dlogback.configurationFile=conf/logback.xml -jar james-server-jpa-app.jar
+$ java -javaagent:james-server-jpa-app.lib/openjpa-3.1.2.jar \
+ -Dworking.directory=. \
+ -Djdk.tls.ephemeralDHKeySize=2048 \
+ -Dlogback.configurationFile=conf/logback.xml \
+ -jar james-server-jpa-app.jar
----
Note that binding ports below 1024 requires administrative rights.
@@ -89,6 +93,26 @@ Note that you can create a domain via an environment variable. This domain will
=== Using alternative JDBC drivers
+==== Using alternative JDBC drivers with the ZIP package
+
+We will need to add the driver JAR on the classpath.
+
+This can be done with the following command:
+
+....
+java \
+ -javaagent:james-server-jpa-app.lib/openjpa-3.1.2.jar \
+ -Dworking.directory=. \
+ -Djdk.tls.ephemeralDHKeySize=2048 \
+ -Dlogback.configurationFile=conf/logback.xml \
+ -cp "james-server-jpa-app.jar:james-server-jpa-app.lib/*:jdbc-driver.jar" \
+ org.apache.james.JPAJamesServerMain
+....
+
+With `jdbc-driver.jar` being the JAR file of your driver, placed in the current directory.
+
+==== Using alternative JDBC drivers with docker
+
In `james-database.properties`, one can specify any JDBC driver on the class path.
With docker, such drivers can be added to the classpath by placing the driver JAR in a volume
diff --git a/server/apps/jpa-smtp-app/README.adoc b/server/apps/jpa-smtp-app/README.adoc
index 501be1a..b6aea77 100644
--- a/server/apps/jpa-smtp-app/README.adoc
+++ b/server/apps/jpa-smtp-app/README.adoc
@@ -27,7 +27,11 @@ Once everything is set up, you just have to run the jar with:
[source]
----
-$ java -javaagent:james-server-jpa-smtp-guice.lib/openjpa-3.1.2.jar -Dworking.directory=. -Djdk.tls.ephemeralDHKeySize=2048 -Dlogback.configurationFile=conf/logback.xml -jar james-server-jpa-smtp-app.jar
+$ java -javaagent:james-server-jpa-smtp-app.lib/openjpa-3.1.2.jar \
+ -Dworking.directory=. \
+ -Djdk.tls.ephemeralDHKeySize=2048 \
+ -Dlogback.configurationFile=conf/logback.xml \
+ -jar james-server-jpa-smtp-app.jar
----
Note that binding ports below 1024 requires administrative rights.
@@ -91,6 +95,26 @@ Note that you can create a domain via an environment variable. This domain will
=== Using alternative JDBC drivers
+==== Using alternative JDBC drivers with the ZIP package
+
+We will need to add the driver JAR on the classpath.
+
+This can be done with the following command:
+
+....
+java \
+ -javaagent:james-server-jpa-smtp-app.lib/openjpa-3.1.2.jar \
+ -Dworking.directory=. \
+ -Djdk.tls.ephemeralDHKeySize=2048 \
+ -Dlogback.configurationFile=conf/logback.xml \
+ -cp "james-server-jpa-smtp-app.jar:james-server-jpa-app.lib/*:jdbc-driver.jar" \
+ org.apache.james.JPAJamesServerMain
+....
+
+With `jdbc-driver.jar` being the JAR file of your driver, placed in the current directory.
+
+==== Using alternative JDBC drivers with docker
+
In `james-database.properties`, one can specify any JDBC driver on the class path.
With docker, such drivers can be added to the classpath by placing the driver JAR in a volume
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org