Skip to content

Commit e5c65fd

Browse files
authored
Merge pull request #1696 from marklogic/feature/mail-fix
Using different impl of jakarta.mail
2 parents df2a4e9 + 7bfc624 commit e5c65fd

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

marklogic-client-api/build.gradle

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@ dependencies {
2121
implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0'
2222
implementation 'io.github.rburgst:okhttp-digest:2.7'
2323

24-
// https://eclipse-ee4j.github.io/angus-mail/ recommends using these two separate dependencies.
25-
implementation "jakarta.mail:jakarta.mail-api:2.1.3"
26-
implementation "org.eclipse.angus:angus-mail:2.0.3"
24+
// We tried upgrading to the org.eclipse.angus:angus-mail dependency, but we ran into significant performance issues
25+
// with using the Java Client eval call in our Spark connector. Example - an eval() call for getting 50k URIs would
26+
// take 50s instead of 2 to 3s. Haven't dug into the details, but seems like the call isn't lazy and the entire set
27+
// of URIs is being retrieved. This implementation - in the old "com.sun.mail" package but still adhering to the new
28+
// jakarta.mail API - works fine and performs well for eval calls.
29+
implementation "com.sun.mail:jakarta.mail:2.0.1"
2730

2831
implementation 'javax.ws.rs:javax.ws.rs-api:2.1.1'
2932
implementation 'org.slf4j:slf4j-api:1.7.36'

0 commit comments

Comments
 (0)