Re: How can a producer/consumer tell if its connection is still good?

2011-12-10 Thread Ivan Pechorin
2011/12/10 JRR : > I am using the Active MQ CPP 3.4.0 client. > > We have a multi-threaded application that has multiple producers, and they > share a single connection. These connections are */not/* fail over > connections, nor can they be. > > I'm trying to find the fastest, most efficient way to

Re: CMS --> JMS: javax.jms.JMSException: java.io.UTFDataFormatException

2011-12-10 Thread Oscar Pernas
Sorry, It was a problem of the encoding of my cpp file. regards 2011/12/9 Oscar Pernas > Hi all, > > Im sending TextMessages from C++ client to a Java Application. Everything > goes fine, except when I add spanish chars like 'ñ'. If I use c++ to send > and receive messages with 'ñ' all goes fi

Re: How can a producer/consumer tell if its connection is still good?

2011-12-10 Thread Martin C.
Hi, I'd tend to use Spring's SingleConnectionFactory with reconnectOnException set to true. I'd compare my cached connection against the one returned by the SingleConnectionFactory to know if any other consumer encountered a JMS exception. Basically I'd also treat any JMSException I encounter as