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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:36:07+00:00 2026-06-17T09:36:07+00:00

Why do people use RMI, or when should I use RMI? I read those

  • 0

Why do people use RMI, or when should I use RMI? I read those tutorials about RMI on oracle’s website. But it doesn’t provide enough practical examples.

To my understanding, software should have its modules as "unrelated and separated" as possible. RMI somehow seems to be an example of high coupling to me. Why is this not a bad coding practice? I thought the client should only fire instructions, whereas all the actually manipulations of the object were done by the server.

  • 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-17T09:36:08+00:00Added an answer on June 17, 2026 at 9:36 am

    You really should not be using RMI for any application you build today, basically for the reasons you just laid out.

    In some cases (diving into legacy or “enterprise” applications) you just have no choice.

    However, if you are starting a new project, other options are:

    REST + JSON over HTTP

    The de-facto standard for communicating to remote services. The biggest advantage it has it that it is lightweight and easy to grasp the concept.

    In theory it should require more work than RMI because you have to manually craft the available URL’s, accepted verbs in each URL etc. In practice, I would say that RMI’s boilerplate does not really help anybody.

    Sticking with java, Jersey is a brilliant library to write your own RESTful web services.

    If you want a batteries included solution for RESTful web services with java, Dropwizard by the nice guys at Yammer gives you a full server and framework ready to just plug in your business logic, and provides logging, database connectivity, serialization, request routing, and even metrics gathering out of the box.

    SOAP

    The previous standard for communicating to remote services. Unless you have a reason to use it, I would stick to REST.

    Thrift

    Thrift will create a client and a server stub, basically doing much of the work. The communication is in an efficient binary protocol. It’s gaining popularity in the Java world as it is used by many open source projects in the “Big Data” field. Examples, Cassandra, HBase (switching to Avro). Scrooge is a twitter project to create idiomatic thrift stubs for scala.

    Akka actors

    Akka is framework that implements the Actor model for Scala and Java. Includes provisions for inter-service communication, and takes care of many of the details under the hood. I


    Depending on your needs, some will be more suitable than others.

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

Sidebar

Related Questions

I've seen people use many-to-one mappings to represent one-to-one relationships. I've also read this
I know some people use ANT to accomplish this, but I don't want to
I've seen some people use the maven-sql-plugin to do this. But it seems like
I have seen people use GO statement between batches of SQL code, but AFAICS
This should be simple: I see everywhere people use IntPtr , is there any
The SOAP call below works fine using my credentials but when other people use
I notice that in online tutorials people use specific dp values for width and
We have a basic service that some people use but most people want their
when studying RMI sometimes (head first Java) dudes use Naming.rebind(name, object) but other peoples
I see people use window.onload all the time, but why? Isn't the window part

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.