Re: C++ client question

2013-06-27 Thread HrochL
sender.send(Message(Msg)); } catch(const std::exception& error) {std::cerr << error.what() << std::endl; pConn->close(); } } }; Thank you very much for showing the correct way ! Petr -- View this message in context: http://qpid.2158

Re: C++ client question

2013-06-27 Thread Gordon Sim
On 06/27/2013 02:37 PM, Petr Parýzek wrote: Hi, I was try to encapsulate qpid client into this simple class class MySender { private: Connection *pConn; public: MySender() {pConn = NULL;} ~MySender() { if (pConn != NULL) delete pConn;} void Send(const char *Addr, const char *M

Re: C++ client question

2013-06-27 Thread Pavel Moravec
June 27, 2013 3:37:28 PM > Subject: C++ client question > > Hi, > I was try to encapsulate qpid client into this simple class > > class MySender > { > private: >Connection *pConn; > > public: >MySender() {pConn = NULL;} >~MySender() { if (pC

C++ client question

2013-06-27 Thread Petr Parýzek
Hi, I was try to encapsulate qpid client into this simple class class MySender { private: Connection *pConn; public: MySender() {pConn = NULL;} ~MySender() { if (pConn != NULL) delete pConn;} void Send(const char *Addr, const char *Msg) {if (pConn == NULL) pConn = new Connect

Re: C# client question

2010-12-20 Thread Adam Kaminiecki
Hi, Can anybody tell my after 60sec always get an error "Connection lost" I'm using qpid C++ broker 0.8 and .net client qpid-dotnet-0-10-0.8. I'm creating session like above: session = connections.CreateSession(0); Regards,

Re: C# client question

2010-12-17 Thread Adam Kaminiecki
is present. -Chuck - "Adam Kaminiecki" wrote: From: "Adam Kaminiecki" 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 so

RE: C# client question

2010-12-16 Thread Steve Huston
0 4:56 AM > To: users@qpid.apache.org > 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

Re: C# client question

2010-12-16 Thread Adam Kaminiecki
ot; wrote: From: "Adam Kaminiecki" 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

Re: C# client question

2010-12-16 Thread Chuck Rolke
"Adam Kaminiecki" wrote: > From: "Adam Kaminiecki" > 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 qu

C# client question

2010-12-16 Thread Adam Kaminiecki
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 messag