2

Is there an ipc option to get the last message in message queue but not removing it?

I want this to allow many clients reading same messages from the same server..

Edit: Server and clients are on the same machine!

Thanks

2
  • 1
    If you have multiple clients reading the same message from the same queue without dequeuing, can we assume you've worked out a way to remove the message after the last client has accessed it? Commented May 17, 2010 at 20:44
  • You are probably looking for an Enterprise Queuing system with a Publish/Subscribe implementation. Have a look at ActiveMQ or something similar Commented May 21, 2010 at 18:55

1 Answer 1

1

I don't believe there is any way to do that using either system v or POSIX message queues. Furthermore, AFAIK neither API allows you to send messages to a remote machine, so unless your clients are running on the same host as the server, you will need to use a higher-level technology.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.