0

Retry Operation at specific Exception using Spring Retry

Spring-Retry allows for the re-execution of operations when an Exception is thrown. How do we limit the retries to specific exceptions only? For instance, we wouldn’t want to retry a SOAP Web Service operations (@WebMethod) that threw exceptions due to invalid values or internal errors on the remote services. However, we would want to retry those failed operations caused by connectivity or unavailability issues, e.g., no Internet connection, and “server is busy”. Continue Reading

0

Proper implementation of Singleton Pattern in Java

This post demonstrates the proper implementation of Singleton Pattern in Java. Most of us would apply Singleton Pattern in the most convenient way for us but not the proper implementation. In most cases, our codes would work. But when we deal with concurrency stuff and mission-critical applications, subtle issues may arise that are really hard to debug and figure out the root cause of. Continue Reading