The TIBCO Platform is a real-time, composable data platform that will bring together an evolving set of your TIBCO solutions - and it's available now!
A chart showing the TIBCO Platform vision
Jump to content
Forums
Ask questions and gain insight from discussions

How to stop Multiple receivers on the Queue.


KAPIL GUPTA 2

Recommended Posts

I am using the queue and create a receiver and after reading the queue close the receiver but sill I have multiple receivers in the Gems tool and all data are not reading from the queue correctly. How I can restrict one receiver only for a queue but why it's not by default as the queue is supposed to be one receiver only Please help with this. Thanks.

I am using .NET Tibco EMS API in order to connect the queue, create a receiver, read the queue and close the receiver.

How I can check if there is an open receiver on the queue and if it's not there then only create the receiver.

var queue = session.CreateQueue(queuename);

 

var receiver = session.CreateReceiver(queue);

var message = receiver.Receive();

receiver.Close();

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...