Let’s look at how we can find if a Spring transaction is active. >>>
Yearly Archives: 2020
Java Weekly, Issue 355
Project Panama delivers, Dockerizing Java applications, EFK stack for logging, a little about queuing theory, and COBOL ain’t gonna go anytime soon. >>>
Creational Design Patterns in Core Java
Learn about creational design patterns along with examples of core Java classes that use them to create and obtain instances of objects. >>>
Difference Between @ComponentScan and @EnableAutoConfiguration in Spring Boot
Let’s look at the difference between these two annotations for configuring our Spring Boot application. >>>
Java Weekly, Issue 354
Everything revolves around JVM: Talking with the Shenandoah team, JIT and Graal internals, current trends in the Java ecosystem, and learning a new programming language! >>>
Where Does H2’s Embedded Database Store The Data?
Learn how to configure the location of the H2 database files. >>>
How to Stop Execution After a Certain Time in Java
Learn different ways to end a long-running execution after a certain time in Java. >>>
Background Jobs in Spring with JobRunr
Look into distributed background job scheduling and processing in Java using JobRunr and have it integrate with Spring. >>>
Performing Calculations in the Database vs. the Application
Explore the advantages and disadvantages of performing calculations in the database and application code >>>
Differences Between Netflix Feign and OpenFeign
Compare the Spring Cloud integrations of OpenFeign and Netflix Feign. >>>
Checking if a Java Class Is ‘Abstract’ Using Reflection
Learn how to check whether a Java class is abstract using the Reflection API. >>>
Using JNA to Access Native Dynamic Libraries
Learn how to use JNA to access native code easily when compared to JNI. >>>
Using libphonenumber for Phone Number Validation and Conversion
Explore the functionality offered by libphonenumber to format and validate phone numbers using code samples. >>>
Java Weekly, Issue 353
Back to the basics: one step closer to inline classes, benchmarking GC latencies, Java after 8, and why it’s not a good idea to rely on averages! >>>
Getting Started with jOOQ
Learn how to configure and create a simple CRUD application using the jOOQ framework. >>>
How To Get Cookies From the Apache HttpClient Response
Learn how to retrieve and set cookies from Apache’s HttpClient response >>>
Reading an HTTP Response Body as a String in Java
Explore several options for reading an HTTP response body as a string in Java >>>
Get a List of Trusted Certificates in Java
Learn how to read a list of trusted certificates in Java through quick and practical examples >>>
@BeforeAll and @AfterAll in Non-Static Methods
While unit testing, we may occasionally want to use @BeforeAll and @AfterAll in non-static setup and tear-down methods. Let’s see how we can do it. >>>
Conditionally Run or Ignore Tests in JUnit 4
Let’s look at how, based on certain conditions, we can run or ignore tests using JUnit. >>>