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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:45:08+00:00 2026-06-13T16:45:08+00:00

This is not a question as such, but more like a list of things

  • 0

This is not a question as such, but more like a list of things I would like to know about how to make a Ruby program work with a Java program.

Here’s the thing: We have two teams. One works on Java and implements their code and module in Java. We do the same in Ruby. We are supposed to have a set of common interfaces and use some code of theirs in our Ruby program and they are to use some of our Ruby code in their Java program.

What are some of the things to keep in mind while connecting these two modules to give one common module? I guess this would be more like a guide or a set of guidelines than a straight answer. So please, have some patience and not report or close this question. Thank you!

Update:

Yes, we are to use RESTful services. I do not want any sort of coding help. All I want is your contribution which you might have from your experience with coding modules in two different languages and interconnecting them with a common interface.

That’s pretty much all I would like to know. While this is indeed a class project of mine, I thought it would be better if there were guidelines somewhere so it could help other people as well.

  • 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-13T16:45:09+00:00Added an answer on June 13, 2026 at 4:45 pm

    In the situation you describe, I would be inclined to use JRuby so your Ruby code can interoperate directly with Java. You could also make the Ruby/Java parts of your system talk over a socket using JSON or something, but there is a performance cost and a complexity cost to doing that. (Whether the performance hit really makes a difference depends on how “fine-grained” the interface between the Ruby/Java parts are — how many Ruby-to-Java or Java-to-Ruby calls are required to process a single request.)

    In JRuby, you can load JAR files and use the (Java) classes defined in them as if they are Ruby classes. You can also go the other way — you can use JRuby like a “library” from within a Java application to evaluate Ruby code.

    You should probably either 1) write the “main” application in Java, and write the Ruby parts as “libraries” which the main application calls into, or 2) write the main application in Ruby, and write the Java parts as libraries. If you have circular dependencies from Java code into Ruby and back from Ruby into Java, it will make your codebase difficult to understand.

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

Sidebar

Related Questions

This is not a question about jQuery, but about how jQuery implements such a
This is not a question, more like sharing with others a problem I encountered
I hate to ask such a general question, and this is not a write
This not a programming question but Most of the programmers using Eclipse should have
This is not a question about a specific framework. I am using plain php
(Note: This is not a question about what is the best way with code
Disclaimer: this is not a question about how to install asp.net or an application
Please note this is not a question about online/hosted SVN services. I am working
I really hope this is not a question posed by millions of newbies, but
Not sure whether this is the right place, but I have a question related

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.