In this post under Spring Retry, I will explain how to configure Spring Retry framework into your application with simple example At minimum, you need the below jars in your classpath1) spring-retry-1.3.1.jar2) commons-logging-1.2.jar3) spring-core-4.3.22.RELEASE.jar4) spring-aop-4.3.22.REELEASE.jar5) spring-beans-4.3.22.RELEASE.jar6) spring-context-4.3.22.RELEASE.jar7) spring-expression-4.3.22.RELEASE.jar8) aspectjweaver-1.8.9.jar If we want to retry a particular failed operation, we can take the help of Spring…… Continue reading Spring Retry simple example (using xml configuration)
Month: May 2021
Jsoup’s connect method
In my previous post under Jsoup, I showed with example how to parse an html document located on world wide web using overloaded “parse” method. In this post, I will show with example another approach of doing the same thing. The Jsoup javadoc recommends to follow this approach instead of using overloaded “parse” method. Below…… Continue reading Jsoup’s connect method
Externalizing the logger and handler configuration to properties file
In all my previous posts under java logging, I have configured logger and handler programmatically. We can externalize those configurations to properties file also. The advantage of this approach is that we can change configurations at any time without recompiling java class. In this post I will show with example how to do that. Let’s…… Continue reading Externalizing the logger and handler configuration to properties file
Setting Log Levels for Logger and Handler
In this post under Java Logging, I will explain with example how to set log levels for Logger and Handler implementations. Please not the log level of Logger and Handler should be same otherwise some messages will not be logged by the handler. We set the log levels by calling “setLevel” method available on Logger…… Continue reading Setting Log Levels for Logger and Handler
ConnectableObservable autoConnect method
In this post under RxJava, I will explain with example the purpose of autoConnect method in ConnectableObservable class. We can use the autoConnect method to inform in advance how many observers will subscribe to the ConnectableObservable. Once the mentioned number of observers subscribe to the ConnectableObservable, the observable will behave like an cold observable and…… Continue reading ConnectableObservable autoConnect method
ConnectableObservale Example
In this post under RxJava I will explain with example what is a ConnectableObservale. They are two kinds of Observables. One is called Hot and another Cold. Whatever Observables you have seen in my previous posts are all Cold. You will see the differencebetween them when more than one Observer subscribes to the Observable. Whenever…… Continue reading ConnectableObservale Example