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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:20:04+00:00 2026-06-14T20:20:04+00:00

This is not about two JVM’s communicating with each other, this is about joining

  • 0

This is not about two JVM’s communicating with each other, this is about “joining” an existing running JVM, preventing the creation of an additional process.

We are deploying a control system that has a data collection component, a GUI operator interface, and a data logging component (in java).

Both the data logging component and the GUI make use of the data collection component. Normally there would be no issue, they both live in the same VM and can get updates through events or observer pattern. The problem is that the data logger must be run when the machine boots (linux) but the GUI only runs when the user logs in. If two instances of the data collection component are created (ie in two JVM’s) it causes issues with our comms monitoring which are beyond the scope of this question, but let’s just say there is a requirement that only one instance of the data collection component can be run.

Is there any way that one can instantiate a class in an existing, running VM? Would this class object be able to interact with live objects in the VM? What i would like to do is run the data logger as a daemon, creating one JVM, and then when the user logs on to the os, instantiate the GUI class in the running VM.

  • 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-14T20:20:05+00:00Added an answer on June 14, 2026 at 8:20 pm

    Is there any way that one can instantiate a class in an existing, running VM?

    RMI, JMS, JMX, Sockets, Datagrams.

    Would this class object be able to interact with live objects in the VM?

    Yes.

    What i would like to do is run the data logger as a daemon, creating one JVM, and then when the user logs on to the os, instantiate the GUI class in the running VM.

    The OS may prevent you from doing that unless the process is running as the user logged in. i.e. one user cannot display a GUI on the screen used by another user. If the OS allows you, there isn’t a problem.

    Of course, you would normally run two JVMs, with one talking to the other (solving any security issues) as there is little advantage in having only one JVM.

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

Sidebar

Related Questions

So I've been stuck on this do-while loop not working for about two hours.
Note: this is NOT about concurrency. This is about the thread macro. I know
Ok, firstly this is not about forms this is about consistent layout as a
This question is not about caching. I need this in-memory table for many small
This question is not about which is the best, it is about which makes
This question is not about 'best' barcode library recommendation, we use various products on
(note that this question is not about CAS, it's about the May fail spuriously
Note: I understand this is not strictly about development, but in the earlier threads
This is not a question about a specific framework. I am using plain php
This is not a question about jQuery, but about how jQuery implements such a

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.