OnlyJava is your source for Blog Aggregation in the Java industry

Simplify Java Persistence Implementation With Kotlin on Quarkus

 Mark As Read    

For decades, developers have struggled with optimizing persistence layer implementation in terms of storing business data, retrieving relevant data quickly, and most importantly simplifying data transaction logic regardless of programming languages. Fortunately, this challenge triggered the invention of Java ecosystems in which developers can imp...

Configuring MySQL test-containers in your Spring Boot Java Integration Tests

 Mark As Read    

IntroductionIn your Integration Tests (IT) you often try to use the H2 in-memory database, to improve the speed of your integration tests. But on the other hand you want to mimic the production database as much as possible in your integration-tests.Setting H2 in MySQL database compatibility mode tries to emulate MySQL as much as possible, but only ...

Tech Team Lead News 744 days ago

What is ResultSet, Scrollable ResultSet, and Updatable ResultSet in JDBC with Examples?

 Mark As Read    

In the video below, we take a closer look at ResultSet, Scrollable ResultSet, and Updatable ResultSet in JDBC with Examples. Let's get started!

Handling Null: Optional and Nullable Types

 Mark As Read    

Java has long been infamous for its NullPointerException. The reason for the NPE is calling a method or accessing an attribute of an object that has not been initialized. Java var value = foo.getBar().getBaz().toLowerCase(); Running this snippet may result in something like the following:

