Delivered once every Week. No Spam Ever.

Issue - 5


Worthy Read

I’m running my archive for several years now, from Daily Fratze. Daily Fratze contains a home grown crawler that checks my user time line and stores my tweets in a MySQL database. I’m using JPA with Hibernate as my database access tool, so Hibernate Search fit’s nicely and is really easy to implement. Hibernate Search is a super easy way to add an Apache Lucene full text index to your entities.
Hibernate
,
java

The demo is centered around a super simple REST application that registers people for the NetBeans day. If you familiar with Spring Boot and Spring Data, the stuff isn’t probably to new, but you can still learn about the NB-SpringBoot plugin which does a lot of the stuff in NetBeans, that STS or IntelliJ do for Spring Boot.
Spring
,
netbeans

Decompiling Java code may not be something you do in daily development but it can help turn the tide when debugging critical problems. This is a beginners overview of how Java decompiling works to debug Java.
core-java

Java 9 is coming! It’s just six more months until the scheduled release and besides the module system, it brings a couple of new language features and many new and improved APIs. We need to have a look at all the shiny new things we get to play with, so here it is, the ultimate guide to Java 9.
Java9

15 Java Libraries Every Developer Should Know
java

Primefaces is a JavaServer Faces (JSF) component suite. It extends JSF’s capabilities with rich components, skinning framework, a handy theme collection, built-in Ajax, mobile support, push support, and more. A basic input textbox in the JSF tag library becomes a fully-featured textbox with theming in Primefaces.
java
,
Spring

These days it seems to me that everyone blabs about the blessing of microservices and the new architectural style. In most articles about the new glory architecture of microservices, it's generally assumed, that Java EE is slow, dull, and scales poorly. There seems to be a big misunderstanding about what Java EE really is. And I even assume that not many of the young believers in the new world of microservices have engaged much with the concepts of Java EE. I'm taking here three examples each developer is confronted with. And perhaps you will rethink these scenarios in light of Java EE.

Software developers try to take care of many cases when they develop a software. They make checks for null comparisons, checking to be negative for a function variable which should be positive, etc. They also want to write generic software which can run on Windows, Linux, etc. cause they do not know at where it will be run.
java

Warning: the following string of characters is known to induce stress responses in certain individuals of the human species. “java.lang.NullPointerException: null”. If you’ve ever been frustrated with an exception, you’ve reached the right place.
java

There’s a lot of explanations of what’s going on and why but in the end, it comes down to this: We have a query string from an HTTP POST request and want to parse the parameters into a more convenient data structure. For example, given a string a=foo&b=bar&a=fu we want to get something like a~>{foo,fu} b~>{bar}.
java

The introduction of the modular system in JDK 9 will help developers to use a small part of Java SE for development on small devices or on separate instances in a cloud environment, for example. Today, 95 features out of 120 are part of the JDK 9 early access. This is a good time to download the early access release and test the new features in JDK 9
java

I am pleased to announce that the second milestone for Spring for Apache Kafka version 1.1.0.M2 is now available in the spring milestone repo.
Spring

We're building a mailbox application for one of the banks here in Poland. The idea is to give clients a better tooling for their needs to contact the bank whether it's a support question or a complaint. Obviously this also means integrating with internal bank mechanisms and now clients are receiving their bank statements in a much more convenient way. It probably sounds boring because we've all been using emails for years. However, designing your own messaging application turns out to be quite a challenge especially when everyone just keeps on saying just do it like Google does ;-). The domain is simple, yes, but the scale of the system make things much more challenging. Plus it's not only for messaging. We're currently integrating our mailbox application with some of our other products that add more functionalities like internet forms and automated workflow. Most of the features have already been implemented and I'm still in awe that our whole backend is under 20k lines of code. An...
java

HTTP/2 introduced the concept of Streams and Binary frames. So HTTP/2 is no longer text-based, like HTTP/1.1 but in binary format. This reduces the effort needed for parsing the messages. A stream should be something like a channel on a TCP connection. You can have multiple streams on one TCP connection.
java

