Guys again two more question :)
how to run client in failover mode?
connections.CreateSession(10); time declared in Createsession is for
what? If it's inactive then close? or always when time count down to 0 I
need to reconnect??
Any example will be very helpfull.
Regards,
Adam
W dniu 2010-12-16 12:41, Adam Kaminiecki pisze:
Thanks a lot I'm going to try it!! :)
One more question
connections.CreateSession(10);
time declared in Createsession is for what? If it's inactive then
close? or always when time count down to 0 I need to reconnect??
W dniu 2010-12-16 12:36, Chuck Rolke pisze:
Hi Adam,
In the .NET Binding there is nothing like that directly. However, its
pretty
easy to do. Create a connection to the broker. Then create a receiver
that
gets to the queue you want by specifying the queue's address. Finally
Fetch() a
message from that queue. From the examples the code looks like:
Receiver receiver = session.CreateReceiver(address);
Message message = new Message();
message = receiver.Fetch(DurationConstants.SECOND * 1);
You could create a Duration with a value of zero to make Fetch return
right away if no message is present.
-Chuck
----- "Adam Kaminiecki"<[email protected]> wrote:
From: "Adam Kaminiecki"<[email protected]>
To: [email protected]
Sent: Thursday, December 16, 2010 4:55:49 AM GMT -05:00 US/Canada
Eastern
Subject: C# client question
Hi,
Is any method in C# client to ask server for message from queue
something like SingleGet?
For example
im using method "singleGet" with parameters (queueName) and server
return one message or null if queue is empty
Is something like that in C# client??
Regards,
Adam
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]