Client blocking forever in its call to ConnectionFactory.createConnection() when Fabric discovery is used and broker is not running.

Solution Verified - Updated -

Issue

An JMS client that connects to the broker using Fabric discovery url "discovery:(fabric:default)" blocks forever on its call to
ConnectionFactory.createConnection() if the broker is not running and hence not registered in the Fabric Registry.

How can the client be configured to throw an exception instead?

Environment

  • Fuse MQ Enterprise 7.x
  • JBoss A-MQ 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.