aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/gv/egiz/moazs/client
diff options
context:
space:
mode:
authorChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-10-30 15:54:56 +0100
committerChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-10-30 16:04:03 +0100
commitfca03ea334be5eb34e919a5cc7ca8bc25d79a564 (patch)
tree6566a09b7a51ee4bf0aef3a828ba15e55d5c0166 /src/main/java/at/gv/egiz/moazs/client
parent5a28668a1db53cd5fe54b65aeaf88b241918c01b (diff)
downloadmoa-zs-fca03ea334be5eb34e919a5cc7ca8bc25d79a564.tar.gz
moa-zs-fca03ea334be5eb34e919a5cc7ca8bc25d79a564.tar.bz2
moa-zs-fca03ea334be5eb34e919a5cc7ca8bc25d79a564.zip
Remove JAXB Class Not Found Fix
- Problem: Apparently I used the wrong executor when supplying the backend tasks via CompletableFuture.supplyAsync(). This method relies on ForkJoinPool.commonPool(), and threads in this pool are not configured correctly? - Solution: Use spring-boots auto-configured TaskExecutor. - More Information on this issue can be found here: https://issues.apache.org/jira/browse/CXF-8100#
Diffstat (limited to 'src/main/java/at/gv/egiz/moazs/client')
-rw-r--r--src/main/java/at/gv/egiz/moazs/client/ClientFactory.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/at/gv/egiz/moazs/client/ClientFactory.java b/src/main/java/at/gv/egiz/moazs/client/ClientFactory.java
index 04eedab..a14e693 100644
--- a/src/main/java/at/gv/egiz/moazs/client/ClientFactory.java
+++ b/src/main/java/at/gv/egiz/moazs/client/ClientFactory.java
@@ -23,7 +23,6 @@ package at.gv.egiz.moazs.client;
import at.gv.egiz.moazs.preprocess.ConfigUtil;
import at.gv.egiz.moazs.util.FileUtils;
-import at.gv.egiz.moazs.util.JAXBClassNotFoundFix;
import at.gv.egiz.moazs.util.StoreSOAPBodyBinaryInRepositoryInterceptor;
import at.gv.zustellung.app2mzs.xsd.ClientType;
import at.gv.zustellung.app2mzs.xsd.KeyStoreType;
@@ -42,9 +41,9 @@ import org.apache.cxf.transports.http.configuration.HTTPClientPolicy;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.lang.Nullable;
import org.springframework.stereotype.Component;
-import javax.annotation.Nullable;
import javax.net.ssl.SSLContext;
import javax.xml.ws.BindingProvider;
import javax.xml.ws.soap.SOAPBinding;
@@ -86,7 +85,7 @@ public class ClientFactory {
* @return the client
*/
public <T> T create(ClientType params, Class<T> clazz) {
- return JAXBClassNotFoundFix.runInTheadWithClassClassLoader(() -> create(params, clazz, true));
+ return create(params, clazz, true);
}
/**
@@ -96,7 +95,7 @@ public class ClientFactory {
* @return the client
*/
public <T> T createSoap11(ClientType params, Class<T> clazz) {
- return JAXBClassNotFoundFix.runInTheadWithClassClassLoader(() -> create(params, clazz, false));
+ return create(params, clazz, false);
}