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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:12:07+00:00 2026-06-18T11:12:07+00:00

I have 2 general questions here: Firstly, say I have 2 java programs running.

  • 0

I have 2 general questions here:

Firstly, say I have 2 java programs running. Almost like a responder and an executor.

The executor can issues commands, requests and the such from the responder. I know it is possible to have them both packed as one program through multi-threading, but necessarily there might not be just 1 responder, there could be 3, maybe even 0 responders.

What is the best way for the 2 programs to ‘communicate’ such as a stream, implying I have no access to the other adapters?

The second question:

Is there a way to check to see if a Java program is open already? So if I run a program, I can’t run it a second time if the first is still running.

Thanks

  • 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-18T11:12:08+00:00Added an answer on June 18, 2026 at 11:12 am
    1. You must explicitly code a socket-based solution. Today I guess REST would be the most obvious choice. A more heavyweight solution would be something JMS-based (involving a standalone message queue, also socked-based).

    2. Yes, there is a way, but nothing out of the box. It usually involves creating temporary files that are checked for existence. There are some handy methods provided, like createTemporaryFile and deleteOnExit that take care of the low-level work.

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

Sidebar

Related Questions

I have found several other questions here on S.O. (and the web in general)
My first questions here. I have a string of digits like 55111233 as you
My first questions here. I have a string of digits like 55111233 as you
I have two related questions one general and one specific to the project I'm
i have a general question : i'd like to develop a facebook application using
I have a general question. I would like to have a window containing some
I have some questions about focus in general (adhering to WC3 format, screw IE).
I have a general question regarding UITableViews. here is my situation. I have a
I see that there have been similar questions asked here regarding wrapping unmanaged C++
I have some questions regarding handling exceptions in Java. I read a bit about

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.