Java

How To Thumbnail
How To

Build your first application using Java on RHEL 7 with OpenJDK 8

mguerett

Get started developing with Java 8 on Red Hat Enterprise Linux in under 10 minutes. Introduction and Prerequisites In this tutorial, you will see how to get started with Java development on Red Hat Enterprise Linux by creating a simple Hello World application. You will install a Java Development Kit (JDK), and learn what Java packages are available. The whole tutorial should take less than 10 minutes to complete. You will need a Red Hat Enterprise Linux 7 system with...

Article Thumbnail
Article

Data Encapsulation vs. Immutability in Javascript

Lance Ball

A while ago, I wrote a fairly long post attempting to shed some light on a few things you can do in your JavaScript classes to enforce the concept of data encapsulation - or data "hiding". But as soon as I posted it, I got some flak from a friend who is a Clojure programmer. His first comment about the article was this. Mutability and data encapsulation are fundamentally at odds. Eventually, he walked that back - but only just...

Camel / Red Hat Fuse
Article

Getting Started with Fuse Integration Service 2.0 Tech preview

Christina Lin

To get started with FIS 2.0, for people who are just getting to know the technology, here is how I interpret it. Basically, it's divided into two aspects. 1. Integration development: FIS uses Apache Camel as the core technology that creates, orchestrates, and composes microservices into a super lightweight thin integration layer, and becomes the API provider and service orchestrator through exposing RESTful or messaging service endpoints. And you can choose to either package and run it with Spring-Boot or...

Article Thumbnail
Article

A-MQ 7 Beta Component

Justin Ross

A-MQ Components A-MQ is a suite of servers and clients that work together to form the foundation of a reliable distributed application. A-MQ Broker A-MQ Broker is a pure-Java multiprotocol message broker. It’s built on an efficient, asynchronous core, with a fast native journal for message persistence and the option of shared-nothing state replication for high availability. Persistence - A fast, native-IO journal or a JDBC-based store High availability - Shared store or shared-nothing state replication Advanced queueing - Last...

Red Hat Logo
Article

Spring Boot and OAuth2 with Keycloak

Kamesh Sampath

The tutorial Spring Boot and OAuth2 showed how to enable OAuth2 with Spring Boot with Facebook as AuthProvider; this blog is the extension of showing how to use KeyCloak as AuthProvider instead of Facebook. I intend to keep this example as close to the original Spring Boot and OAuth2 and will explain the changes to the configuration to make the same application work with KeyCloak. The source code for the examples are available in the github repositories listed below. Keycloak...

Eclipse logo
Article

Eclipse Vert.x Core Cheat Sheet

Clement Escoffier

Eclipse Vert.x is a toolkit used to build reactive and distributed systems on the Java Virtual Machine. Vert.x supports a variety of languages letting you choose which one you’d prefer. The Vert.x Core cheat sheet covers the creation of a project using Apache Maven, Gradle or the Vert.x CLI, and references most common Vert.x Core APIs, in 3 different languages (Java, JavaScript, and Groovy). Forgot how to create an HTTP server, use the HTTP client, implement a request-response on the...

New vscode-java
Article

New vscode-java 0.0.8 release

Fred Bricon

Version 0.0.8 of the Java extension for Visual Studio Code (a.k.a. vscode-java) has been unleashed onto the world. It's available in the Visual Studio Code Marketplace and can be found and installed directly from within Code. Highlights of this release can be seen in this screencast: Gradle Support vscode-java finally provides basic Gradle support for Java projects. Basically, you just need to open a folder containing a build.gradle file in its root and wait for the Java support to kick...

Camel / Red Hat Fuse
Article

How to containerize your Camel route on Karaf within OpenShift

Abdellatif Bouchama

The Red Hat JBoss Fuse solution offers a new approach of ESB, both lightweight and modular. It is perfectly suited to allow you to implement light integrations. JBoss Fuse is fully supported, based on the power of Apache Karaf --- Karaf allows for the easy deployment of your ActiveMQ Broker, your CXF web services, or your own Apache Camel routes. Most of us are more familiar with the OSGI Environment, and what it offers: things like control of classloader behavior...

