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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T01:49:14+00:00 2026-05-11T01:49:14+00:00

Currently, I only know a way of doing RPC for POJOs in Java, and

  • 0

Currently, I only know a way of doing RPC for POJOs in Java, and is with the very complex EJB/JBoss solution.

Is there any better way of providing a similar functionality with a thiner layer (within or without a Java EE container), using RMI or something that can serialize and send full blown objects over the wire?

I’m not currently interested in HTTP/JSON serialization BTW.

EDIT: For clarification: I’m trying to replace an old EJB 2.1/JBoss 4 solution with something more easy to manage at the container level. I need to have entire control over the database(planning to use iBATIS which would allow me to use fairly complex SQL very easily), but the only things I want to keep over the wire are:

  • Invocation of lookup/data modification methods (automagic serialization goes here).
  • Transparent session control (authentication/authorization). I still have to see how to accomplish this.

Both items have to work as a whole, of course. No access should be granted to users without credentials.

Because I’m not very fond of writing webapps, I plan to build a GUI (Swing or SWT) that would only manage POJOs, do some reporting and invoke methods from the container. I want the serialization to be as easy as possible.

  • 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-11T01:49:15+00:00Added an answer on May 11, 2026 at 1:49 am

    As is nearly always the case, Spring comes to the rescue. From the reference documentation, you will want to read Chapter 17. Remoting and web services using Spring.

    There are several methods to choose from. The beauty of Spring is that all your interfaces and implementations are vanilla POJOs. The wiring into RMI or whatever is handled by Spring. You can:

    1. Export services using RMI: probably the simplest approach;
    2. Use HTTP invoker: if remote access is an issue, this might be better for firewalls, etc than pure RMI; or
    3. Use Web Services, in which case I would favour JAX-WS over JAX-RPC.

    Spring has the additional benefit in that it can do the wiring for both the server and the client, easily and transparently.

    Personally I would choose either (2) or (3). HTTP is network friendly. It’s easy to deploy in a Web container. Jetty‘s long-lived connections give you the option over server push (effectively) over HTTP.

    All of these methods allow complex objects to be sent across the wire but they are subtly different in this regard. You need to consider if your server and client are going to be distributed separately and whether it’s an issue if you change the interface that you need to redistribute the class files. Or you can use a customized serialization solution (even XML) to avoid this. But that has issues as well.

    Using a Web container will allow you to easily plug-in Spring Security, which can be a bit daunting at first just because there are so many options. Also, HttpSession can be used to provide state information between requests.

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

Sidebar

Related Questions

Currently I know of only two ways to cache data (I use PHP but
As I am currently doing this project in only C, I've up untill this
We currently have code like this: Dim xDoc = XDocument.Load(myXMLFilePath) The only way we
Is there a way to get an ASP.NET textbox to accept only currency values,
I have a project that I'm currently working on but it currently only supports
I have an Open Source app and I currently only post the binary for
Currently I have a custom tool which generates vanilla-SQL (only using standard SQL), from
I am currently putting together a rails-based web application which will only serve and
I'm developing non-interactive cpu-bound application which does only computations, almost no IO. Currently it
I want to have generalised email templates. Currently I have multiple email templates with

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.