[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [xmlblaster] can cpp client save messages if lost connection?



Marcel Ruff wrote:
> pikaiyuan wrote:
> 
>>Hello,everyone
>>
>>	 the scenario is: the connection to xmlblaster is lost when my cpp publisher send messages, and i wish the messages can be saved in database or ram.
>

Hi,

there is now a C++ client side persistent queue implementation
(alpha release) available via cvs:

http://www.xmlblaster.org/xmlBlaster/doc/requirements/client.cpp.queue.html

It is tested with g++ and icc on Linux.

It compiles on Windows but i haven't had the time
to download sqlite 2.x with cvs and compile
it myself on Windows to test it.

If you try it please report back if you
are successful.

best regards

Marcel


> 
> Currently the C++ client will queue messages in RAM during
> lost connection and polls for the server.
> If the connection is reestablished the messages in the client
> side C++ RAM queue are sent.
> 
> A persistent C++ queue implementation is currently missing.
> This would support a crashing C++ client to restore tail back messages
> in the client queue to recover.
> 
> I'm working on a C based client persistent queue which uses
> www.SQLite.org (an embedded C SQL DB). The queue implementation
> itself is functional and tested and i hope to integrate it as a C++ plugin
> during this week, see
> 
>  http://www.xmlblaster.org/xmlBlaster/doc/requirements/client.c.queue.html
> 
> 
>>another question:
>>     java client has persistent connection,does cpp client have?
> 
> 
> Yes, see
> 
>   xmlBlaster/demo/c++/bin> HelloWorld2 -help
> 
> and try playing the options with PublishDemo and SubscribeDemo
> in the same directory.
> 
> regards,
> 
> Marcel
> 
> 
>>     any suggestion?
>>
>>thanks any way        
>> 				
>>
>>			   pikaiyuan
>>			   2004-04-27	   
>>
>>
> 
> 
> 


-- 
http://www.xmlBlaster.org