Article Thumbnail
Article

Spring Cloud for Microservices Compared to Kubernetes

Bilgin Ibryam

Spring Cloud and Kubernetes both claim to be the best environment for developing and running Microservices, but they are both very different in nature and address different concerns. In this article we will look at how each platform is helping in delivering Microservice based architectures (MSA), in which areas they are good at, and how to take best of both worlds in order to succeed in the Microservices journey. Background Story Recently I read a great article about building Microservice...

Article Thumbnail
Article

What's New in Red Hat JBoss BRMS and BPM Suite 6.4

Duncan Doyle

Red Hat has just released new versions of its popular business automation products: Red Hat JBoss BRMS & Red Hat JBoss BPM Suite 6.4. In this post we will highlight the improvements and new features these releases brings. Apart from stability and performance improvements, version 6.4 brings new, highly requested, features that improve the platform experience in larger enterprises. The new versions of the platforms are available both from the Red Hat Customer Portal ( BPM Suite and BRMS) and...

Automating microservices deployment with Red Hat Ansible Automation
Article

Automating microservices deployment with Ansible

Rafael Benevides

One of the main principles of microservices is to be independently deployable. As a consequence, Microservices development and operation tend to be much more complex than a Monolith because of their distributed nature --- if your IT team has not moved out yet from its silos and has adopted DevOps practices, the operations team will not really understand why they have to deploy hundreds of independent software pieces in opposite to the "good old monolith". "You need a mature operations...

Article Thumbnail
Article

Microservices: Comparing DIY with Apache Camel

James Falkner

Microservices are currently enjoying immense popularity. It is rare to find a tech conference without at least a few mentions of them in corridor conversations or titles of talks, and for good reason: microservices can provide a path to better, more maintainable, higher quality software delivered faster. What's not to love? Of course there are the "negatives" and details in the implementation of microservices that can trip up even the most seasoned architect-developer, but at the same time we are...

Article Thumbnail
Article

Eclipse for JNI development and debugging on Linux (Java and C)

Leo Ufimtsev

Cross language development in one project In this tutorial style article I'll discuss how to configure Eclipse for Java Native Interface (JNI) development based on a sample project that you can copy and modify. I.e, you can have a single project that can be both Java and C at the same time, and support a full code navigation and debugging of both languages. This article is focused on the configuration of Eclipse rather than explaining JNI itself, however there are...

Red hat JBoss Developer Studio image
Article

How To Setup Fuse Tooling For JBoss Developer Studio 10

Eric D. Schabell

The release of the latest JBoss Developer Studio (JBDS) brings with it the questions around how to get started with the various JBoss Integration and BPM product tool sets that are not installed out of the box. In this series of articles we will outline for you how to install each set of tools and explain which products they are supporting. This should help you in making an informed decision about what tooling you might want to install before embarking...

Article Thumbnail
Article

Business process management in a "microservices world"

David Bush

Generally when the topic of Business Process Management (BPM) comes up we think of BPM software suites. There’s another side to BPM though, and that’s the practice of process management, which doesn’t require any software at all. Traditionally the BPM practice has focused on continuous process improvement. There are various methodologies but it generally comes down to this: Collect metrics on the existing process Analyze those metrics Propose an optimization Simulate the optimization with the collected metrics Institute the validated...

Red Hat JBOSS BRMS
Article

Micro-rules on OpenShift: The CoolStore just became even cooler!

Duncan Doyle

One of our most popular Red Hat JBoss BRMS demo's, and one that has been available for quite some time, is the CoolStore demo. The CoolStore demo shows how business rules can be used to calculate values like promotional and shipping discounts in a shopping-cart. It furthermore illustrates concepts like ruleflow-groups and dynamic rule updates using KieScanner. Rules and micro-services: the JBoss BRMS Decision Server One of the more interesting features we've recently released in the Red Hat JBoss BRMS...

