diff --git a/samples/smb/pom.xml b/samples/smb/pom.xml
index fd1d568..09654ed 100644
--- a/samples/smb/pom.xml
+++ b/samples/smb/pom.xml
@@ -10,16 +10,12 @@
smb
http://www.springsource.org/spring-integration
-
- 2.2.1
-
-
UTF-8
- 2.2.1.RELEASE
- 1.0.0.BUILD-SNAPSHOT
- 1.2.17
- 4.11
+ 5.0.5.RELEASE
+ 1.0.0.RELEASE
+ 2.11.0
+ 4.12
@@ -34,7 +30,7 @@
maven-eclipse-plugin
- 2.9
+ 2.10
org.springframework.ide.eclipse.core.springnature
@@ -49,10 +45,10 @@
org.apache.maven.plugins
maven-compiler-plugin
- 3.0
+ 3.6.1
- 1.6
- 1.6
+ 1.8
+ 1.8
-Xlint:all
true
true
@@ -61,7 +57,7 @@
org.codehaus.mojo
exec-maven-plugin
- 1.2.1
+ 1.6.0
org.springframework.integration.samples.smb.Main
@@ -103,8 +99,14 @@
- log4j
- log4j
+ org.apache.logging.log4j
+ log4j-slf4j-impl
+ ${log4j.version}
+
+
+
+ org.apache.logging.log4j
+ log4j-jcl
${log4j.version}
diff --git a/samples/smb/src/main/java/org/springframework/integration/samples/smb/Main.java b/samples/smb/src/main/java/org/springframework/integration/samples/smb/Main.java
index 6963c7b..9cdd3dc 100644
--- a/samples/smb/src/main/java/org/springframework/integration/samples/smb/Main.java
+++ b/samples/smb/src/main/java/org/springframework/integration/samples/smb/Main.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2013 the original author or authors.
+ * Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -13,11 +13,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package org.springframework.integration.samples.smb;
import java.util.Scanner;
-import org.apache.log4j.Logger;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
import org.springframework.context.support.GenericXmlApplicationContext;
import org.springframework.integration.smb.session.SmbSessionFactory;
@@ -26,12 +29,14 @@ import org.springframework.integration.smb.session.SmbSessionFactory;
* Starts the Spring Context and will initialize the Spring Integration routes.
*
* @author Gunnar Hillert
+ * @author Artem Bilan
+ *
* @since 1.0
*
*/
public final class Main {
- private static final Logger LOGGER = Logger.getLogger(Main.class);
+ private static final Log LOGGER = LogFactory.getLog(Main.class);
private Main() { }
@@ -115,4 +120,5 @@ public final class Main {
System.exit(0);
}
+
}
diff --git a/samples/smb/src/main/resources/log4j.xml b/samples/smb/src/main/resources/log4j.xml
deleted file mode 100644
index ca8ef90..0000000
--- a/samples/smb/src/main/resources/log4j.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/samples/smb/src/main/resources/log4j2-test.xml b/samples/smb/src/main/resources/log4j2-test.xml
new file mode 100644
index 0000000..e5d5eea
--- /dev/null
+++ b/samples/smb/src/main/resources/log4j2-test.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+