Java

Java logo
Article

JShell Step by Step

Amit Nijhawan

Java 9 has added the following new features: Java 9 REPL (JShell) Factory methods for immutable List, Set, Map, and Map.Entry Private methods in Interfaces Java 9 module system Process API improvements Try with Resources improvement CompletableFuture API improvements Reactive Streams I am going to explore JShell in this blog. Steps to follow: Download Java 9 from scratch and install. Run the shell. Get help from Java 9's REPL. Run a few calculations in JShell. Define a function and use...

Eclipse logo
Article

Jug Summer Camp 2017, Vert.x and collaborative DJ mix

Julien Ponge

I had the pleasure to present "Eclipse Vert.x for Dj fun and for profit!" at the latest edition of the Jug Summer Camp in La Rochelle, France. The Jug Summer Camp is a popular developer conference organized by Serli in western France, gathering regional attendees as well as speakers and participants from other French Java user groups. My talk was an introduction to reactive programming with Eclipse Vert.x, featuring demos with RxJava-based edge services as well a collaborative DJ mix...

JBoss Developers Guide
Article

JBoss: Developer’s Guide

Elvadas Nono

Modern applications development demands optimized tools and services. Applications must integrate with different systems and share data. Organizations must be able to immediately respond to changing conditions. JBoss Middleware drives enterprise application innovation every day to deliver the best projects and products. Whether you are an experienced enterprise application developer or just getting started, JBoss: Developer’s Guide provides you with the best time to value guide for enterprise application delivery with the JBoss brand, using hands-on coding and lab exercises...

A MicroProfile-based microservice on OpenShift Container Platform
Article

The Monitoring aspects of Eclipse MicroProfile 1.2

Heiko Rupp

Eclipse MicroProfile (MP) aims at bringing Microservices to Enterprise Java by developing common standards that MP-compliant vendors then implement [1]. This not only applies for developer APIs but also to interfaces for running, configuring, and managing the servers. The more classical specifications have often left out many details as vendor-specific - especially in the area of setting up and running of the applications and servers. For the Java Enterprise Edition, there are standards like JMX and JSR-77, but those were...

Eclipse logo
Article

Server-side Kotlin with Eclipse Vert.x at JavaOne

Thomas Segismont

I was lucky enough to speak at JavaOne 2017 last month. It was my first time there, as both an attendee and a speaker. I must say I was very much impressed. In particular, during the keynotes, I was happy to see how Java is moving forward, keeping up with the fast innovation pace in the cloud area. Unleash Your Talents: Server-Side Kotlin for Mobile Developers My presentation was about using the Kotlin language on the server-side with Eclipse Vert.x...

Article Thumbnail
Article

Red Hat Developers at EclipseCon Europe

Mickael Istria

In a couple of weeks (October 24-26), EclipseCon Europe is going to take place in Ludwigsburg, near Stuttgart, in Germany. This is a great event that many of us like to attend. Indeed, it's an opportunity for Red Hat developers to share our work in very deep technical details with other experts from other organizations, to show how some previous ideas have become valuable realizations. Given the high technical level at EclipseCon Europe, we're not only presenting there to show...

Article Thumbnail
Article

An Overview of the New JDK 9 Release

Rahul Kumar

As many of you are aware, Oracle released JDK 9 on 21st September, 2017. According to Oracle, this is the biggest release in Java history after JDK 5 & JDK 8. JDK 9 has lot of interesting new features that will change the way developers code. I would liketo list of some cool, new features in JDK 9 that every developer should be aware of. This is list This list is an overview. For more detailed information, please review the...

Java code coverage in Eclipse
Article

Java code coverage in Eclipse

Leo Ufimtsev

Besides testing, Java code coverage can be a very effective debugging tool as it helps you see which code is ran. EclEmma is a great Java code coverage tool that has an Eclipse plugin. It's very simple and intuitive and has all you would expect from a code coverage tool. With it, you can: See code coverage for a java application that you've run (and potentially merge multiple run instances) See code coverage for jUnit tests and maven tests See...

Article Thumbnail
Article

Configuring Spring Boot on Kubernetes with Secrets

Kamesh Sampath

