Java

RedHat Shadowman Logo
Article

Enabling SAML-based SSO with Remote EJB through Picketlink

Siddhartha De

you have a remote Enterprise JavaBeans (EJB) application where the EJB client is a service pack (SP) application in a Security Assertion Markup Language (SAML) architecture. You would like your remote EJB to be authenticated using same assertion which was used for SP.

Article Thumbnail
Article

Enabling Byteman Script with Red Hat JBoss Fuse and AMQ - Part1

Chandra Shekhar Pandey

In a production or customer environment it is not always possible to identify issues by looking at logs or setting up a remote debugging using IDE. Often the issues are specific to the environment and can't be reproduced. having byteman scripts can help in identifying issues without actual code changes.

Deploying to OpenShift e-book tile card
E-book

Deploying to OpenShift

Graham Dumpleton

Get an in-depth tour of OpenShift®, the container-based software deployment and management platform from Red Hat® that provides a secure multitenant environment for the enterprise. This practical guide describes in detail how OpenShift, building on Kubernetes, enables you to automate the way you create, ship, and run applications in a containerized environment.

Apache Camel logo
Article

Using Camel-Undertow component supporting http2 connection

Chandra Shekhar Pandey

This article would help to configure http2 protocol support for the camel-undertow component. Camel's undertow component use embedded undertow web-container of version undertow-core:jar:1.4.21. This version also supports the http2 connection. I have used camel version 2.21.0-SNAPSHOT from upstream https://github.com/apache/camel. Also, the curl version to test application using camel-undertow component is 7.53.1. This curl version supports --http2 flag for sending an http2 request. I have also used nghttp to test application from linux terminal. However, this article is not about http2...

Hexagonal Architecture
Article

Hexagonal Architecture as a Natural fit for Apache Camel

Bilgin Ibryam

There are architectures and patterns that look cool on paper, and there are ones that are good in practice. Implementing the hexagonal architecture with Camel is both: cool to talk about, and a natural implementation outcome. I love going hexagonal with Camel because it is one of these combinations where the architecture and the tool come together naturally, and many end up doing it without realizing it. Let’s see why that is the case. Why go Hexagonal? Hexagonal architecture is...

Article Thumbnail
Article

The State of Microservices Survey 2017 - Eight trends you need to know

Cesar Saavedra

During the fall of 2017, we conducted a microservices survey with our Red Hat Middleware and Red Hat OpenShift customers. Here are eight interesting trends discerned by the results: I. Microservices are being used to re-architect existing applications as much as for brand new projects There seems to be a strong emphasis in the market by technology vendors for positioning microservices as being only for new projects. However, our survey reveals that organizations are also using microservices to re-architect existing...

How to customize OpenShift RBAC permissions
Article

Dynamically Creating Java Keystores in OpenShift

Raffaele Spazzoli +1

Introduction With a simple annotation to a service, you can dynamically create certificates in OpenShift. Certificates created this way are in PEM (base64-encoded certificates) format and cannot be directly consumed by Java applications, which need certificates to be stored in Java KeyStores . In this post, we are going to show a simple approach to enable Java applications to benefit from certificates dynamically created by OpenShift. Why certificates Certificates are part of a PKI infrastructure and can be used to...

Configuring mKahaDB persistence storage for ActiveMQ
Article

Configuring mKahaDB persistence storage for ActiveMQ

Chandra Shekhar Pandey

In this post, I wanted to address how to configure mKahaDB persistence storage on ActiveMQ for better management and reducing disk usage. Default configured KahaDB persistence adapter works well when all the destinations (queues/topics) being managed by the broker have similar performance. However, an enterprise solution where several third parties are involved is never the case. There are multiple queues or topics and different consumers or listeners listening to these queues/topics. Some consumers might be slower than other consumers. This...

Red Hat JBoss logo
Article

JBoss Weekly 17 November 2017

Jason Porter

Welcome back to another edition of JBoss Weekly, bringing you news from across the net relating to JBoss Middleware. Those of you who attended Devoxx Belgium, we hope you had the opportunity to speak with our engineers there. Releases We’ll kick off the editorial with the releases made in Middleware this past week: Arquillian Cube 1.9.2 Shrinkwrap Resolver 3.0.0 Arquillian Drone 2.4.4 Arquillian Drone 2.4.5 Arquillian Smart Testing 0.0.4 Arquillian Core 1.1.4 As you can see, the Arquillian team has...

Configuring mKahaDB persistence storage for ActiveMQ
Article

How to deploy Java application with Docker

Amit Nijhawan

