To dig in and see how to debug an application, let's put together something simple: an app that monitors incoming messages from the network. These messages can indicate different levels of network degradation or recovery as reported by various devices.
For a pretty basic JMS-based app that runs on top of ActiveMQ, we can use the following build.gradle
build file:
buildscript { repositories { mavenCentral() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:1.1.6.RELEASE") } } apply plugin: 'java' apply plugin: 'spring-boot' jar { baseName = 'network-monitor' version = '0.0.1-SNAPSHOT' } sourceCompatibility = 1.8 targetCompatibility = 1.8 repositories { mavenCentral() } // tag::clean[] clean { delete "activemq-data" } // end::clean[] dependencies { compile("org.springframework.boot:spring-boot-starter") compile("org.springframework:spring-jms") compile...