Use InitialContext to connect to a HornetQ cluster

Solution Unverified - Updated -

Issue

  • I'm working on supporting HornetQ failover. I have the failover working correctly, but I can't create a new connection when the primary server is down. I don't want to specify a list of provider urls.

  • In the HornetQ documentation1, it says we can specify the discovery groupAddress/groupPort directly. But I've been using an InitialContext object to lookup my ConnectionFactory. Which properties need to be set to specify the groupAddress and groupPort? Is there a list of all the values I can use with an InitialContext?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.2.0

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.