OnlyJava is your source for Blog Aggregation in the Java industry

Five Ways of Synchronising Multithreaded Integration Tests

 Mark As Read    

A few weeks ago I wrote a blog on synchronizing multithreaded integration tests, which was republished on DZone Javalobby from where it received a comment from Robert Saulnier who quite rightly pointed out that you can also use join() to synchronize a worker thread and its unit tests. This got me thinking, just how many ways can you synchronise mul...

Easily Find & Kill MongoDB Operations from MongoLabs UI

 Mark As Read    

A few months ago, we wrote a blog post on finding and terminating long-running operations in MongoDB. To help make it even easier for MongoLab users* to quickly identify the cause behind database unresponsiveness, weve integrated the currentOp() and killOp() methods into our management portal. * currentOp and killOp functionality is not available o...

The Difference Between TokuMX Partitioning and Sharding

 Mark As Read    

In my last post, I described a new feature in TokuMX 1.5partitioned collectionsthats aimed at making it easier and faster to work with time series data. Feedback from that post made me realize that some users may not immediately understand the differences between partitioning a collection and sharding a collection. In this post, I hope to clear tha...

Designing Search (part 3): Keeping on track

 Mark As Read    

Part 1 In the previous post we looked at techniques to help us create and articulate more effective queries. From auto-complete for lookup tasks to auto-suggest for exploratory search, these simple techniques can often make the difference between success and failure. But occasionally things do go wrong. Sometimes our information journey is more co...

In Defense of Scala. Response to "I Dont Like Scala"

 Mark As Read    

There were several posts lately critical of Scala language, specifically this onehttps://dzone.com/articles/i-dont-scala. It is a well written, critical of Scala post by someone who clearly prefers other languages (i.e. Java) at this point.

DevOps as a HR problem

 Mark As Read    

I wrote about one way in which HR and IT can operate more closely, but there's another interaction between IT and HR that might not be so benign.DevOps is ultimately about breaking down silos in IT (indeed, my definition of DevOps is as a cultural structure where teams work together to meet the needs of the business rather than competing against ea...

What Is Transaction Management in Java?

 Mark As Read    

In this tutorial, we will discuss transaction management in Java using examples. But before moving to transaction management, we should know what a transaction is. Therefore, the following are some important points about transactions for better understanding: A transaction is a segment of program execution that accesses and can alter different pi...

Top Commonly Used JavaScript Functions

 Mark As Read    

Functions are one of the most important aspects of JavaScript. Without JavaScript functions, it would be very limited. Functions in JavaScript are used to perform a certain action or task. They can be written into the code, or they can be created using the Function constructor.

Designing and Querying JSON in Databend

 Mark As Read    

JSON (JavaScript Object Notation) is a commonly used semi-structured data type. With the self-describing schema structure, JSON can hold all data types, including multi-level nested data types, such as Array, Object, etc. JSON takes advantage of high flexibility and easy dynamic expansion compared with the structured data types that must strictly f...

Develop a Full-Stack Java Application With Kafka and Spring Boot

 Mark As Read    

What You Will Build You will build a full-stack reactive web app that sends and receives messages through Kafka. The app uses Spring Boot and Java on the server, Lit and TypeScript on the client, and the Hilla framework for components and communication. What You Will Need 20 minutes Java 11 or newer Node 16.14 or newer An IDE that supports...

On the intersection between IT and HR

 Mark As Read    

A while ago I mentioned The three strands of Information Technology, and how this was split into an internal-facing component (IT for the business, IT for the employee) and external-facing (IT for the customer).In a pure technology company, there's quite a mismatch, with the customer-facing component being dominant and the internal-facing parts bei...

Inspect the Contents of the Java Metaspace Region

 Mark As Read    

JVM Memory has the following regions: Young Generation Old Generation Metaspace Others region

Top Posts of 2013: 10 Subtle Best Practices when Coding Java

 Mark As Read    

this is a list of 10 best practices that are more subtle than your average josh bloch effective java rule. while josh blochs list is very easy to learn and concerns everyday situations, this list here contains less common situations involving api / spi design that may have a big effect nontheless. i have encountered these things while ...

