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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:09:46+00:00 2026-05-20T18:09:46+00:00

I have a task that has a durable subscriber on a JMS topic and

  • 0

I have a task that has a durable subscriber on a JMS topic and I need to be able to move this task from one host to another.

The task has set its Client ID using:

TopicConnection.setClientID(“MyClient”);

and:

TopicSession.createDurableSubscriber(Topic,
“durable”);

For the relevant instances of TopicConnection, TopicSession and Topic. I’m using client acknowledgement and every message is acknowledged upon successful handling (there were no errors in the example run I posted below).

The task will always have the same Client ID (combination of “MyClient” and “durable”).

However, it appears as if this same Client ID is treated as separate for each host.

So I get the following scenario:

  1. Host A is running the subscriber.
  2. Messages 1-10 are sent.
  3. Host A receives messages 1-10 and shuts down it’s subscriber (closing the connection)
  4. Messages 11-20 are sent.
  5. Host B sets up a subscriber with (apparently) the same Client ID
  6. Messages 21-30 are sent.
  7. Host B receives messages 11-30 (and often a few prior messages, seemingly at random)
  8. Host B shuts it’s subscriber down
  9. Host A sets up it’s subscriber again
  10. Host A receives messages 11-30

Am I right in thinking that the host identity is somehow being incorporated into the Client ID under the hood? And is there a way of stopping this happen.

I’m using SwiftMQ, in case this is behaviour is peculiar to that solution.

  • 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-20T18:09:46+00:00Added an answer on May 20, 2026 at 6:09 pm

    Ok, we’ve figured out why this is happening.

    Each server in our cluster maintains its own JMS router. In SwiftMQ (if not all JMS implementations) durable subscriptions are location dependant. As each router maintains its own list of durable subscriptions, two durable subscriptions on separate routers will be managed separately, even if they have the same Client ID.

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

Sidebar

Related Questions

I have a Task object that has a collection of Label objects ... in
I have a Rakefile with a Rake task that I would normally call from
So we have a winforms app that in the task manager should anywhere from
[Updated a bit] I have a Task model that has a :completed boolean attribute.
I have a backroundrb scheduled task that takes quite a long time to run.
I have an update query being run by a cron task that's timing out.
I have an Ant script that performs a copy operation using the 'copy' task
I have a Samurize config that shows a CPU usage graph similar to Task
I have this Task model: class Task < ActiveRecord::Base acts_as_tree :order => 'sort_order' end
I have an embedded system that has multiple (>20) tasks running at different priorities.

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.