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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:28:17+00:00 2026-05-26T01:28:17+00:00

I am working on a system with one master and multiple clients that communicate

  • 0

I am working on a system with one master and multiple clients that communicate using JMS.

The server is a three tier application written in Java. In the server’s data access layer, I am sending out JMS messages with tasks on one queue and I am receiving task status messages from the clients on another JMS queue. From those status messages I basically only extract Strings.

I have chosen a three tier architecture because I also need to access databases and do other business related computations before I can send a task to the clients.

I want the Strings of the status messages to be handed through all layers to the GUI where they are displayed.

I had the idead to use the same interface for all layer classes where the Strings go through, to enforce that they all have the same methods for receiving the data.

The alternative would be having separate interfaces for the layer classes, but those would then be essentially the same, except having a different class name.

Which alternative would be the proper way to ensure clean communication between the layers?

  • 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-26T01:28:18+00:00Added an answer on May 26, 2026 at 1:28 am

    I am assuming that this is a psuedo-synchronous response (You have somehow co-related request/response from different queues OR used some polling mechanism on response queue to tie things together). Otherwise I don’t understand how response can flow backwards from a JMS queue to the UI layer.

    To your actual question, if list of possible status messages (Strings) is known upfront, why don’t you convert String message recieved from queue to a Status enumeration. This could be passed as response to the other layers (may be wrapped within a Value Object). This would give you better control on what you wish to show on UI as well as help you manage related business logic better (e.g. say you want to provide different business treatment based on Status recieved).

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

Sidebar

Related Questions

I have a computation/simulation system with one master server and (potentially) many clients (workers).
In a system I am currently working on, there is one process that loads
I'm using PHP 4.3.9, Apache/2.0.52 I'm trying to get a login system working that
I'm working on a system that includes a large number of reports, generated using
I am working on an embedded system, so memory is precious for me. One
I am working on a system that processes documents that are dumped into a
I have recently started working on my master thesis in C that I haven't
We are develping an application using PHP and Symfony framework. Ideally the system would
I am working on a comment voting system. I have a page profile_new.php?id=194 That
Summary : synchronisation of multiple SQLite databases with server side sequentially. I'm working on

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.