OnlyJava is your source for Blog Aggregation in the Java industry

Migrate Serialized Java Objects with XStream and XMT

 Mark As Read    

Java serialization is convenient to store the state of Java objects. However, there are some drawbacks of serialized data: It is not human-readable.

A Guide to Maven 3 Beta

 Mark As Read    

In just over six years, Apache Maven has become one of the most coveted tools for project build and reporting management. Its been five years since the release of Maven 2, and now the Maven committers have released the next landmark version of the software. Incredible Improvements in Little Time It didnt take long for Maven to become one of the mo...

Fun With Modules

 Mark As Read    

Tight coupling between modules is a bad idea, and the worst form of coupling is cyclic dependencies between modules. Fortunately, there are a few techniques we can use to break the cycles. They are Callback, Escalation, and Demotion, and Im going to walk through some examples that show each of them in action. Then, once the dependencies are broken,...

Flex for J2EE Developers: The Case for Granite Data Services

 Mark As Read    

For developers having worked on J2EE web applications for many years, getting into Flex will seem both very fun and familiar of the simplicity and power of ActionScript and the UI framework, and quite tedious and frustrating when it comes to developing the core application logic and the server integration. In some ways, developing Flex application...

Creating Application using Spring Roo and Deploying on Google App Engine

 Mark As Read    

Spring Roo is an rapid application development tool that helps you in rapidly building spring-based enterprise applications in the java programming language. Google app engine is a cloud computing technology that lets you run your application on Google's infrastructure. Using Spring Roo, you can develop applications that can be deployed on the Goog...

Clojure: Destructuring

 Mark As Read    

In The Joy of Clojure (TJoC) destructuring is described as a mini-language within Clojure. It's not essential to learn this mini-language; however, as the authors of TJoC point out, destructuring facilitates concise, elegant code. Making Code More Understandable One of the scariest things for those who are just now learning how to do some coding is...

The Challenges of a JavaFX Reboot

 Mark As Read    

In Jonathan Giles's post An FX Experience Retrospective, he starts by looking at the history of JavaFX and focuses on "what has happened in the world of JavaFX" in 2011. I was highly skeptical of JavaFX prior to JavaOne 2010 (see here and here for examples), but started to think more positively about it after the JavaOne 2010 and JavaOne 2011 annou...

Busting PermGen Myths

 Mark As Read    

In my latest post I explained the reasons that can cause the java.lang.OutOfMemoryError: PermGen space crashes. Now it is time to talk about possible solutions to the problem. Or, more precisely, about what the Internet suggests for possible solutions. Unfortunately, I can only say that I felt my inner Jamie Hyneman from MythBusters awakening when ...

Decorator Pattern to Solve Integration Scenarios in Existing Systems

 Mark As Read    

When we are in the learning phase of some technology, we always find the cleanest scenarios and examples in books and tutorials. It is perfectly logical because then we have to grasp the very core of the concepts involved, and we don't want to be confused by the imperfections coming from the real world. When we make the first steps in the actual i...

What Makes the Architecture of Geo-Distributed Apps Different?

 Mark As Read    

Ahoy, matey! Welcome back to my journal, where Ive been documenting my experience of building a geo-distributed app in Java from scratch. In the previous article, I broke down the definition of geo-distributed apps. If you missed that part of the journey, turn the page back to catch up.

Geo What? A Quick Introduction to Geo-Distributed Apps

 Mark As Read    

Have you heard of geo-distributed apps? According to my statistics around 50% of us havent! Microsoft defines a geo-distributed app as an app that spans multiple geographic locations for high availability and resiliency. "Geo-distributed" is a relatively new term, coined around the time when many of us jumped on the cloud bandwagon and started bui...

Resilient Kafka Consumers With Reactor Kafka

 Mark As Read    

We introduce a recipe for creating resilient Kafka consumers using Reactor Kafka. This approach is one that we've developed over time and incorporates the learnings from our experience with running Reactor Kafka - and all the challenges that come with that. The consumer described in this article provides at-least-once delivery semantics using manua...

20 Years of blogging!

 Mark As Read    

