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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:47:39+00:00 2026-05-23T04:47:39+00:00

I am in the process of implementing a protocol based on an RFC written

  • 0

I am in the process of implementing a protocol based on an RFC written in my lab. I intend to use Java to run the simulations. I don’t think I can use object serialization to pass around messages because I want the messages to be interoperable with other systems implemented in other languages, which I think is not possible using serialization.

What feature can I use in Java to be able to talk to nodes implemented in a different language?

Also, there are about 50 different types of messages that can be sent and received each having a different structure.
Ex: hello, bye, register etc.

Each message contains some information that is needed to be processed. I plan to implement each message type as a class in Java.

What is the cleanest way possible to figure out at the receiving node’s end what type of message was sent by the sending node?

Ex: How would I as a receiver know that a node who sent me a message just now wants to register with me?

I’ll be grateful if I could get suggestions on some good design patterns.

  • 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-23T04:47:39+00:00Added an answer on May 23, 2026 at 4:47 am

    As you noted, serializing Java objects is a convenient means of communicating between two Java processes, but does not work for non-Java processes. For that type of communication, I would recommend using either XML or JSON. Both of these are essentially plain text formats that conform to a specification. There are libraries available in most languages for converting native types to/from XML or JSON.

    As for the second part of your question, both the sending and receiving systems have to agree on a common message format / specification. For example, the following xml could represent the intent to register to both the sender and receiver:

    <Command>REGISTER</Command>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm implementing a process elevation helper for Windows. It's a program that will run
I am implementing a small queue to handle which process gets to run first.
I'm in the process of implementing a service -- written in Python with the
I am in the process of implementing a Java library in Ruby. I have
Am in the process of implementing a fairly conventional shopping checkout flow. Currently it
I am in the process of implementing jQuery, and taking out Prototype libraries in
I'm currently in the process of implementing a number of different assignment algorithms for
I'm having some problems implementing an algorithm to read a foreign process' memory. Here
What is the reliable way of implementing bidirectional communication to a Linux process? I
I'm in the process of implementing in-app billing and I'm using the Dungeons app

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.