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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:27:02+00:00 2026-06-17T13:27:02+00:00

For a new project i’m searching for technologies that will make my life a

  • 0

For a new project i’m searching for technologies that will make my life a bit easier. My new project is basically 2 clients and a server:
client1 sends a message1 to server, server sends message1 to client2, client2 does something with message1.

This can be done with plain java sockets or rmi or similar technique. But here is the catch:
The entire process need to be a transaction. What i mean with this is that when client2 can’t handle message1 client1 and server need to know this and rollback any actions that were done.

My first idea was to send a message from client2 to client1 and server with the result, but thinking more about it this would become error sensitive.

I already took a look at technologies like jms, jta, jca, but was a bit overwhelmed by everything. And i suspect there might be a easier way.

  • 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-17T13:27:03+00:00Added an answer on June 17, 2026 at 1:27 pm

    I’m not sure that JTA or JMS alone would solve your problem, since even distributed transactions is still between transactional resources, such as a JMS broker and a database, not between applications.

    I would still go for a transactional transport in your case, such as JMS. That would give you “guaranteed delivery”, which perhaps would simplify the error handling.

    1    c1 -> jms -> server -> jms -> c2   2
    
    4    c1 <- jms <- server <- jms <- c2   3
    

    If you do this right, you can be sure that c1 (and the server) eventually WILL receive a “result” from c2, good or bad.

    If C2 crashes during processing and fails to send back a result jms message, the transaction will roll back, locally at c2, and c2 has to try again.

    The down side of this solution is that messages might get “stuck”, for instance if it cannot be processed at all by c2, however, it will never be lost. If you route a synchronous request (soap, RMI, simple tcp..), you can face a situation where the reply is lost and C1 will never know if C2 processed the message or not. This can to some point be avoided by making C2 idempotent and make C1 able to retry the transaction if there is no reply after some time.

    As I see it, there is no “golden solution”, but any option would do it pretty good. Good luck

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

Sidebar

Related Questions

I'm starting a new project that will mainly involve the following: uploading a large
I will start new project which is based on ASP.NET MVC 3 using C#
I just kickstarted a new project with Initializr. First I realized that the options
Soon after starting a new project I realized, that I'm not getting the correct
I am starting a new project using SQL Server for a medical office. Their
Every new project that the client registers the system creates a folder to store
I created a new project and working with eclipse (used eclipsify command). basically, I
A new project we began introduced a lot of new technologies we weren't so
My new project is to renew Software that a customer had used for years.
I have a new project that I am trying to get up and running

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.