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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T23:40:18+00:00 2026-05-28T23:40:18+00:00

To improve console application I have made I though adding some new functions to

  • 0

To improve console application I have made I though adding some new functions to track for example the status of threads (these threads are responsible for monitoring data from different sources). So what I was thinking to do is create some kind of mechanism which would allow me to query the status of my application. The following methods are the methods I thought to implement:
1) Simple thread listening for user input and checking some variables or calling some functions on monitoring threads. Quite simple to implement, but has one problem at least I don’t see the way to overpass it: application can run for monthes and if I want to access the machine where it is running using SSH it will be not possible to use my “console”
2) Create some RMI or some socket interface which could be connected by another simple program, sending commands and recieving responses. Seems to me the most suitable method, more hard to implement but can be quite powerfull.
3) The last and the simplest sulution, which is not console, but could serve my needs is writing data to some file and after reading the file. I don’t cosider implementing this because it’s not interactive at all.

The question is: is there any better method to implementing console for some java application besides the presented ones?

Thanks a lot,
Serhiy.

  • 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-28T23:40:18+00:00Added an answer on May 28, 2026 at 11:40 pm

    The best solution is something similar to your ideas about RMI. You could use a different technology if you like, but the idea of allowing the application to accept new monitoring connections is critical.

    File base solutions (like you outline in #3) fall victim to loss of the file, lack of disk space, etc). Solutions like you mention in #1 fall victim to not properly handling the access from a different user space.

    With RMI (or similar, like CORBA, SOAP, Web Service, etc.) you get proper networking which allows people to communicate when on different machines (or just in different process spaces). That’s a lot of value (and a bit of code), but it is far less headache than a the job half-done.

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

Sidebar

Related Questions

I am trying to improve the performance of a web application. I have metrics
I could use some suggestions / ideas. I wrote a console application that queries
I have a console application that is server based. I only want 1 instance
I have a threaded console application that is working fine, but it's architecture needs
I'm running a C# Console Application that is multi-threaded. The core process retrieves some
In order to improve my open source project, I need testers. I have created
I was asked to improve and maintain an internal Web application used and approved
I'm trying to improve this plugin adding events handlers to toggle play/stop when you
I have a WPF application which shows items in a DataGrid (XCeed DataGrid). The
I have a .net/ c# console app with a DataTable that I populated from

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.