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 445343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T21:21:39+00:00 2026-05-12T21:21:39+00:00

Is there a reliable, cross-platform way to do IPC (between two JVMs running on

  • 0

Is there a reliable, cross-platform way to do IPC (between two JVMs running on the same host) in Java (J2SE) that doesn’t rely on the network stack?

To be more specific, I have a server application that I’d like to provide a small “monitoring” GUI app for. The monitor app would simply talk to the server process and display simple status information. The server app has a web interface for most of its interaction, but sometimes things go wrong (port conflict, user forgot password) that require a local control app.

In the past I’ve done this by having the server listen on 127.0.01 on a specific port and the client communicates that way. However, this isn’t as reliable as I’d like. Certain things can make this not work (Windows’s network stack can be bizarre with VPN adapters, MediaSense, laptops lid closing/power saving modes). You can imagine the user’s confusion when the tool they use to diagnose the server doesn’t even think the server is running.

Named Pipes seem plausible, but Java doesn’t seem to have an API for them unless I’m mistaken. Ideas? Third party libraries that support this? My performance requirements are obviously extremely lax in case that helps.

  • 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-12T21:21:40+00:00Added an answer on May 12, 2026 at 9:21 pm

    One of my specialties is really low-tech solutions. Especially if your performance requirements aren’t critical:

    The low-low tech alternative to named pipes is named FILES. Think yourself up a protocol where one app writes a file and another reads it. If need be, you can do semaphoring between them.

    Remember that a rename is pretty much an atomic operation, so you could calmly write a file in some process and then make it magically appear in its entirety by renaming/moving it from somewhere that wasn’t previously visible.

    You can poll for data by checking for appearance of a file (in a loop with a SLEEP in it), and you can signal completion by deleting the file.

    An added benefit is that you can debug your app using the DIR command 🙂

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

Sidebar

Related Questions

From PHP, is there a cross-platform, cross-web server way of determining if PATH_INFO is
Is there a reliable way of getting access token errors from the facebook platform?
Is there a reliable way to JSON.stringify a JavaScript object that guarantees that the
If there's some cross-platform C/C++ code that should be compiled on Mac OS X,
Within a facebook app, is there a reliable way ensure, that a given action
Is there a reliable way of detecting what version of Java is installed on
Is there a reliable way to determine where a user is coming from in
Is there a reliable way to access the client machine's clipboard using Javascript? I
Is there a reliable way to know what executable has called my executable? I
Is there any reliable way to convert CVSNT to SVN?

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.