Java

Java Finalizers

Object’s finalize() methods are as old as Java. But its implementation details and performance implications remain misunderstood (if not unknown) by many Java developers. At Devoxx US on the 22nd March, Gautam Singh will be giving his Finalizers – The not so good, the bad the ugly talk. He will share his encounter with Finalizers, including how he rescued a retailer from daily server restarts in peak hours. We asked Gautam about Finalizers

Creating Uber JAR with Payara Micro

By Fabio Turizo of Payara Payara Micro allows running web applications in a self-contained and easy way. Since the release of Payara Server 162, there is a simple way to generate an “Uber” JAR that bundles the contents of a WAR file and the classes and resources that compose Payara Micro! Implementation First, generate a web application to be run in Payara Server using traditional means (like Maven for example). Then,

JFokus 2017: Java Rock up north

This year on 6-8 February over 1700 developers gathered in Stockholm to attend JFokus. I only attended the conference part of the session on 7th -8th but there were more lengthy tutorial sessions on the first day. I will try to summarize some of my highlights for you now. Day one: The conference had 6 parallel tracks there was a lot to choose from. For the initial kick off there

Microservices and User Interfaces in plain Java

If you have been following the web development industry in the last years, there’s a good chance that you have at least heard about microservices architectures. Some would say microservices are a specialization of SOA (service-oriented architecture). Others say that microservices are the same as SOA, or that microservices are SOA done right. In any case, you might be wondering how to take advantage of the knowledge around microservices. Is

Java 9 and Streams API

There are some feelings in the functional programming community that Java 8 didn’t go far enough. However, this is not the case for Simon Ritter. In Streams in JDK 8: The Good, The Bad and The Ugly he looks at the API with Oracle’s Stuart Marks. We asked him about Streams API. Also, ahead of his 55 New Features in JDK 9 talk at Devoxx US, we asked him what we can look forward to

Functional Java Done Right

Javaslang – the core functional library for Java 8 and beyond – allows us to start thinking in immutable values. Java 8 introduced some features to to support functional-style operations, such as Streams API and Optional. However for pure functional programming, it didn’t go far enough. On 23rd February, Grzegorz Piwowarek will talk at Voxxed Days Zurich about how Javaslang fills in the gaps.   What can attendees hope to learn from your

Implementing “remember me” in plain Java with Vaadin 8

One of the most common features for a login form is the remember me feature that allows users to be automatically signed in from a certain machine even after the HTTP session expires: Web applications usually implement this feature by using cookies. When the user selects the remember me option and signs in, the application stores a cookie to identify the user. The next time the user requests the web application, the

Fast queries and SQL expertise

According to Lukas Eder, “the SQL database will constantly outperform any hand written data retrieval algorithm – or in other words – … SQL, being a logic language, is the best language for business logic.” How can complex SQL statements return results quickly on huge tables? On February 23rd, Lukas Eder is speaking at Voxxed Days Zurich. We caught up with him to ask about the important rules when tackling SQL performance. Do have

Get started with JHipster

By Matt Raible, who will be speaking at Devoxx US in San Jose, California on March 21-23. This article shows you how to build a simple blog application with JHipster 4, which has not yet been released (as of 27 January 2017). Source Code If you’d like to get right to it, the source for this application is on GitHub. To run the app, use ./mvnw. To test it, run

Just enough code: WildFly Swarm MicroProfile

In September, we looked at MicroProfile, an initiative to create a baseline platform definition that optimises Java EE for a microservices architecture. It is a collaboration between Red Hat, IBM, Tomitribe, Payara, the London Java Community and more, with different implementations from different groups (see MicroProfile 1.0: What developers want). This is a quick glance at setting up a MicroProfile project using WildFly Swarm. For the code examples, see the