diff --git a/camel/pom.xml b/camel/pom.xml index be0db53..dbd53fa 100644 --- a/camel/pom.xml +++ b/camel/pom.xml @@ -127,12 +127,6 @@ 0.0.3 - - io.github.theprez - dotenv-java-ibmi - 0.0.1 - - org.apache.logging.log4j diff --git a/camel/src/main/java/com/github/theprez/manzan/ManzanMainApp.java b/camel/src/main/java/com/github/theprez/manzan/ManzanMainApp.java index 67a0e4a..e0ac744 100644 --- a/camel/src/main/java/com/github/theprez/manzan/ManzanMainApp.java +++ b/camel/src/main/java/com/github/theprez/manzan/ManzanMainApp.java @@ -18,9 +18,6 @@ import com.ibm.as400.access.AS400JDBCDataSource; import com.ibm.as400.access.AS400Message; import com.ibm.as400.access.CommandCall; -import com.ibm.as400.access.Job; - -import io.github.theprez.dotenv_ibmi.IBMiDotEnv; /** * A Camel Application that routes messages from an IBM i message queue to @@ -95,7 +92,7 @@ private static void printVersionInfo() { System.exit(-1); } try { - AS400 as400 = IBMiDotEnv.getCachedSystemConnection(true); + AS400 as400 = ApplicationConfig.get().getRemoteConnection(); CommandCall cmd = new CommandCall(as400, "CALL PGM(" + library.trim() + "/handler) PARM('*VERSION' '*VERSION')"); diff --git a/camel/src/main/java/com/github/theprez/manzan/WatchStarter.java b/camel/src/main/java/com/github/theprez/manzan/WatchStarter.java index 2ff5163..fe1a461 100644 --- a/camel/src/main/java/com/github/theprez/manzan/WatchStarter.java +++ b/camel/src/main/java/com/github/theprez/manzan/WatchStarter.java @@ -19,8 +19,6 @@ import com.ibm.as400.access.ProgramCall; import com.ibm.as400.access.ProgramParameter; -import io.github.theprez.dotenv_ibmi.IBMiDotEnv; - public class WatchStarter { private final String m_command; private final String m_stopCommand; diff --git a/camel/src/main/java/com/github/theprez/manzan/routes/ManzanGenericCamelRoute.java b/camel/src/main/java/com/github/theprez/manzan/routes/ManzanGenericCamelRoute.java index 6975972..aaaf621 100644 --- a/camel/src/main/java/com/github/theprez/manzan/routes/ManzanGenericCamelRoute.java +++ b/camel/src/main/java/com/github/theprez/manzan/routes/ManzanGenericCamelRoute.java @@ -1,7 +1,5 @@ package com.github.theprez.manzan.routes; -import java.io.UnsupportedEncodingException; -import java.net.URLEncoder; import java.util.HashMap; import java.util.Map; import java.util.Map.Entry;