BAEL-553 - Intro to Spring Remoting with HTTP Invokers (#998)
* First test with log4j rolling appenders * small fix * Log4j rolling appender * First set up with rolling file on log4j 2 * Added logback code. * log4j2 more detailed example * log4j2 more detailed example * Improved names and examples * Fixed configurations * improved configs * formatted * Final fix * fixed formatting * Formatting fix * Fix sample apps to avoid try / catch * Fix request to replace files * Fix end lines * Log4j2 logger is shot down at the end. * Initial commit, the server starts launched from maven * made room for client and server projects * made room for client and server projects * base example works * poms restructured * packages restructured * packages restructured * Some renaming and a proper formatting string * Small renamings * Small renamings * Fixed invoked URL in client through fixing bean name * java.time.* instead of java.util.Date * java.time.* instead of java.util.Date * Removed log on file, kepts log on console * Updated Spring and Logback version to latest release. * Exception removed from run()
This commit is contained in:
committed by
KevinGilmore
parent
5cc5d7dc12
commit
5c99b291d5
@@ -10,15 +10,11 @@ public class CabBookingClient {
|
||||
this.cabService = cabService;
|
||||
}
|
||||
|
||||
public void run() {
|
||||
public void run() throws BookingException {
|
||||
|
||||
Address pickUp = new Address("13 Seagate Blvd, Key Largo, FL 33037", "US");
|
||||
Address dropDown = new Address("91831 Overseas Hwy, Tavernier, FL 33070", "US");
|
||||
try {
|
||||
System.out.println( cabService.bookPickUp(pickUp, dropDown, 3) );
|
||||
} catch (BookingException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
System.out.println( cabService.bookPickUp(pickUp, dropDown, 3) );
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ public class Main {
|
||||
return new CabBookingClient(service);
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws InterruptedException {
|
||||
public static void main(String[] args) throws Exception {
|
||||
AnnotationConfigApplicationContext rootContext =
|
||||
new AnnotationConfigApplicationContext();
|
||||
rootContext.scan(Main.class.getPackage().getName());
|
||||
|
||||
Reference in New Issue
Block a user