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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:38:12+00:00 2026-05-20T09:38:12+00:00

I’m reading this section of Java EE tutorial. http://download.oracle.com/javaee/6/tutorial/doc/bncfu.html#bncfy And have a question: If

  • 0

I’m reading this section of Java EE tutorial.
http://download.oracle.com/javaee/6/tutorial/doc/bncfu.html#bncfy

And have a question: If I have a JMS client (not Server) that produces messages and sends them to a destination queue that is on the server, does this producer.setDeliveryMode(DeliveryMode.PERSISTENT); still applies?

I mean does JMS client support any mechanism to persist messages or that is only comes with the provider/sever software?

Thanks

  • 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-20T09:38:13+00:00Added an answer on May 20, 2026 at 9:38 am

    Since JMS is just a specification, there is nothing that would prevent an implementation from providing some level of message persistence at the client. However, in practice all implementations (that I am aware of anyway) delegate that to the broker.

    Keep in mind that messaging was originally designed to have a broker at every node in the same way that every node also had a TCP/IP, LU6.2 or other transport stack. In that sense messaging was strictly supposed to be a transport, not a central service like a database. The intention was to provide a local service that insulated the application from unavailability of the network and also from the myriad of synchronous transport protocols that were available. In this model, the broker was always local and the only network communication was between two brokers.

    Over the years, messaging added a client capability but this is more about licensing costs than architecture. The messaging client connection re-introduced a dependency on synchronous network connectivity that the transport had originally been intended to shield the application from. We have now come full circle as your question illustrates – a requirement for a local queuing to shield the application from unavailability of the network. Except now the application requiring a local persistence for messages is in fact the (supposedly) asynchronous messaging application.

    We could of course build a local mini-broker to queue messages before they get to the central broker. But before we go making the client code much more complex (and inviting an infinite recursion of backing our async messaging with yet more async messaging) I would recommend taking a second look at the original messaging architecture – put the broker local to the applications which require that level of persistence.

    One approach to this is to treat service provider apps differently than service consumer apps. It is the service providers who require deep, persistent message stores and, because they are often transactional, cannot be allowed to fail over to a different instance of the broker (in this case “different” as recognized by the XA resource manager).

    On the other hand, simple request/reply apps can continue to anonymously connect over the network to a lightweight tier of brokers with no permanent queues on them. These apps issue a request message outside of syncpoint and wait for the reply on a dynamic queue. If they fail over, they can just reissue the request and the reply will come to the new node. These are ideal candidates for networked, client-based messaging since they have no affinity to a particular broker. As long as there is a network hop between client and server apps, there is no need to make sure that clients fail over with servers, etc. Service providers have local brokers and service consumers have two (or more) lightweight central brokers to connect to.

    Of course, this does not meet every async messaging requirement but it does provide a solution that provides highest reliability for systems of record and still conserves license costs by allowing service requestors to share centralized brokers.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have thousands of HTML files to process using Groovy/Java and I need to
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
For some reason, after submitting a string like this Jack’s Spindle from a text
I am reading a book about Javascript and jQuery and using one of the
this is what i have right now Drawing an RSS feed into the php,

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.