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

  • SEARCH
  • Home
  • 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 5978477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:31:17+00:00 2026-05-22T21:31:17+00:00

I am using the JMX-RMI agent for message passing. I have a java program

  • 0

I am using the JMX-RMI agent for message passing. I have a java program which sends a message having a name/id to a set of listener/listeners.Based on the message received by the listeners the client side programs behave accordingly.This piece works fine but I would like to know what kind of fault tolerance is built in into the JMX RMI agent.

If the listener stops accidentally, does JMX restart it or logs the error somewhere,what if the message queue on either side is full. Any documentation which explains the underlying architecture of JMX RMI or the in built fault tolerance mechanism will be appreciated. If it doesn’t have any fault tolerance mechanisms, what would be a good way of doing it.

Thanks Much

  • 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-05-22T21:31:18+00:00Added an answer on May 22, 2026 at 9:31 pm

    I am assuming your client side listeners are using the standard javax.management.remote connectors. Without some customization, I would say you can implement some straightforward Fault Detection. For Fault Tolerance you’re probably looking at some sort of clustering solution.

    There are two layers of connectivity you need to be concerned about:

    1. The MBeanServerConnection itself. In other words, if the whole server side JVM terminates, your client side processes need to know.
    2. While the server JVM and the subsidiary MBeanServerConnection may continue to be available, the “hosted”, the listener/client message forwarder service itself may stop/fail/stall.

    For #1, the client processes can register a NotificationListener with the JMXConnector using the addConnectionNotificationListener method. Your local connection will then emit JMXConnectionNotifications on all the following events:

    • A new client connection has been opened.
    • A client connection has been closed.
    • A client connection has failed unexpectedly.
    • A client connection has potentially lost notifications. This notification only appears on the client side.

    This way, your clients will know when a connection to the server has been established and lost.

    For #2, it’s a bit more specific to your application, but perhaps you can adapt a simple pattern like this:

    When your listener/forwarder service starts, emit a start-notification. When it stops,emit a stopped-notification. The two categories of listeners that would register for these notifications would be:

    1. The clients, so they know the service has started/stopped.
    2. A server side “watcher” that can listen for a “stop” and restart the service.

    Is that more-or-less what you were thinking of ?

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

Sidebar

Related Questions

I have a few JAVA application that I monitor using JMX. I would like
I should connect to a java program on localhost jvm using JMX. In other
I have a server application that has been instrumented using JMX so that it
I am trying to connect to the Cameron FIX engine using JMX I have
I am currently using JMX to manage and monitor a huge migration process which
I have a datasource, how to check if its ok? maybe somehow using jmx-console?
On an IBM iSeries system, I have a Java program running - an application
I have a small test app for exposing a Bean to JMX using Spring.
We've added performance measures to our application and are exposing them using JMX. Now
Using online interfaces to a version control system is a nice way to have

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.