Using JBoss Transaction Manager in a Spring application

In this tutorial we will learn how to use JBoss Transaction Manager on the top of Spring’s transaction management abstractions. The Spring framework allows pluggable transaction managers. However, iIf you need XA support for your Spring applications, then you need to plug in a transaction manager such as JBossTS. Let’s see how to configure JBoss … Read more

How to use ScrollableResults with Hibernate

Supposing you have to fetch a large resultset and update the single objects. By using the standard Query Object you would retrieve the whole set of Objects in Memory: Query q = session.createQuery(“from ABC”); List l = q.list(); On the other hand, if you need to operate on an online cursor, then you can use … Read more

Getting started with WildFly

Let’s get started with WildFly! WildFly is a Java middleware product also known as application server. The word “application server” has been coined in relation to Java Enterprise application; you can think of it as it’s a piece of Java software where your application can be provisioned using the services provided by the application server. … Read more

One to One Hibernate/JPA Example

In this tutorial we will demonstrate how to set up Hibernate One-to-One Mapping between two Database tables. We will show how to create and deploy four applications using different approaches to set up the Object relationship.

Read more

Sharing HTTP Session between Web applications in an EAR

One of the new features of WildFly 9 is the ability to share the HTTP Session between applications which are part of the same Enterprise Archive. (This feature is described in https://issues.jboss.org/browse/WFLY-1891 ) Undertow allows you to share sessions between wars in an ear, if it is explicitly configured to do so. Note that if you use this feature … Read more

Comparing OpenShift with Kubernetes

This article provides a comparison between OpenShift and Kubernetes container management project covering both management and development areas. First of all, some definitions. Red Hat OpenShift is an Enterprise Open Source Container Orchestration platform. It’s a software product that includes components of the Kubernetes container management project but adds productivity and security features which are … Read more

How to install WildFly on Linux

This tutorial will teach you how to install the latest release of WildFly application server on a Linux box. The pre-requisite to install WildFly is that you have available a JDK on your machine.  Installing Java The most heavily tested SE options for WildFly are still Java 11 and Java 8, because both WildFly and … Read more

Tomcat to WildFly migration guidelines

Tomcat to WildFly / JBoss EAP migration is a typical scenario when you Web application requires some additional services (like JMS or transactions) which are available when using an application server. In this tutorial we will show some of the common pitfalls you can encounter when upgrading from Tomcat to WildFly / JBoss EAP There … Read more

How to deploy a Web application on the Root Context on WildFly?

WildFly users To deploy an application on the ROOT Web context, firstly you have to remove the default Welcome application from undertow’s server: /subsystem=undertow/server=default-server/host=default-host/location=\/:remove { “outcome” => “success”, “response-headers” => { “operation-requires-reload” => true, “process-state” => “reload-required” } } Reload the server: reload Next, if you can either set the ROOT Web context in your … Read more