This blog was started on August 1, 2002 — 20 years ago yesterday! It's amazing to look back at my first month of blogging and see how many times I'd post per day. Most posts are only a sentence or two with no comments because Roller didn't have that feature yet. Other fun facts: This blog has used Apache Roller and Tomcat from day one. I've ...

Raible Designs 630 days ago

Summer 2022: Family Adventures in Alaska, Montana, and Colorado

 Mark As Read    

For the third year in a row, I took a long summer vacation thanks to Okta's unlimited vacation policy. In 24 hours, Ill be starting my summer vacation. @okta has an unlimited vacation policy and Im taking full advantage with a month off! 😃What will I do?🏔 A week in Alaska🤠 A RV trip to Montana🛶 A week-long rafting...

Raible Designs 631 days ago

Java Class Loading: Performance Impact

 Mark As Read    

java.lang.ClassLoader#loadClass() API is used by 3rd party libraries, JDBC Drivers, frameworks, and application servers to load a java class into the memory. Application developers dont use this API frequently. However when they use the APIs such as java.lang.Class.forName() or org.springframework.util.ClassUtils.forName(), they internally call thi...

Data Software Design Pitfalls on Java: Should We Have a Constructor on JPA?

 Mark As Read    

The data in any modern and distributed architecture, such as microservices, work as a vein in a system. It fits like a state in a stateless application. On the other hand, we have the most popular paradigms in the code, especially when we talk about enterprise OOP. How do you combine both archive and software design, primarily on Java? This articl...

Optional in Java - When Better Code Is Not an Alternative

 Mark As Read    

If you are a Java developer, you have handled issues with Java for a long time. The most often problem in the Java world is the NullPointerException. Nullity is a natural consequence of reference types. If there is a reference, it has to refer to some object - or be null. If there is no this option, all the variable was initialized with some non-nu...

External Debugging Tools 3: JMXTerm

 Mark As Read    

When tracking a bug we need to take a two-pronged approach. Similar to tongs that wrap the buggy module from both sides and squeezes to find the problematic part. Up until now, we discussed tools that are very low level. Some can be used to debug system-level services. Today well discuss the other side of the stack but still a very advanced managem...

Ktor - A Kotlin Web Framework

 Mark As Read    

Ktor is an asynchronous web framework written in and designed for Kotlin, leveraging coroutines and allowing you to write asynchronous code without having to manage any threads yourself. Here is a bit more background information on Ktor. It is backed by Jetbrains, who are also the creators of Kotlin itself. Who better to make a Kotlin web framework...

Combining gRPC With Guice

 Mark As Read    

gRPC gRPC is a high-performance protocol for Remote Procedure Calls over HTTP/2. It is mainly used for communication between micro-services, but it can also be used for requests from end-users using browsers or mobile devices just like REST or GraphQL. gRPC was designed by Google, and open-source implementation libraries are available for several p...

Querydsl vs. JPA Criteria - Introduction

 Mark As Read    

I've used JPA Criteria for many years. The main advantage is its type-safe approach (compared to JPQL), but the code is quite complicated and not always straightforward. Recently, I came across a Querydsl framework and I saw its benefits immediately. The main benefits for me are: Type-safe approach. Fluent API with SQL style - the code looks pre...

JSP vs Servlet: Difference and Comparison

 Mark As Read    

In the world today, a large percentage of the internet's structure consists of web applications of different types. As a developer, you can design and develop web applications by using web components, such as Servlet, JSP, and so on. In general, web components such as JSP and Servlet execute on the server and respond to client requests. Servlets ru...

The Differences You Should Know About Java and Python

 Mark As Read    

Java and Python may be a smart starting line to assess how to complete your forthcoming project. Selecting the correct language depends on your business because of the product(s) you plan to create. Its arduous to make up your mind that programming language can best suit your business objectives as you dont understand the technologies' strengths an...

Happens-Before In Java Or How To Write a Thread-Safe Application

 Mark As Read    

Multithreading is the most complex part of Java. Happens-before is a relation that gives a guarantee of allowing the writing of predictable code in multithreading a reality. Such code is also known as thread-safe code. Unfortunately, Oracle Java documentation about this notion is hard to read. So in this article, I'll mainly explain what happens-be...