So we’ve already talked a little bit about the improvements in Java 9 to two features that were introduced in Java 8: Streams and Collectors. But what about one of our other Java 8 friends: Optional. At Iteratrlearning we’re real fans of the Optional type. We’ve found that, if used well, it can make your code more explicit and reduce the scope for bugs. Of course nothing is perfect. Optional in Java 8 was missing a few features that have been improved upon in Java 9 and that’s what we’ll be talking about here: stream(), ifPresentOrElse() and or().
java

Like it or not, JSON is the data format of the web at the moment. It has found uses in application configuration, taxonomy management, and pretty much any domain that used to be handled by XML is now increasingly being taken over by JSON.
JSON
,
java

Connected devices, IoT, and on-demand user expectations push enterprises to deliver instant answers at scale. Applications that anticipate customer needs and fulfill expectations for fast, personalized services win the attention of consumers. Perceptive companies have taken note of these trends and are turning to memory-optimized technologies like Apache Kafka and MemSQL to power real-time analytics.

How do we want to sort them? Do we want to sort them by weight? If so, are we sorting them from lightest to heaviest or heaviest to lightest? When we are sorting them, we need to repeatedly compare two apples' weights until all the apples are in the correct order. Is Apple 1 heavier than Apple 2? Is it heavier than Apple 3? We need to keep doing that until the list is sorted. The comparable interface helps us accomplish this goal. Comparable can’t sort the objects on its own, but the interface defines a method int compareTo(T).
java

Since we started using RxJava in our Yammer Android app we’ve often encountered APIs that don’t follow its reactive model, requiring us to do some conversion work to integrate them with the rest of our RxJava Observable chains.
java

When working with web applications most of the time we’ll want to store our User objects in a Database and use something like JPA annotations and spring data repositories to make life easier with our persistence. Unfortunately Spring Security assumes it’s own User class which doesn’t necessarily have all the fields we might be interested in assigning to a User, such as email. However, it is possible to marry your DB User Entity with your Spring Security User object so that it is available from Authentication objects.
spring

Hibernate is the most popular JPA provider and knowing its inner-workings can make the difference between a high-performance enterprise application and one that barely crawls. This presentation goes through the most common performance bottlenecks issues like exotic mappings, too much flushing, inappropriate queries, JDBC batch updates misuse, and suboptimal result set fetching. Aside from common anti-patterns, I will also present some very useful Hibernate features like the enhanced identifier generators, locking-likelihood reduction, caching strategies and bytecode enhancements.
Hibernate
,
java

Rapidoid - Extremely Fast, Simple and Powerful Java Web Framework!
java

I’m pleased to announce the release of Spring Session 1.2.2.RELEASE. This release contains numerous bug fixes and trivial enhancements.
Spring


Projects

Qart - 635 Stars, 73 Fork
Qart merge picture and QR code, based on https://github.com/chinuno-usami/CuteR

FlipShare - 412 Stars, 59 Fork
It's a flip way to show share widget.

DropDownWarning - 28 Stars, 2 Fork
Drop down message

demo-java-9 - 9 Stars, 3 Fork
Demonstrates Java 9's new features

streams-utils - 8 Stars, 1 Fork
In the Java 8 Stream API, a classical stream operation can only work on the current element of the given stream, but cannot take into account the previous elements.

demo-junit-5 - 6 Stars, 1 Fork
Demonstrating JUnit 5 features

This repository will help Android developers to make connection with HTTP clients and put JSON data into Recycler View in just 1 simple function call.

play-java-maven - 3 Stars, 0 Fork
A simple demo project about how to use Playframework with Maven

tweetarchive - 3 Stars, 0 Fork
Hibernate Search and Spring Boot: Simple yet powerful archiving

NetBeansEveningCologne - 2 Stars, 0 Fork
NETBEANS, MAVEN AND SPRING BOOT… MORE FUN TOGETHER