The docker containerized environment is a software platform, which provides an abstraction of operating-system-level virtualization. To know more you can read this article: https://docs.docker.com/engine/docker-overview/ You need an available container-based application. Check the documentation for the right procedure for installation for your OS: https://docs.docker.com/engine/getstarted/step_one. Here, I am going to create a java application and run it by using a container-based application. This example includes the following steps: Create a directory by using below command. $ mkdir java-docker-application 2. Create a java...

Devoxx logo
Article

Red Hat Sessions at Devoxx 2017

Gunnar Morling

The 2017 edition of the legendary Devoxx conference is over, and as always, it has been a fantastic week. Hosted in Antwerp, Belgium, and sold out months in advance, it's one of the top events of the Java community. Five days fully packed with workshops, regular conference sessions, BOFs, ignite sessions and even quickie talks during the lunch breaks - there was something for everyone. The super-comfortable cinema seats at the Devoxx venue are legendary, but also if you couldn't...

MicroProfile logo
Article

MicroProfile at EclipseCon Europe

Heiko Rupp

EclipseCon Europe happened in October 2017 in Ludwigsburg, Germany and featured a ton of Red Hat speakers. My personal focus for this Event was Eclipse MicroProfile and I gave a talk about "The monitoring aspects of Eclipse Microprofile". (Slides are available on SlideShare) In my talk, I basically presented what I have written about in those two blog posts: https://developers.redhat.com/blog/2017/10/17/monitoring-aspects-eclipse-microprofile-1-2/ https://developers.redhat.com/blog/2017/10/25/monitor-eclipse-microprofile-1-2-server-prometheus/ Other presentations around MicroProfile were: Resilient Java Microservices with Eclipse MicroProfile Open Java EE and Eclipse MicroProfile Eclipse MicroProfile...

Java logo
Article

Interfaces in Java

Abdul Azeez Idris

Interfaces in Java are usually a mechanism for allowing a number of classes to share a number of methods and constants. It is also one of the best mechanisms for achieving Polymorphism in Java. So if you are the type that is very familiar with Interfaces before the arrival of Java 8, it would make a great deal of sense to also discover some of the cool stuff Interfaces can now do in Java 8. Let’s dive in. Interfaces before...

Java logo
Article

Red Hat introduces JDK 9

Jeff Maury

Support for Java™ 9 Starting from Red Hat JBoss Developer Studio 11.1, Java™ 9 is now supported. Please note that Red Hat JBoss Developer Studio does not run on a Java™ 9 virtual machine but allows for managing and building of Java™ 9 projects and artifacts. So, you must first define in your workspace a Java™ 9 JDK if you want to manage and build Java™ 9 projects. Java™ 9 is here, and JDT fully supports it: The Eclipse compiler...

Eclipse logo
Article

Red Hat introduces JUnit5

Jeff Maury

Support for JUnit 5 Starting from Red Hat JBoss Developer Studio 11.1, JUnit 5 is now supported. JUnit 5 support is now available in Eclipse. Create a new JUnit Jupiter test via *New JUnit Test Case wizard: Add JUnit 5 library to the build path. New JUnit Test Case wizard offers to add it while creating a new JUnit Jupiter test. Quick Fix (Ctrl+1) proposal on @Test, @TestFactory, @ParameterizedTest, and @RepeatedTest annotations. Add JUnit library in Java Build Path dialog...

Java Web Application image
Article

5 Pillars of a Successful Java Web Application (Part 3/3)

Eder Ignatowicz

In part 3 of this series of posts, we’ll detail our talk presented at Java One San Francisco 2017: "5 Pillars of a Successful Java Web Application”, where we shared our cumulative experience over the years building the workbench and the web tooling for the Drools and jBPM platform.

Red Hat JBoss Developer Studio Logo
Article

Announcing Red Hat Developer Studio 11.1.0.GA and JBoss Tools 4.5.1.Final for Eclipse Oxygen.1A

Jeff Maury

JBoss Tools 4.5.1 and Red Hat JBoss Developer Studio 11.1 for Eclipse Oxygen.1A 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 JBoss Products page 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.1A Oxygen JEE Bundle since...

Java Web Application image
Article

5 Pillars of a Successful Java Web Application (Part 2/3)

Eder Ignatowicz

In part 2 of this series of posts, we’ll detail our talk presented at Java One San Francisco 2017: "5 Pillars of a Successful Java Web Application”, where we shared our cumulative experience over the years building the workbench and the web tooling for the Drools and jBPM platform.

Java Web Application image
Article

5 Pillars of a Successful Java Web Application (Part 1/3)

Eder Ignatowicz

There are many challenges related to building and architecting a web application, especially if you want to keep your codebase updated with modern techniques without throwing away a lot of your code every two years in favor of the latest trendy JS framework. In our team, we can successfully keep a 7+ year-old Java application up-to-date, combining modern techniques with a legacy codebase of more than 1 million LOC, with an agile, sustainable, and evolutionary web approach. More than just...