Subscribe: Javalobby - The heart of the Java developer community
http://www.javalobby.org/rss/rssthreads.jsp?forumID=61
Added By: Feedage Forager Feedage Grade A rated
Language: English
Tags:
apps  code  command line  data  eclipse  features  java  methods  module system  reactive  scala  series  spring  static methods  video 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: Javalobby - The heart of the Java developer community

DZone Java Zone



Recent posts in Java on DZone.com



 



Jersey Client Dependencies for JAX-RS 2.1

Wed, 18 Oct 2017 20:01:00 GMT

Jersey is the reference implementation of JAX-RS 2.1. The following Jersey dependencies are required in order to run a JAX-RS 2.1 client with JSON-P and JSON-B mapping outside of an enterprise container.

Jersey client version 2.6 implements the JAX-RS 2.1 API. The following dependencies add the client runtime to a project:




Controlling the Parallelism Level of Java Parallel Streams

Wed, 18 Oct 2017 16:01:01 GMT

With the recent Java 9 release, we got many new goodies to play with to improve our solutions — once we grasp those new features. The release of Java 9 is also a good time to revise whether we have grasped Java 8's features.

In this post, I’d like to bust the most common misconception about Java parallel streams. It’s often said that you cannot control parallel streams’ parallelism level in a programmatic way, that parallel streams always run on a shared ForkJoinPool.commonPool() and there’s nothing you can do about it.




Looking Into the Java Virtual Machine [Video]

Wed, 18 Oct 2017 10:01:01 GMT

A lot of Java developers, even experienced ones, struggle to understand the JVM. When I  interview people, I realize there are a lot of misconceptions around the JVM and virtual machines in general. So, with that in mind, I created a video to explain the important concepts of the JVM.




jOOQ Tuesdays: Nicolai Parlog Talks About Java 9

Wed, 18 Oct 2017 07:01:01 GMT

Welcome to the jOOQ Tuesdays series. In this series, we’ll publish an article on the third Tuesday every other month where we interview someone we find exciting in our industry from a jOOQ perspective. This includes people who work with SQL, Java, Open Source, and a variety of other related topics.

I’m very excited to feature today Nicolai Parlog, author of The Java Module System




Adding and Working With JAR Files in Your Local Maven Setup

Wed, 18 Oct 2017 04:01:01 GMT

Sometimes you want to work with a JAR file that isn’t hosted in Maven Central.

It might be a third-party JAR, it might be one that you have written, but regardless, you have a lot of options for this. The approaches that I have used include:




Java Command-Line Interfaces (Part 23): Rop

Tue, 17 Oct 2017 20:01:01 GMT

The Rop library is described on its main page as "a lightweight command line option parser written in Java." The "Introduction" to Rop also states, "Rop is designed to be minimal meanwhile convenient, and to cover most usual command line parsing use cases." This post is the twenty-third in this series on parsing command line arguments in Java and focuses on Rop.

Like the 22 posts in this series before this one, this post uses examples implementing two command line options, one for file path and name and one for verbosity level. The full code listing the example is available on GitHub.




Reactive Data Platforms, Real-Time Analytics, and Scale

Tue, 17 Oct 2017 16:01:01 GMT

Thanks to Alex Silva, Principal Data Architect at Pluralsight, for sharing his insights on the current and future state of the company’s data platform. Alex will be speaking during the Reactive Summit in Austin, Texas on Thursday, October 19, on “Designing A Reactive Real-Time Data Platform: Architecture and Infrastructure Challenges.” Click here to register for the summit.

Q: How is your company using a data platform to provide solutions to clients?




15 Productivity Tips for Eclipse Java IDE Users

Tue, 17 Oct 2017 10:01:02 GMT

With over 10 years of releases and countless extensions and plugins, Eclipse remains one of the most popular IDEs for developers working across several domains. Especially those in the Java ecosystem, where Eclipse provides a solid environment for developing, debugging and running applications. In this post, I'd like to share my favorite features in Eclipse that help me be more productive in my daily work as a Java developer. These features don't require any plugin to be installed if the very first tip is followed.

1. Use Eclipse Oxygen

There are many improvements in the last release of Eclipse alone, and with the latest build released just a few days ago, the IDE supports Java 9 out of the box. Some of these improvements are:




Modernizing Java Apps for IT Pros [Videos]

Tue, 17 Oct 2017 07:01:32 GMT

Today, we start releasing a new video series in Docker’s Modernize Traditional Apps (MTA) program. These are the first 4 of a 5 part video series in Docker’s Modernize Traditional Apps (MTA) program, aimed at Java IT Pros. The video series shows you how to move a Java EE app on JBoss Wildfly to a Docker container and deploy it to a scalable, highly-available environment in the cloud – without any changes to the app.

Part 1 introduces the series, explaining what is meant by “traditional” apps and the problems they present. Traditional apps are built to run on a server, rather than on a modern application platform. They have common traits, like being complex to manage and difficult to deploy. A portfolio of traditional applications tends to under-utilize its infrastructure and over-utilize the humans who manage it. Docker Enterprise Edition (EE) fixes that, giving you a consistent way to package, release and manage all your apps without having to re-write them.




Migrating a Spring Boot App to Java 9: Compatibility

Tue, 17 Oct 2017 04:01:01 GMT

