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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:04:34+00:00 2026-05-30T16:04:34+00:00

The setup: One server class (extension of AbstractService) One cometd client (custom C implementation,

  • 0

The setup:

One server class (extension of AbstractService)
One cometd client (custom C implementation, but irrelevant for this question)

The small question:
If my server class publishes to it’s own channel, it’s handleMessage function gets called. In general, I don’t really desire this, but I can work around it (the server doesn’t need to know when the server sends messages). Can I use ServerSession.deliver instead of publish?

The real question:
On my client, I send a message to the server on the server class’ channel. The server’s handleMessage function gets called, however the message also gets sent back to the originating client. Is there a way to configure the server such that messages are not sent back to the originating client?

I saw the Extension class, but this seems to operate just one level above sending messages to separate clients (if I kill a message here, it doesn’t get sent to any clients, including the server).

Any ideas?
Thanks in advance!

  • 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-30T16:04:35+00:00Added an answer on May 30, 2026 at 4:04 pm

    If the message is sent back to the original sender, then it’s likely subscribed to that channel.

    You did not specify the channel’s name, but you should understand the different between broadcast channels and service channels, see here.

    If your client publishes to a service channel, the message arrives to the server and it’s not broadcasted to subscribers, while if your client publishes to a broadcast channel, the server broadcasts it to subscribers (among which your client), so that is likely why your client gets the message back.

    ServerSession.deliver() can be used to perform message delivery (on any channel) to specific clients (as opposed to broadcast to all subscribers).

    If your client does not need the message to be broadcasted, then normally the best solution is to use a service channel.

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

Sidebar

Related Questions

hey guys, here's a simple scenario NServiceBus Client/Server setup. The Message is a custom
How do you setup a settings file? One is for your local development server
I have 2 servers setup at the moment. One is a web server running
I am trying to setup a simple UDP client and server using Ruby. The
I have a TCP client-server setup where I need to be able to pass
I want to setup replication on three SQL servers and one is not configured
I'd like to setup one instance of MySQL to flat-out reject certain types of
What is the best way to setup one Linux box to listen on its
How does one setup DUnit Testing in a Midas/DataSnap project in Delphi 2006 Edit
I setup phpMyID on one of my machines, and I'm trying to get apache

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.