Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9151505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:49:08+00:00 2026-06-17T11:49:08+00:00

Using Java how do i configure ActiveMQ to load balance and reconnect when disconnection

  • 0

Using Java how do i configure ActiveMQ to load balance and reconnect when disconnection occur?

As i understand those configuration should be made on the ActiveMQConnectionFactory object.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:49:10+00:00Added an answer on June 17, 2026 at 11:49 am

    To do that, you set the brokerUrl of the ActiveMQConnectionFactory to a failover transport URI;

    failover:(tcp://primary:61616,tcp://secondary:61616)
    

    If you only have one broker, the below should be enough, ok for testing of reconnects but for production you’ll most likely want more than one;

    failover:(tcp://primary:61616)
    

    Unlimited reconnection attempts is the default, but you can tweak quite a few options if you look at the documentation linked above.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

They recommend using JTA transaction support in Java EE environment. But how to configure
Using Linux environment with java,I'm having the config file which should be configured before
Using Java sockets, I made a simple server. This works because it sends data
I made a networked game in Java using Sockets. It works great, except... only
I would like to configure a DataSource using JNDI in a Java SE app.
I use Spring to configure my Java Web App and in my Spring configuration
When I instantiate Hibernate using the following code: Configuration configuration = new Configuration(); configuration.configure();
I've made an app init function that I'm using both in Java and GWT
Application configuration: Web application using java first method of creating JAX-WS 2.0 Web Services
I made a java application using the hibernate framework, with the xml files of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.