JBoss EAP 8.0 Application Deployment Issues with HTTP Session Externalization to RHDG

Solution Unverified - Updated -

Issue

  • This KCS article aims to address application deployment issues that occur when externalizing HTTP sessions using Red Hat JBoss Enterprise Application Platform (EAP) and Red Hat Data Grid (RHDG). It specifically focuses on challenges in application deployment when the RHDG cluster is partially down.
  • When the RHDG cluster is partially stopped (e.g., only one of multiple instances is running) and using the HotRod store, deployment may roll back. Even if multiple connection destinations are configured in the socket-bindings attribute of remote-cluster, an error occurs without attempting to connect to the next server upon connection failure.

Environment

  • Red Hat JBoss Enterprise Application Platform (JBoss EAP) 8.0, 8.1
  • Red Hat Data Grid (RHDG) 8.x
  • Configuration: HTTP Session externalization to RHDG

Example Configuration:

standalone-ha.xml

<cache-container name="web" default-cache="rhdg" marshaller="PROTOSTREAM" modules="org.wildfly.clustering.web.infinispan">
  <invalidation-cache name="rhdg">
    <locking isolation="REPEATABLE_READ"/>
    <transaction mode="BATCH"/>
    <hotrod-store remote-cache-container="web-sessions" passivation="false" purge="false" shared="true" fetch-state="false"/>
  </invalidation-cache>
</cache-container>

<remote-cache-container name="web-sessions" default-remote-cluster="data-grid-cluster" marshaller="PROTOSTREAM" statistics-enabled="true">
  <remote-clusters>
    <remote-cluster name="data-grid-cluster" socket-bindings="remote-rhdg1 remote-rhdg2"/>
  </remote-clusters>
</remote-cache-container>

<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
  <outbound-socket-binding name="remote-rhdg1">
    <remote-destination host="localhost" port="11222"/>
  </outbound-socket-binding>
  <outbound-socket-binding name="remote-rhdg2">
    <remote-destination host="localhost" port="11322"/>
  </outbound-socket-binding>
</socket-binding-group>

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content