Article Thumbnail
Article

How Red Hat re-designed its Single Sign On (SSO) architecture, and why.

Brian Atkisson

Red Hat, Inc. recently released the Red Hat SSO product, which is an enterprise application designed to provide federated authentication for web and mobile applications. In the SAML world, RH SSO is known as an Identity Provider (IdP), meaning its role in life is to authenticate and authorize users for use in a federated identity management system. For example, it can be used to authenticate internal users against a corporate LDAP instance such that they can then access the corporate...

That app you love
Article

That app you love, part 3: Every setting in its place

N. Harrison Ripps

Welcome to the third installment of That App You Love, a blog series in which I show you how to you can make almost any app into a first-class cloud citizen. If you want to start from the beginning, jump back and check out Part 1: Making a Connection. In Part 2 of this series, we looked at ZNC’s configuration options to decide which settings we wanted to expose to the user, and which settings we could hard-code straight into...

Article Thumbnail
Article

Development workflows with Fuse Integration Services (FIS)

Frédéric Giloux

Fuse Integration Services (FIS) is a great product bringing routing (Apache Camel), SOAP and Rest services (CXF) and messaging (JMS) to the modern age of containers and PaaS and all its goodies: encapsulation, immutability, scalability and self healing. OpenShift provides the PaaS infrastructure to FIS. A developer may implement a module in isolation on his own machine, but it often makes sense, especially when we talk about integration services, to have the code being validated in a complex integrated environment...

Google Summer of Code
Article

How this year's Google Summer of Code ended up for JBoss and Vert.x

Heiko Rupp

Google Summer of Code (GSoC) is a yearly effort run by Google to bring students and open source projects together. Open source projects apply to be mentoring organizations. Google selects some organizations where students then apply. A limited number of them is selected to work on the projects. Each selected student gets a stipend from Google. This year Google has funded 1184 student projects for 178 organizations. Among the selected organizations were JBoss community and Vert.x with a total of...

New vscode-java
Article

Java Language Support for Visual Studio Code has landed

Gorkem Ercan

Java language server is an implementation of the language server protocol for Java. If you recall, language server protocol provides a common way for editors and IDEs to integrate with language smartness providers. By design, all of the language tooling magic happens on the Java language server, and can provide same level of smartness to tools that support the protocol. In fact, we are working with communities such as Eclipse Che to make this server available for their tools. As...

Article Thumbnail
Article

Red Hat Open Innovation Labs: Automating CI/CD Deployment Pipelines

Kevin McAnoy

In order for businesses to stay agile, developers must be able to deploy apps -- quickly, efficiently, and in a streamlined manner. Red Hat Open Innovation Labs uses a container-driven application development framework to perform continuous delivery and accelerate innovation. In this video, I’ll give you a peek into some of the work we at Labs are undertaking to accelerate application development. Specifically, I’ll walk you through the steps to create a deployment pipeline in Jenkins using the JBoss TicketMonster...

Microservices CI/CD Pipelines in Red Hat Openshift
Article

Microservices CI/CD Pipelines in Openshift

Rafael Benevides

One of the greatest advantages of using docker containers is the fact that you can move them between environments. A promotion from Development to a Production environment, shouldn’t take more than some few seconds. This is one aspect of “Continuous Delivery” Because Microservices Architectures are “independently replaceable and upgradeable”, they are the best scenario to show a “Deployment Pipeline”. Red Hat Developers has produced a sample and free application called “Red Hat Helloworlds MSA” that demonstrates different aspects of microservices...

Article Thumbnail
Article

High Availability Servlets with EAP 7 and OpenShift

Mark Eastman

Prior to working at Red Hat, I worked for a software company, building financial software for large institutions. From my experiences I knew that some customers required, or demanded, a very aggressive Service Level Agreement (SLA). If we consider an SLA of 99.999% (generally referred to as “five nines”) then this would allow for a six-second unavailability or downtime over a full week, anything more and penalties would have to be paid. To provide this level of uptime, it is...