Update spring-integration/src/main/java/com/baeldung/tx/ServiceActivator.java
Co-Authored-By: KevinGilmore <kpg102@gmail.com>
This commit is contained in:
@@ -17,7 +17,7 @@ public class ServiceActivator {
|
|||||||
this.jdbcTemplate.update("insert into STUDENT values(?)", payload);
|
this.jdbcTemplate.update("insert into STUDENT values(?)", payload);
|
||||||
|
|
||||||
if (payload.toLowerCase().startsWith("fail")) {
|
if (payload.toLowerCase().startsWith("fail")) {
|
||||||
log.error("Service failure. Test result: {} ", payload);
|
log.error("Service failure. Test result: {}", payload);
|
||||||
throw new RuntimeException("Service failure.");
|
throw new RuntimeException("Service failure.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user