qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Kaminiecki <ada...@dgt.com.pl>
Subject Re: C# client question
Date Fri, 17 Dec 2010 08:13:02 GMT
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"<adamka@dgt.com.pl>  wrote:
>>
>>> From: "Adam Kaminiecki"<adamka@dgt.com.pl>
>>> To: users@qpid.apache.org
>>> 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:users-subscribe@qpid.apache.org
>> ---------------------------------------------------------------------
>> Apache Qpid - AMQP Messaging Implementation
>> Project:      http://qpid.apache.org
>> Use/Interact: mailto:users-subscribe@qpid.apache.org
>>
>>
>

-- 
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:users-subscribe@qpid.apache.org


Mime
View raw message