10 More Common Mistakes Java Developers Make when Writing SQL

 Mark As Read    

i was positively surprised to see how popular my recent listing about 10 common mistakes java developers make when writing sql was, both on my own blog and on my syndication partner dzone . the popularity shows a couple of things: how important sql is to the professional java world. how common it is to forget about some basic sql things....

Improve Your Application's Serialization Through Efficient Object Marshaling

 Mark As Read    

Efficient code doesn't just run faster; if it's using less compute-resource, it may also be cheaper to run. In particular, distributed cloud applications can benefit from fast, lightweight serialization. OpenSource Java Serializer Chronicle-Wire is an OpenSource Java serializer that can read and write to different message formats such as JSON, YAM...

Palindrome Program in Java

 Mark As Read    

A Java interview will most likely involve a scenario in which candidates will have to demonstrate their logical and programming skills, as well as their experience, as part of their evaluation of the candidate. Among the most common questions asked in interviews is "Can you write a palindrome program in Java?" This is also one of the most challengi...

The Reason Java Is Still Popular

 Mark As Read    

This is a great time to post this, right on the release of Java 19. Yes, another "my language is better" post. No, I didn't want to write it. But sometimes people's bad projection gets the better of me. In this case, the post started as a comment and I ended up deciding to turn it into a post. This was strengthened with this post which mostly compl...

Java and Low Latency

 Mark As Read    

I have lost count of the number of times I have been told that Java is not a suitable language in which to develop applications where performance is a major consideration. My first response is usually to ask for clarification on what is actually meant by performance as two of the most common measures - throughput and latency, sometimes conflict wit...

Pagination With Spring Data Elasticsearch 4.4

 Mark As Read    

Some time ago, I wrote the Introduction to Spring Data Elasticsearch 4.1 article. As I promised, I want to continue with a search feature. More specifically, the topic is its pagination part. Therefore, this article has these goals: Update my sat-elk project to use Spring Data Elasticsearch 4.4 See several options to paginate results Note: I...

Bypassing Spring Interceptors via Decoration

 Mark As Read    

Whether they are built using the genuine Spring Framework or Spring Boot, such applications are widely developed and deployed these days. By trying to address simple or complex business challenges, products strongly rely on the used framework features in their attempt to offer elegant solutions. Elegant here means correct, clean, and easy to unders...

Creating Your First Cloud-Agnostic Serverless Application with Java

 Mark As Read    

If you are new to serverless, creating a simple application for a serverless infrastructure is a good place to start. In this article, you will run through the steps to create your first serverless Java application that runs on any cloud.

Kotlin for Java Developers course summary

 Mark As Read    

IntroductionThis is my summary of relevant lessons learned during a Kotlin for Java developers course.SummaryGeneral- When running standalone, needs Kotlin runtime- Toplevel functions: not explicitly defined in a class, e.g fun main() method- Useful other info: https://kotlinlang.org- val number: Int and val number = 25 So has type inference. B...

Tech Team Lead News 576 days ago

Simulating and Troubleshooting Deadlock in Kotlin

 Mark As Read    

All multi-threaded applications are prone to deadlock. The modern Kotlin platform is no exception to it. In this post lets discuss how to simulate a deadlock in Kotlin and how you can troubleshoot it. What Is Deadlock? First, lets try to understand what Deadlock means. Several technical definitions arent clear. Deadlock is one among them ;-). Deadl...

Two Cool Java Frameworks You Probably Dont Need

 Mark As Read    

Weve all attended maybe even delivered talks where the speaker is particularly enamoured of a language or tool and uses the word simply a little too often in phrases like simply add this configuration key or dependency. Some healthy suspicion to counteract this enthusiasm is always recommended, especially when the technology is new, little used, ...

Jakarta EE 10 Has Landed!

 Mark As Read    

The Jakarta EE Ambassadors are thrilled to see Jakarta EE 10 being released! This is a milestone release that bears great significance to the Java ecosystem. Jakarta EE 8 and Jakarta EE 9.x were important releases in their own right in the process of transitioning Java EE to a truly open environment in the Eclipse Foundation. However, these release...

Tackling Accidental Complexity With Optional in Java

 Mark As Read    