In the Part-I of the series, we saw how we used ConfigMaps in configuring spring boot application Kubernetes. ConfigMaps are OK when we use simple configuration data that do not contain sensitive information. When using sensitive data like API Keys, passwords etc. Secrets are the preferred and recommended way. In this second part of the series, we will explore configuring spring boot on kubernetes with Secrets. The sources for this blog post are available in my github repo. Setup You...

Article Thumbnail
Article

Configuring Spring Boot on Kubernetes with ConfigMap

Kamesh Sampath

ConfigMaps is the Kubernetes counterpart of the Spring Boot externalized configuration. ConfigMaps is a simple key/value store, which can store simple values to files. In this post "Configuring Spring Boot on Kubernetes with ConfigMap", we will see how to use ConfigMaps to externalize the application configuration. One of the ways configuring the spring boot application on kubernetes is to use ConfigMaps. ConfigMaps is a way to decouple the application specific artifacts from the container image, thereby enabling better portability and...

Article Thumbnail
Article

How to use JShell: An Command Line tool introduced in JDK 9

Rahul Kumar

Many of you might be aware that Oracle released JDK 9 officially on 21st September, 2017. After JDK 5 and JDK 8, JDK 9 is supposed to be the most effective release from application development perspective. JDK 9 has introduced a lot of new functionality, language level features and API enhancements for developers. This article is about one of command line tool named JShell introduced in JDK 9. Lets learn about it in short. What is JShell? JShell was introduced...

Article Thumbnail
Article

Configuring Spring Boot Application on Kubernetes

Kamesh Sampath

When the developers plan to deploy Spring Boot application on Kubernetes, the first question comes to a spring developer's mind is "Can I use Spring Config server?" Spring Config server is a de-facto way of doing centralized configuration of a distributed application. Yes, we can use Spring Config server, but let’s think of some constraints that Spring Config server can have in a typical Enterprise deployment: No access to the internet from production. This means I can’t use the default...

Article Thumbnail
Article

Handling Exception Scenarios in REST API developed using JAX-RS

Rahul Kumar

Prerequisite: Hands on Knowledge of REST API Development using JAX-RS. REST Services has been an integral part of complex enterprise applications for several years. Developers generally prefer two APIs listed below for building REST API in their enterprise applications. JAX-RS – Part of JEE Specification with different implementations like RestEasy, Jersey, Restlet etc. Spring Boot – An OpenSource Spring Community Project best suited for Microservices-based applications. In this Article, we will learn how to handle Exceptions gracefully in Rest APIs...

Java logo
Article

Java Language Support for Visual Studio Code enters the Million Downloads Club

Gorkem Ercan

It has been a year since I posted the announcement about the availability of the Java Language Support for Visual Studio Code. During this past year, we made 10 releases, added various features, fixed many bugs but more importantly, we have constantly grown our user base and finally reached and passed a million downloads on the Visual Studio Marketplace. Fred Bricon, Snjezana Peco and I, as the core team have worked on the Java Language Server and the Visual Studio...

RESTful API
Article

Know how RESTful your API is: An Overview of the Richardson Maturity Model

Rahul Kumar

Most of the time, I see developers are bit confused about the term REST. For some enterprise application developers, the meaning of REST is JSON i.e. if they are using JSON in their application, which means they working on REST API, which is not true to some extent. Let's take a look what exactly a REST API is. Let's say we designed a REST API. How do we know how much Restful API is? Some developers call it "Not Restful...

https://www.packtpub.com/application-development/jboss-developers-guide
Article

JBoss Developer's Guide Book is out

Elvadas Nono

The JBoss Ecosystem is very large and diverse, while you are looking for step by steps and practical introduction to the major JBoss products or looking for tips to improve your business by coupling JBoss Products, this book is for you. In a series of nine practical chapters, you will progressively; Learn how to set up and maintain a JBoss Enterprise Application Server domain. Build Microservices by coupling JBoss Undertow with the most popular Java EE frameworks like CDI, JPA...

Continuous Integration: A "Typical" Process
Article

Continuous Integration: A "Typical" Process

AbdulBasit Kabir

Typical CI process (source: www.pepgotesting.com) Continuous Integration (CI) is a phase in the software development cycle where code from different team members or different features are integrated together. This usually involves merging code (integration), building the application and carrying out basic tests all within an ephemeral environment. In the past, the code was integrated at an “integration phase” of the software development life cycle. This phase came after different teams would have spent weeks, months or even years working in...

