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, 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