Using Multiple Azure Storage Accounts From a Single Spring Boot App

 Mark As Read    

Spring projects in general are opinionated: 80-90% of use cases are handled "by default", and code is often much more concise than would be required otherwise due to Spring's preference of convention over configuration. These and other "opinions" can result in dramatically less code to write and maintain and as a result, more focused impact. In the...

JDev Flies on NetBeans

 Mark As Read    

Patience Pays Off Plenty of computer enthusiasts are well aware of the use of JDev files to get the information that they need to be transferred around wherever they want it to go. That said, there are not as many people aware of the fact that the initial upload process on JDev files to the Netbeans can take a considerable amount of time. It is tr...

NetBeans Platform Control Application for Testing of Cellular Networks

 Mark As Read    

I'm Stefano Chiappa and I'm from Milan (Italy). I work at Prisma Engineering (http://www.prisma-eng.com/) as Lead Software Engineer of the Simulator User Interface Team. AirMosaic is an application on the NetBeans Platform for controling Prisma's UeSIM, which is a multi mobile simulator. The UeSIM is basically a server with some antennas able to co...

My Experiences with Maven in IntelliJ IDEA and NetBeans IDE

 Mark As Read    

With IntelliJ IDEA supporting a fully-functional integration with Maven, you can automate your entire building process. The result is that you can create a new Maven project as well as easily handle multi-module projects.

Java 6 On MacWorst Release Ever (And Whats New!)

 Mark As Read    

When Apple finally released Java 6 for Mac OS 10.5.2, the Java community was more than a little upset. Java 6 only supports 64 Bit on Mac No Cocoa Support What to Do About Java 6 on Mac Using Java on Mac in 2022 Whats Changed Since Java 6 Where is Java on Mac Headed? The history of Java releases on Mac has been more than a little pro...

JPA 2.0: Why AccessType is Relevant

 Mark As Read    

Introduction If you are using the Java Persistence API (JPA) 2.0, you may be wondering what the AccessType setting is for and how it can be used. This article will explain what the AccessType setting does and how it can be used to improve your JPA experience. The Java Persistence API program is a standard interface for accessing databases in Java a...

NetBeans Platform Offshore

 Mark As Read    

Netbeans Platform Offshore has received an increased amount of attention given the massive amount of attention placed on the supply chain crisis that has occurred all throughout the world in recent years. Modern ships rely on NetBeans Platform Offshore and similar technologies to help guide them where they need to go. Thus, the world's reliance on ...

Calling JavaFX From Java?

 Mark As Read    

Putting Together the Best of Both Worlds One of the things that people like so much about JavaFx is the fact that it has a suite of powerful tools used by designers and creators to get exactly the kind of look and feel that they desire from their creations. When used properly, JavaFX will change the way that you take care of your biggest technolog...

Mixing Swing and Native Components

 Mark As Read    

Bringing Together Various Components There are situations in which it may be to the benefit of a programmer or other computer user to look at bringing together native components of a system with swing components. These are components that they have either created on their own accord or components that they have brought over from another service. Ei...

Hack OpenJDK with NetBeans IDE

 Mark As Read    

You've come to the right spot if you are trying to hack OpenJDK with NetBeans IDE. This article explains what OpenJDK with NetBeans is and how you can use NetBeans to create OpenJDK. But before we dive in, first things first:

Spring Boot Performance Workshop With Vlad Mihalcea

 Mark As Read    

A couple of weeks ago, we had a great time hosting the workshop you can see below with Vlad Mihalcea. It was loads of fun and I hope to do this again soon! In this workshop, we focused on Spring Boot performance, but most importantly on Hibernate performance, which is a common issue in production environments. Its especially hard to track since iss...

Transmitting Log Messages to a Kafka Topic Using Kafka Log4j2 Appender

 Mark As Read    

Context It could be a basic "Hello, World!" application or a complex banking solution like Stripe, but developing an application is a fascinating process. This process typically includes extensive testing and quality assurance to ensure that not only the requirements are met but also that the application is reliable enough for users to consume. Whi...

Writing Indexes in Java by Using Right Collection

 Mark As Read    

What Index Is and How To Use It in Java An Index is a structure that facilitates search in your data. Is a pretty general term and doesn't belong to some language or database. In order to explain it let's create a way to search users for specific criteria like name, id, birth date, etc. Quickly Searching Among Millions of User Entries Let's assume ...

Collecting Usage Data in Eclipse

 Mark As Read    

Article originally published June 6, 2008. The Eclipse Foundation is home to hundreds of open-source projects that people engage with all of the time. They have a tremendous amount of data and information that sits readily available for any and all to access as they wish.

Grails 1.0 Released!

 Mark As Read    

This article was originally published on February 5, 2008. When a new piece of coding material comes out, the entire coding community tends to get pretty excited about it. They care because they know that it means that there are new applications that they can play around with, and it is entirely possible that there will be some incredible new creat...

Update on Closures Coming to Java 7

 Mark As Read    

This article was originally published on November 19, 2009. What People Love About Java People love all kinds of java, including coffee, but we are more specifically talking about the coding program that is behind so many of the online products that we all know and love. That version of Java is something that people have sincerely taken to heart as...

RESTEasy 1.0 GA Released

 Mark As Read    

This article was originally published on January 1, 2009. Java Just Got a Little Better Have you been struggling to use the Java system as it exists today? If so, don't worry, you are not alone. There are plenty of people going through the same troubles, and no one is pleased with the fact that they have to struggle as hard as they do just to g...

Configuring Spring Boot Application Properties in Containerized Environment

 Mark As Read    

Until a few years ago, monolithic applications were common. With numerous functions knitted into the fabric of the codebase and interdependencies running through them, it was difficult or even impossible to work on individual functions in isolation. To add to the complexity, managing multiple environment-specific configuration was a nightmare. Th...

Announcing BFO Publisher

 Mark As Read    

Our first completely new product in 20 years, we're finally able to tell you about it

Tutorial: Build a Full-Stack Reactive Chat App With Spring Boot

 Mark As Read    

What You Will Build You will build a full-stack chat application with a Java Spring Boot back end, reactive data types from Project Reactor, and a Lit TypeScript front end. In addition, you will use the Hilla framework to build tools and client-server communication. What You Will Need 20 minutes Java 11 or newer Node 16.14 or newer An IDE...

3 Ways to Create Spring Boot Docker Images Without Docker File

 Mark As Read    

In this article, we would be looking into some of the ways to create docker images for a Spring Boot Application. As technology is growing, things have changed how applications that serve requests from end-user are deployed. Traditionally you would have a machine to deploy the application and decide on the configuration of the machine to keep the a...

Groovy 4.0: These 10 New Features Make It AWESOME!

 Mark As Read    

Switch Expression Groovy has always had much more powerful switch statements compared to Java. Class case values, regular expression case values, collection case values, closure case values, or at th...

GroovyBlogs.org 649 days ago

Groovy 4.0: These 10 New Features Make It AWESOME!

 Mark As Read    

Switch Expression Groovy has always had much more powerful switch statements compared to Java. Class case values, regular expression case values, collection case values, closure case values, or at the end, equal values case. All these options made the switch statement a first-class citizen in the Groovy world. And now, following the latest updates ...

Groovy Goodness: Using Macros For Getting More Information About Variables

 Mark As Read    

In a previous post we learned about the macros SV, SVI and SVD that return a string representation of variables with their name and value. Groovy 4 also added the NP and NPL macros that we can use to ...

GroovyBlogs.org 651 days ago

Groovy Goodness: Using Macros For Getting String Representation Of Variables

 Mark As Read    

Groovy 4 added some built-in macros that we can use in our code. A macro is code that will create new code. It does this by manipulating the Abstract Syntax Tree (AST) before the code is compiled. So ...

GroovyBlogs.org 651 days ago

Tribblix and static networking on AWS

 Mark As Read    

I've just made available the m27 AMIs for Tribblix. As usual, these are just available in London (eu-west-2).One thing I've noticed repeatedly while running illumos on AWS is that network stability isn't great. The instance will occasionally drop off the network and stubbornly refuse to reclaim its IP address even if you reboot it. It's not just Tr...

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