With the coming of Java 9, there is a lot of buzz on how to migrate applications to use the module system. Unfortunately, most of the articles written focus on simple Hello world applications. Or worse, regarding Spring applications, the sample app uses legacy practices — like XML for example. This post aims to correct that by providing a step-to-step migration guide for a non-trivial modern Spring Boot application. The sample app chosen to do that is the Spring Pet clinic.

There are basically 2 steps to use Java 9: first, be compatible then use the fully-fledged module system. This post aims at the former, a future post will consider the later.




Tidy Config With Owner

Mon, 16 Oct 2017 20:01:00 GMT

It is a truth universally acknowledged that a single program in possession of a good configuration must be in want of a way to easily access it.
—Jane Austen?

Any non-trivial software, at some point, needs a way to allow users to configure it. By far the easiest solution is to use a text file with some convention (.ini, .yaml, .json, .xml, .you name it) and parse it at the start.

Java has had support for properties files since version 1, and it’s probably the easiest way to configure Java programs. The class Properties has the methods load and store to read and write property files. So far so good.




Java: Introducing Redis Mock

Mon, 16 Oct 2017 16:01:06 GMT

Many software solutions built today often depend on external processes. Examples include: databases, web services, indexing services, etc.

This introduces challenges when testing software solutions. How can you simply test a solution in isolation without having to spin up instances of external processes that solution may depend on?




3 Ways to Diff Java Code in IntelliJ [Video]

Mon, 16 Oct 2017 10:01:01 GMT

I was busy refactoring code in RestMud this morning because I want to try and open source the basic game engine, and then later the Web/REST API, but I want to tidy up the code a little first.

I've been working through the code:




F-Bound Over a Generic Type in Scala

Mon, 16 Oct 2017 07:01:01 GMT

In this article, I will be mentioning Comonads and sharing my experience with Apiumhub. If you know what they are, great, and if you don’t know, no worries, because this article’s main topic isn’t Comonads. It’s actually about Scala generics, about returning the “Current” Type in Scala.

In my odyssey to understand Comonads, the first thing I did after reading about them was to implement a series of tests that would make them a little bit clearer, and I did it using the NonEmptyList implementation of the scalaz library.




Kotlin: Static Methods

Mon, 16 Oct 2017 04:01:00 GMT

If you come from the Java world, you are already familiar with static methods. They prevent us from copying our methods to every class and allow us to use them without creating an object. But what if I told you that we don’t have static methods in Kotlin?

It's true. But that doesn’t mean that we can’t reap the benefits provided by static methods in Kotlin. There is a way around them. Let’s see how.




Reactive Spring [Video]

Sun, 15 Oct 2017 04:01:00 GMT

As you might already know, Spring 5 went GA a couple of weeks ago. To celebrate this, last week we held an incredible webinar by Josh Long on Reactive Spring. If you have followed the news about the release, you probably already know, that among other things (such as JDK 9, Java EE 8, and Kotlin support), Spring 5  can integrate with Spring Reactor to support reactive programming.

In this webinar, Josh not only introduced what reactive programming is about, but also a gave a hands-on live coding demo on how to use Reactive Spring to build message-driven, elastic, resilient and responsive services–in both Java and Kotlin. The sources of the code shown in his demo are available on GitHub.




Modular Java 9 Apps With Gradle and Chainsaw

Sat, 14 Oct 2017 04:01:00 GMT

For the last few months, I have observed the development and adoption of the Java 9 module system, also known as Project Jigsaw. The final result is impressive, however, I also see a lot of confusion among regular developers in how to actually use modules. The tool support does not help, either. The final days of Jigsaw development were really hot, and some important decisions were made at the last minute. No doubt the authors of many popular tools had little time to make the necessary changes and, in my opinion, on September 21, we woke up a bit unprepared for Jigsaw.

My first attempt to add a module descriptor to an existing, small application was unsuccessful. I spent four hours figuring out how to solve package splits among third-party dependencies and how to add the necessary CLI switches to my Gradle build to make everything work. I found the experimental-jigsaw Gradle plugin, but I realized, that it has its own limitations, too (e.g. I could not add a mocking library to my tests, and I was restricted to JUnit 4!). However, the experience was worth it — I realized that I can use it to make a better Jigsaw plugin for Gradle and bring modules closer to developers. So, here we go with the Gradle Chainsaw Plugin!




Docx Templating With docx4j: Tips and Tricks

Fri, 13 Oct 2017 20:01:00 GMT

The Problem

Say we need to create a Word document (based on a template) filled with data from a system with 'unlimited' rows and a possibly 'unlimited' number of columns.

Just like in the awesome, pro, fancy picture below.
(image)




Spring Tips: Bootiful, Reactive Scala [Video]

Fri, 13 Oct 2017 16:01:01 GMT

Hi, Spring fans! In this tip, we’ll look at the bootiful possibilities of integrating Spring Boot and Spring WebFlux, the reactive web runtime and framework in Spring Framework 5, with Scala and the Scala ecosystem — as well as integrating the Spring WebFlux reactive runtime with other Reactive Streams implementations, like Akka Streams.




JShell in Five Minutes

Fri, 13 Oct 2017 10:01:10 GMT

This post builds on my My Top Java 9 Features post by looking more in depth at these features. Here we show you how you can learn JShell in five minutes, and improve your Java 9 development experience.

Getting Started

Assuming you have downloaded and installed Java 9 then you can start the shell by typing: