Programmatic Transaction Management in Spring 1. Overview Spring’s @Transactional annotation provides a nice declarative API to mark transactional boundaries. Behind the scenes, an aspect takes care of creating and maintaining transactions as they are defined in each occurrence of the @Transactional annotation. This approach makes it easy to decouple our… Continue Reading spring-programmatic-transaction-management

Java FileWriter 1. Overview In this tutorial, we’ll learn and understand the FileWriter class present in the java.io package. 2. FileWriter FileWriter is a specialized OutputStreamWriter for writing character files. It doesn’t expose any new operations but works with the operations inherited from the OutputStreamWriter and Writer classes. Until Java… Continue Reading java-filewriter

Work With Me OAuth Deep Dive You’re a good fit here if you’re either already doing OAuth with Spring Security, or you’re starting to try it out but the implementation hasn’t reached production yet.  Either way, my focus here is getting OAuth fully implemented into your system, and making sure… Continue Reading work-with-me

Authentication with HttpUrlConnection 1. Overview In this tutorial, we’re going to explore how to authenticate HTTP requests using the HttpUrlConnection class. 2. HTTP Authentication In web applications, servers may require clients to authenticate themselves. Failing to comply usually results in the server returning an HTTP 401 (Unauthorized) status code. There… Continue Reading java-http-url-connection