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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T22:30:16+00:00 2026-05-10T22:30:16+00:00

I have a really simple Java class that effectively decorates a Map with input

  • 0

I have a really simple Java class that effectively decorates a Map with input validation, with the obvious void set() and String get() methods.

I’d like to be able to effectively call those methods and handle return values and exceptions from outside the JVM, but still on the same machine Update: the caller I have in mind is not another JVM; thanks @Dave Ray

My implementation considerations are typical

  • performance
  • ease of implementation and maintenance (simplicity?)
  • reliability
  • flexibility (i.e. can I call from a remote machine, etc.)

Is there a ‘right way?’ If not, what are my options, and what are the pro/cons for each?

(Stuff people have actually done and can provide real-life feedback on would be great!)

  • 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. 2026-05-10T22:30:16+00:00Added an answer on May 10, 2026 at 10:30 pm

    Ok. Here’s another try now that I know the client is not Java. Since you want out-of-process access and possibly remote machine access, I don’t think JNI is what you want since that’s strictly in-process (and a total hassle). Here are some other options:

    Raw Sockets : just set up a listener socket in Java and accept connections. When you get a connection read the request and send back a response. Almost every language can use sockets so this is a pretty universal solution. However, you’ll have to define your own marshalling scheme, parsing, etc.

    XML-RPC : this isn’t as hip these days, but it’s simple and effective. There are Java libraries as well as libraries in most other languages.

    CORBA : as mentioned above, CORBA is an option, but it’s pretty complicated and experts are getting harder to come by.

    Web Server : set up an embedded web server in your app and handle reqests. I’ve heard good things about Jetty or you can use the one provided with Java. I’ve used the latter successfully to server KML files to Google Earth from a simulation written in Java. Most other languages have libraries for making HTTP requests. How you encode the data (XML, text, etc) is up to you.

    Web Services : This would be more complicated I think, but you could use JAX-WS to expose you objects as web services. NetBeans has pretty nice tools for building Web Services, but this may be overkill.

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

Sidebar

Ask A Question

Stats

  • Questions 78k
  • Answers 78k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer You can use the RowDataBound event for this. Using this… May 11, 2026 at 3:46 pm
  • added an answer SELECT COALESCE ( ( SELECT newValue FROM history WHERE field… May 11, 2026 at 3:46 pm
  • added an answer If you dont specify minOccurs and maxOccurs with the sequence,… May 11, 2026 at 3:46 pm

Related Questions

I am looking in the Collections framework of Java for a LIFO Structure (Stack)
I am getting the following error when I get to the line that invokes
I am trying to learn how Hibernate works, and I am running into an
I have a deceptively simple scenario, and I want a simple solution, but it's

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.