How to Renew Your Passport Quickly (aka The Cayman Islands Spring Break That Almost Wasn't)

 Mark As Read    

tl;dr Call your member of Congress or Senator if you need help getting a passport appointment. When we renewed our kids' passports in October 2021, it only took a few weeks for their new ones to arrive in our mailbox. Trish and I sent our passports for renewal in late November, expecting a similar quick turnaround. I received mine back a coup...

Raible Designs 744 days ago

Framewars: The Battle Between NoSQL and Java in the Cloud Arena by Java2Days

 Mark As Read    

This lectures objective is to make comparisons between points and weaknesses of Java frameworks that integrate with databases. On the one hand, the NoSQL MongoDB, Redis, Neo4J, and Cassandra, and on the other, the Java frameworks that integrate with them: Spring, Quarkus, Jakarta EE, Micronaut. The arena: the cloud! In this ring, the one who best a...

Defining Architecture Decision Record (ADR)

 Mark As Read    

With time and the evolution of technologies, building software has become faster but more complex in the same proportion. Therefore, tools that organize and mainly document software architecture decision-making are more than welcome. This article will introduce you to what architecture decision records (ADR) are. But let's take a step back and talk...

Memory Leak Due To Improper Exception Handling

 Mark As Read    

In this post, lets discuss an interesting memory problem we confronted in the production environment and how we went about solving it. This application would take traffic for a few hours after that it would become unresponsive. It wasnt clear what was causing the unresponsiveness in the application. Technology Stack This application was running on ...

Debugging JAXB Production Issues

 Mark As Read    

Java Architecture for XML Binding (AKA JAXB API) is a popular API for marshaling XML data. It's a framework for mapping between XML documents and Java POJOs (Plain Old Java Objects, AKA regular Java classes) almost seamlessly. The API is very easy to use and many frameworks leverage it to provide their XML support. JAXB2.0 has gained popularity bot...

Stored Procedure With Input and Output Parameters in MySQL | Callablestatement With Input and Output Params

 Mark As Read    

In the video below, we take a closer look at stored procedures with input & output parameters in MySQL, and CallableStatement with Input&Output Params. Let's get started!

Why Do We Need JDBC Transaction Management?

 Mark As Read    

In the video below, we take a closer look at why we need JDBC transaction management with a sample program. Let's get started!

What Is a JDBC Statement? [Video]

 Mark As Read    

In the video below, we take a closer look at JDBC Statements with examples. Let's get started!

How To Store File or Retrieve File To/From a Database Table Using JDBC Program?

 Mark As Read    

In the video below, we take a closer look at how to store files or retrieve files to/from a database table using JDBC Program?. Let's get started!

Multi-Threading and Spring Transactions

 Mark As Read    

As developers, we are used to applying the @Transactional annotation provided by the Spring framework and rely on the mechanisms implemented by the framework for transaction management. But is this enough? Well, the answer is clear: No.

Framewars: The Battle Between NoSQL and Java in the Cloud Arena

 Mark As Read    

This lecture's objective is to make comparisons between points and weaknesses of Java frameworks that integrate with databases. On the one hand, the NoSQL MongoDB, Redis, Neo4J, and Cassandra, and on the other, the Java frameworks that integrate with them: Spring, Quarkus, Jakarta EE, Micronaut. The arena: the cloud! In this ring, the one who best ...

What Is JDBC ResultSetMetadata?

 Mark As Read    

In the video below, we take a closer look at JDBC ResultSetMetadata with a demo. Let's get started!

How To Store Image or Retrieve Image To/From a Database Table Using JDBC Program?

 Mark As Read    

In the video below, we take a closer look at how to store images or retrieve images to/from a database table using JDBC Program? Let's get started!

Java Thread Programming (Part 1)

 Mark As Read    

What Is a Thread? We write code in a file line by line, and then it gets executed. To be able to execute a piece of code requires an execution environment. In Java, a thread is an execution environment. If a program has only one execution environment, then we call this program a single-threaded program. Interestingly, in Java, we can create a lot o...

5 Things You Probably Didn't Know About Java Concurrency

 Mark As Read    

Thread is the heart of the Java programming language. When we run a Hello World Java program, we run on the main thread. And then, we can definitely create threads easily as we need to compose our application code to be functional, responsive, and performant at the same time. Think about a web server; it simultaneously handles hundreds of requests ...

JDBC DriverManager and 4 Types of JDBC Drivers

 Mark As Read    

In the video below, we take a closer look at JDBC DriverManager and 4 types of JDBC drivers. Let's get started!

Get Started With Reactive Programming With Kotlin on Quarkus

 Mark As Read    

Moving to the cloud with event-driven architecture raises big concerns for enterprises using multiple programming languages such as Java, C#, JavaScript, Scala, and Groovy to implement business requir...

GroovyBlogs.org 756 days ago

JDBC Introduction and Architecture

 Mark As Read    

How does the JDBC Application work? What is JDBC Connection URL? Find out in this introductory video tutorial about JDBC and its architecture. Let's get started!

Get Started With Reactive Programming With Kotlin on Quarkus

 Mark As Read    

Moving to the cloud with event-driven architecture raises big concerns for enterprises using multiple programming languages such as Java, C#, JavaScript, Scala, and Groovy to implement business requirements. Because enterprises need to redesign multiple architectures for container deployment separately and put more effort into optimizing production...

Java Auto-Synthesis

 Mark As Read    

Java { T obj; Base(T obj) { this.obj = obj; } T getob() { return obj; } } class Sub extends Base { Sub(String str) { super(str); } String getob() { return obj; } }" data-lang="text/x-java"> class Base<T> { T obj; Base(T obj) { this.obj = obj; } T getob() { return obj; } } class Sub extends Base<String> { Sub(String s...

Java Development in 2022: Predictions and Selected Trends

 Mark As Read    

Last year was interesting a new LTS release, some amazing successes, but also a global vulnerability was discovered. In this article, we will try to guess and predict how the industry will face the new challenges, and what innovations and developments will affect it the most. General Trends 1. Migration From Java 8 A lot of apps still work on Jav...

Java UUID Generation: Performance Impact

 Mark As Read    

Java developers tend to use the java.util.UUID#randomUUID() API to generate a UUID (Universally Unique Identifier) number (i.e., b8bbcbed-ca07-490c-8711-5118ee0af2f9). Under certain circumstances, using this API can affect your applications availability. Lets discuss this API in this post with a real-world example. How Does the java.util.UUID#rando...

Fill Out the 2022 Jakarta EE Developer Survey!

 Mark As Read    

The 2022 Jakarta EE Developer Survey, sponsored by the Jakarta EE Working Group, is now open. The survey will be open until May 6th. If you use or depend on Java/Jakarta EE (and that's most of us), it is very important that you fill out the survey before it closes. This is the fifth year of this survey. The purpose of the survey is to understand wh...

Exception Breakpoint that Doesn't Suck and a Real Use Case for Method Breakpoints

 Mark As Read    

Two weeks ago, I left this series in a cliffhanger of sorts. Well, as much as a programming blog can leave things in the air The big one amongst them is the premise that exception breakpoints dont have to suck. If you used them in the past, you would know that grabbing all exceptions is ridiculous. You end up at a breakpoint every second and it doe...

MySQL DB Installation: Using MySQL Workbench to connect to MySQL DB and how to Install the Mysql 8 Server

 Mark As Read    

In the video below, we take a closer look at MySQL DB Installation: Using MySQL Workbench to connect to MySQL DB and how to install the Mysql 8 Server. Let's get started!

The Five Skills You Must Master To Be Outstanding as a Software Engineer

 Mark As Read    

Areas of technology have been growing exponentially and bringing with them several opportunities and specializations. Among these thousands of options, we have software engineering and architecture. However, with so much content and easy access to happiness, what would be the best way to reach the goal that will achieve the desired satisfaction? In...

JDBC Create Table and Drop Table Examples

 Mark As Read    

In the video below, we take a closer look at JDBC, create table, and drop table with examples. Let's get started!

Error Handling Across Different Languages

 Mark As Read    

I've tried Go in the past, and the least I could say is that I was not enthusiastic about it. Chief among my griefs was how the language handled errors, or more precisely, what mechanism it provided developers with to manage them. In this post, I'd like to describe how a couple of popular languages cope with errors. A Time Before Our Time I could p...

Debugging Java Equals and Hashcode Performance in Production

 Mark As Read    

I wrote a lot about the performance metrics of the equals method and hash code in this article. There are many nuances that can lead to performance problems in those methods. The problem is that some of those things can be well hidden. To summarize the core problem: the hashcode method is central to the java collection API. Specifically, with the p...

What Is JDBC Connection? | JDBC Connection Example

 Mark As Read    

In the video below, we take a closer look at JDBC Connection with examples. Let's get started!

The Ultimate Guide on Composite IDs in JPA Entities

 Mark As Read    

Previously, we talked about IDs generated in database and applications, discussed the pros and cons of various strategies for generation and implementation details. Now it is time to discuss less popular but still useful ID type: composite ID. Do We Need Composite Keys at All? It might seem that composite keys are not needed in modern applications...

What Every Java Developer Should Know About Thread, Runnable, and Thread Pool

 Mark As Read    

Multithreading Is Most Complex And Biggest Part Of Java Multithreading chapters are the most difficult to understand and use in Java. Unfortunately, there are not that many sources where you can get all the answers. Meanwhile, concurrency knowledge is critically important. In this article, I explain the core aspects of multithreading that every Jav...

JVM Memory Architecture and GC Algorithm Basics

 Mark As Read    

Purpose This article discusses the basic concept of JDK8 and upwards memory management with heap and stack memory. and the basics of GC and its Algorithms. Importance of Memory Management Java garbage collector doesn't ensure that the heap memory will be completely free, and also, for a developer, it is not possible to force a garbage collector to ...

What Is JDBC PreparedStatement?Statement vs PreparedStatement

 Mark As Read    

In the video below, we take a closer look at JDBC PreparedStatement with example and Statement vs PreparedStatement. Let's get started!

Lessons Learned From Previous Projects

 Mark As Read    

An exciting part of software development is what was unanimously considered good practice at one point in time can be more ambiguous years later. Or even plain wrong. However, you generally need to do it multiple times over time to realize it. Here are my top learnings from my experience in Java projects. Packaging by Layers When I started my devel...

Asynchronous API Calls: Spring Boot, Feign, and Spring @Async

 Mark As Read    

The requirement was to hit an eternal web endpoint and fetch some data and apply some logic to it, but the external API was super slow and the response time grew linearly with the number of records fetched. This called for the need to parallelize the entire API call in chunks/pages and aggregate the data. Our synchronous feign client:

Garbage Collection Tuning Success Story: Reducing Young Gen Size

 Mark As Read    

When you tune Garbage collection performance, you are not only improving Garbage collection pause time but also the overall applications response time and reducing cloud computing cost. Recently, we helped to tune the Garbage collection behavior of a popular application. Just by making a minor change, it resulted in a dramatic improvement. Lets dis...

Spring Boot: Cross-Origin AJAX HTTP Requests

 Mark As Read    

What is CORS (Cross-Origin Resource Sharing)? In this Spring Boot video tutorial, we take a closer look at the Cross-Origin AJAX HTTP Requests. Let's get started!

Debugging Race Conditions in Production

 Mark As Read    

Race conditions can occur when a multithreaded application accesses a shared resource using over one thread. Unless we have guards in place, the result might depend on which thread "got there first". This is especially problematic when the state is changed externally. A race can cause more than just incorrect behavior. It can enable a security vuln...

Polymorphism and Dynamic Binding in Java

 Mark As Read    

Polymorphism is an Object-Oriented-Programming concept. Whether you are new to Java programming or a person who has worked with Java for years, you should know what polymorphism is in Java and how it works. Most developers claim that they know the topic well but when it comes to other complex features like static and dynamic binding, they seem unde...

Steps to Connect to the Database, MySQL DB, or Oracle DB, and More

 Mark As Read    

In the video below, we take a closer look at the steps needed to connect to the database, the MySQL DB, or the oracle DB, and get information in JDBC. Let's get started!

BFO PDF Library 2.26.4 and Report Generator 1.2.6

 Mark As Read    

Details on the latest release of our PDF Library, and the Report Generator build with it. This is the "certified with Java 17" release.,

What's New With Java 17 and Containers?

 Mark As Read    

Container platforms and edge computing continue to grow, powering major networks and applications across the globe, and Java technologies have evolved new features and improved performance to match steps with modern infrastructure. Java 17 (OpenJDK 17) was released recently (September 2021) with the following major features: Restore Always-Strict...

Spring Boot - How To Use Native SQL Queries | Restful Web Services

 Mark As Read    

In the video below, we take a closer look at Spring boot - how to use native SQL queries? | RESTful Web Services. Let's get started!

Spring Boot: How To Use Java Persistence Query Language (JPQL)

 Mark As Read    

In the Spring Boot video tutorial below, we take a closer look at how to use Java Persistence Query Language(JPQL), RESTful Web Services. Let's get started!

The Basics of Breakpoints You Might Not Know

 Mark As Read    

In episodes 4 and 5 of 140 Second Ducklings, I got deeper into the more advanced underpinnings of breakpoints. Theres still a lot more to learn to move forward, but even at this stage, its surprising how many things are relatively unknown in the developer community, and Im just getting started. Duckling the 5th:Did you know you can disable a bre...

Java
Welcome!
OnlyJava aggregates blogs for the Java industry.
Custom Feeds
Add any RSS feed to the information you read daily.
Blocked Feeds
Block feeds to remove blogs you’re not interested in.
Account Settings
Customize the site by adding or removing feeds.

About Us

OnlyJava is your source for all your Java news.

Have a Suggestion for Us?
Know of a Java blog that we're missing? Let us know!

Share OnlyJava.com