DevOps with OpenShift_tile card
E-book

Devops with OpenShift: Cloud Deployments Made Easy

Stefano Picozzi +2

For many organizations, a big part of DevOps’ appeal is software automation using infrastructure-as-code techniques. This book presents developers, architects, and infra-ops engineers with a more practical option. You’ll learn how a container-centric approach from OpenShift® can help your team deliver quality software through a self-service view of IT infrastructure.

A MicroProfile-based microservice on OpenShift Container Platform
Article

A MicroProfile-based microservice on OpenShift Container Platform - Part 2

Cesar Saavedra

Creating, associating, and using a database with a MicroProfile-based microservice In this blog post, I will cover how to create, populate, and associate a database to your MicroProfile-based microservice. I will also cover how to modify your microservice so that it makes use of the database. This is the continuation of the " A MicroProfile-based microservice on OpenShift Container Platform - Part 1; Creating a simple MicroProfile-based microservice and deploying it to OpenShift Container Platform" blog post and it assumes...

A MicroProfile-based microservice on OpenShift Container Platform
Article

A MicroProfile-based microservice on OpenShift Container Platform - Part 1

Cesar Saavedra

Creating a simple MicroProfile-based microservice and deploying it to OpenShift Container Platform Eclipse MicroProfile is an open source specification for Enterprise Java microservices. It is a community of individuals, vendors, and organizations collaborating and working on innovative microservices patterns for Enterprise Java within the context of modern development, architectures, and underlying infrastructures, e.g. health checks, fault tolerance, metrics, and security propagation within a cloud environment. Its first release was based on 3 Java EE JSRs/libraries/APIs, but this does not necessarily...

Skinny on Fat
Article

The Skinny on Fat, Thin, Hollow, and Uber

James Falkner

"I used WildFly Swarm to shrink my app from 45 megabytes to only 2243 bytes." I was recently playing around with various techniques for packaging Java microservices and running on OpenShift using various runtimes and frameworks to illustrate their differences (WildFly Swarm vs. WildFly, Spring Boot vs. the world, etc). Around the same time as I was doing this an internal email list thread ignited discussing some of the differences and using terms like Uber JARs, Thin WARs, Skinny WARs...

Red Hat OpenShift
Article

Troubleshooting Java applications on OpenShift

Frédéric Giloux

What is it about? OpenShift has seen a lot of traction with the release of its third version based on Kubernetes a couple of years ago. More and more companies after a thorough evaluation of OpenShift Container Platform (OCP) have built an on-premise or in the cloud PaaS. With the next step, they have started to run their applications on OCP. One of the important aspects of running applications in production is the capacity of quickly restoring services to the...

Article Thumbnail
Article

Announcing Red Hat Developer Studio 11.0.0.GA and JBoss Tools 4.5.0.Final for Eclipse Oxygen

Jeff Maury

JBoss Tools 4.5 and Red Hat JBoss Developer Studio 11.0 for Eclipse Oxygen are here waiting for you. Check it out! Installation JBoss Developer Studio comes with everything pre-bundled in its installer. Simply download it from our Red Hat Developers and run it like this: java -jar jboss-devstudio-.jar JBoss Tools or Bring-Your-Own-Eclipse (BYOE) JBoss Developer Studio requires a bit more: This release requires at least Eclipse 4.7 (Oxygen) but we recommend using the latest Eclipse 4.7 Oxygen JEE Bundle since...

Camel / Red Hat Fuse
Article

How to run FIS 2.0 application using source S2I deployment procedure

Chandra Shekhar Pandey

This article describes how to create and deploy an FIS 2.0 project using the s2i source workflow. It creates a project from scratch and using github repository one can deploy their FIS 2.0 camel and spring-boot based project to an Openshift environment. Below are the steps in the sequence, which should be followed to deploy the application easily. Firstly, one should setup an Openshift environment with FIS image and templates as per doc https://access.redhat.com/documentation/en-us/red_hat_jboss_fuse/6.3/html-single/fuse_integration_services_2.0_for_openshift/. Create a directory spring-boot somewhere in...