In a post in the past "How do we make complex software less costly?" I drew the distinction between essential and accidental complexity. The clue is in the name you can't avoid what is essential. Build a good understanding of your core problem. Otherwise, you risk introducing more unnecessary complexity. This time, let's talk about a specific ...

Template-Based PDF Document Generation in Java

 Mark As Read    

In my previous article, I wrote about how we can seamlessly generate template-based documents in our JavaScript application using EDocGen. As a Java developer, I have worked on creating backend applications for e-commerce and healthcare enterprises where the requirement for document generation is vast. And they have mostly done in java spring boot...

Bungee-Jumping into Quarkus: Blindfolded but Happy

 Mark As Read    

A year ago, I started with a couple of friends a new project based on Quarkus to create a visual editor for integrations called Kaoto. As responsible of the backend side, I obviously chose Java to do it. Coming from the Java 8 world with shy traces of Java 11, I decided to jump directly to Quarkus on Java 17 (unstable at the time) with Reactive and...

Extending the Power of Jakarta EE and MicroProfile With CDI Extension

 Mark As Read    

One of the reasons the market adopted Java so firmly is the power of the environment around it: the ecosystem is enormous. We have at least two or more frameworks to work on multiple proposals, besides the platforms where it assembles several solutions to work as one, such as Spring, Quarkus, Jakarta EE, and MicroProfile. Looking deep into both Ja...

Using Hazelcast in Spring Boot Running on Kubernetes

 Mark As Read    

Whereas Kubernetes is the target environment of application execution, you will not find here how to declare required services or deployment most optimally. Some basic Kubernetes configurations are just enough for demonstration purposes. Though, you can use the configurations as a starting point and improve them with the help of Kubernetes Document...

The 5 Most Pivotal and Innovative Additions to OpenJDK 19

 Mark As Read    

Although OpenJDK 19 is not an LTS, it is still a significant release, in my opinion. It includes several game-changing features that will alter the Java landscape. Many features intrigue my interest, but there are five in particular that I can't wait to try out. Let's break those down and talk about them separately.

Java Observer Pattern With Spring AOP and a Custom Annotation

 Mark As Read    

The Java Observer Pattern is among the most interesting patterns. It allows the injection of some functionality into a system, or part of a system, with minimum impact on the existing code. In this article, we present a specific solution that implements this pattern, using features like Spring Aspect Oriented Programming (AOP), Spring BeanPostProce...

How To Build a Command-Line Text Editor With Java (Part 2)

 Mark As Read    

Let's continue building our Java-based, command-line text editor that we started here. This is Part 2 of the "How To Build a Command-Line Text Editor With Java" series. We will cover the following:

Java String Intern: Performance Impact

 Mark As Read    

java.lang.String#intern() is an interesting function in Java. When used in the right place, it has the potential to reduce the overall memory consumption of your application by eliminating duplicate strings in your application. To learn how the intern() function works, you may refer to this blog. In this post, lets discuss the performance impact of...

Chaos Engineering: Metaspace OutOfMemoryError

 Mark As Read    

JVM memory has the following regions: JVM memory regions

Overview of Android Networking Tools: Receiving, Sending, Inspecting, and Mock Servers

 Mark As Read    

Today all applications are connected to the Internet in one way or another. When developing simple applications, as a rule, there are no problems. Another thing is when the applications are complex, with many requests to the network. In this case, various tools and libraries can help you to work with the network and search for problems. We will stu...

Connection refused Spring Boot application to MySql in Docker solution

 Mark As Read    

IntroductionThe Spring Boot Java application was initially using the H2 embedded database, first the in-memory version (losing all data each run), then the file based version. The database structure is created using Liquibase.Then the requirement was to have the Spring Boot Java application still not dockerized (just started with mvn spring-boot:ru...

Tech Team Lead News 589 days ago

Ultra-Fast Microservices: The Enterprise Integration Makes It Easy

 Mark As Read    

When we talk about enterprise integration in the Java world, it brings a huge challenge, mainly in the news architecture trends such as microservices and the cloud age. We have several points to think about, such as a platform to integrate. This article will cover why and how to incorporate a persistence tool with the standard of Java enterprise ap...

How To Build a Command-Line Text Editor With Java (Part 1)

 Mark As Read    

Have you ever wanted to know how text editors work, or how shell scripts change terminal text colors, update lines without scrolling, or move the cursor around? Surprise, surprise: even as Java devs, we can do this! In this series, I'll walk you through building a terminal-based text editor with Java.

Top 5 JavaScript Mistakes That Developers Make and Their Solutions

 Mark As Read    

The JavaScript language has a long history. There are a lot of developers out there who are still learning the basics. But, if you're trying to learn the language and make your first steps into it, you need to know what mistakes new developers make. You have already researched JavaScript development tutorials, and you know that it's one of the most...

In Which Region Are Intern Strings Stored?

 Mark As Read    

intern() is an interesting function in java.lang.String object. intern() function eliminates duplicate string objects from the application and has the potential to reduce the overall memory consumption of your application. To understand how the string intern() function works you may refer to this interesting blog. Intern strings are stored in a str...

BFO PDF Library 2.27 - a PDF/A update

 Mark As Read    

Details on the latest release of our PDF Library, which has many fixes and improvements for PDF/A

Happy Birthday, Jack!

 Mark As Read    

Our youngest child turned 18 today. He's embarked on his senior year of high school and has a good group of friends he likes to hang out with. They celebrated his birthday last night at the Kid Cudi concert followed by an after-party with additional friends at the ranch. Trish had fun decorating our downstairs with his friends and surprising him wh...

Raible Designs 605 days ago

Tribblix m28, Digital Ocean, and vioscsi

 Mark As Read    

A while ago, I wrote about deploying Tribblix on Digital Ocean.The good news is that the same process works flawlessly with the recently released m28 Tribblix release.If you recall from the original article, adding an additional storage volume didn't work. But, we now have a vioscsi driver, so has the situation improved?Yes!All I did was select an ...

Brewing Patterns in Java: An Informal Primer

 Mark As Read    

Not so long ago, Java lovers were engulfed by a mammoth addition yes, we all know, right? the Lambda Expressions in Java 1.8! Eclipsed by lambda, minor in its avatar for the oblivious, was another message should not be used as an identifier, since it is a reserved keyword from source level 1.8 on caught by the eyes of the assiduous and the peda...

Easy OpenPGP With PGPainless

 Mark As Read    

When it comes to encryption, Bouncy Castle is probably the most popular library in the Java ecosystem. It has great algorithm support and is actively maintained. However, when trying to use it to add OpenPGP support to your application, you quickly find yourself digging through StackOverflow posts with walls of hard-to-read source code. To even cre...

Mocking the java.time API for Better Testability

 Mark As Read    

Date/times logic in code is where the messiness of the real world upsets the relatively straightforward rules of the digital realm. Blame the bewildering hodgepodge of edge cases on the movement of celestial bodies and pope Gregory XIII (of the Gregorian calendar) but deal with it you must. Im sure you all know that the 31st of December can be in w...

Why "Polyglot Programming" or "Do It Yourself Programming Languages" or "Language Oriented Programming" sucks?

 Mark As Read    

Last year we saw the launch of a new Web programming language Dart - Structured Web Programming from Google. A very interesting approach to support web application development. Not so long after Go, Groovy, Ruby, Scala, << Name your DSL here >>; we see Dart. Is it a good thing to have at least one programming language to solve one probl...

Total Bummer: Pivotal Drops Groovy

 Mark As Read    

Pivotal announced yesterday that Groovy 2.4 And Grails 3.0 will be the last major releases under Pivotal sponsorship. This is big news that has not surprisingly created a lot of buzz in the blogosphere. In this post, I describe some of the questions that others and I are wondering about and speculate on Groovy's future. Groovys Future is in Doubt S...

Neo4j and Cypher: Using MERGE with Schema Indexes/Constraints

 Mark As Read    

I wrote about cyphers MERGE function a couple of weeks ago, and over the last few days, Ive been exploring how it works with schema indexes and unique constraints. An Exciting Time to Be a Developer There is so much that could be said about the merging of Neo4j and Cypher right now, but it is certainly reasonable to point out that this merger will ...

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