Apache Camel

Spring Boot & Apache Camel: Navigating the Data Processing Desert

Matt McCandless Apache, Articles, Java, Spring, Spring Boot Leave a Comment

This article will set up a basic Spring Boot app that incorporates Apache Camel to move some sample files around.

If you are like me, you find that flat-file processing can be pretty dry. Considering what Apache Camel does, its name is very fitting. While there are plenty of reasons for the name, it definitely makes sense that Apache Camel does a lot of lugging things around for you…

Spring Security 5 with OAuth2 Login

Quick Start: Spring Security 5 OAuth2 Login

Brandon Klimek Articles, Development Technologies & Tools, Security, Spring, Tutorial 1 Comment

Social logins using Oauth2 have become a industry standard. It has revolutionized the way sites share data and has allowed users to quickly access new applications without having to create a new set of credentials. This article gives an example of why OAuth2 was invented and provides a working example of a Spring Security 5 application integrated with Google.

What's New in JDK 14

Whatโ€™s New in JDK 14 and Beyond

Eric Solomon Articles, Development Technologies & Tools, Java Leave a Comment

Why should one care about new JDK releases? As most Java developers are acutely aware, most of the industry is still dominated by JDK 8, so the likelihood of being able to use these new features in the near feature is probably low. However, as the industry gradually shifts from JDK 8 to the latest LTS release and becomes more accustomed to the new, 6-month release cadence, we should start seeing faster adoption rates of new releases.ย 

As a result, the need to continually sharpen your sword and stay up to date will increase. Also, if you are wanting to help kickstart the shift beyond JDK 8 in your projects, knowing what value later versions bring and being able to incorporate them into your proposal can be extremely helpful in making your goal of using a newer version a reality. Besides those two reasons, it is also just plain exciting to see what the latest and greatest is and where the language is heading.

So without further ado, letโ€™s take a look at three of the more significant enhancements that come with JDK 14: Records, NullPointExceptions, and instanceof. If you like, you can check out the full list here. We’ll also briefly discuss JDK 15 and its promised JEPs.

A Quick Look at java.util.stream

Quick Look: java.util.stream Examples

Keith Shakib Articles, Development Technologies & Tools, Java Leave a Comment

Some of us take for granted the newer features in Java, but, being a software consultant, I get to be involved in projects that are sometimes constrained to older versions of Java. The features from Java 1.8 that I have enjoyed for a few years are brand new to others.

I wrote this blog as a primer for those who are just getting started using java.util.Stream classes, or for those who havenโ€™t had a chance to take a look at them until now. The quick topics below represent just a sampling of some of the ways to be more productive using java stream classes. Rather than providing a tutorial on how the classes are used, Iโ€™ll attempt to explain by example.

Expression Parser with Antlr4

An Antlr4-Based Expression Parser

Lou Mauget Articles, Development Technologies & Tools, Java, Programming, Python 1 Comment

In this blog, weโ€™ll present a simple arithmetic expression parser implemented through an Antlr4 parser generator. It will be able to take in an input string (such as 2+4+-4+-2*10%9*7) to produce the result (-12.0).

You may be thinking, “Great, but whatโ€™s the point?” Well, to answer your question, as simple as this example may seem, the principles involved actually extend to use cases such as DSLs, transpilation, and anything else expressible by grammar rules.

This post has two parts. In part 1, weโ€™ll discuss the background components of a parser. In part 2, weโ€™ll cover building the demo and running it. If you already understand grammar parsing, you could skip part one.