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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:48:57+00:00 2026-05-26T03:48:57+00:00

I created a command line interface on a small java application I created for

  • 0

I created a command line interface on a small java application I created for personal use.
For the moment the cli is resided in the same project as the original application but I’m planning to extract it into it’s own project, effectively building 2 separate executable jars enabling me to start the cli as needed and query the other running program for information.

I’m trying to figure out the easiest and most lightweight solution to call a remote service, on the same machine.
I looked at spring remoting but many of the provided solutions such as HttpInvoker, Hessian/Burlap, JAX RPC web services are based on HTTP or SOAP and therefore not suited for the job.
JMS also seems like overkill.

This leaves me with RMI, which looks rather heavyweight, and possibly JMX?
Suggestions?

  • 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-26T03:48:58+00:00Added an answer on May 26, 2026 at 3:48 am

    JMX would use RMI underneath for remote access. JMX is meant for exposing admin apis (monitoring / management) – not intended as a general purpose remoting api.

    RMI with the spring remoting support is fairly lightweight from a development point of view. Even runtime it is the option that adds least overhead compared to the other options you have listed.

    Also with spring remoting support you can easily switch over to a different option if required later.

    Take a look at this artcile, that compares / benchmarks performance of the above options.

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

Sidebar

Related Questions

I have implemented a small command line interface using JewelCLI and it creates an
I created a command line tool. I have my project almost done, but now
I have an application in web2py. To create the command line interface of the
TL;DR Summary: I need a single command-line application which I can use to get
I'm writing a command-line interface to my project. The user enters create project foo,
I've created an sqlite3 database from the command line and inserted several records. My
In the bash command line, I set a variable myPath=/home/user/dir . I created a
What command line util can i use to create a thumbnail preview of a
I am trying to create a WPF application that takes command line arguments. If
I am making a command line interface in Python 3.1.1 using the cmd module.

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.