Re: Reconnection

2009-04-06 Thread dongabda
Here is the code, I think can be useful to know the problem. Thanks for your help. virtual void run(){ try { // Create a ConnectionFactory string brokerURI = tcp://192.168.233.214:61616?&soLinger=1&soKeepAlive=true auto_ptr connectionFactory(

Re: Reconnection

2009-03-26 Thread dongabda
The consumer is running in a PC with linux (Fedora Core10). This PC is connected to a HUB. The messagebroker and producer are in other PC and it is connected to other HUB. Two HUBS are connected. The producer is sending messages and consumer receives them well. When I switch off a HUB, the consume

Re: Reconnection

2009-03-26 Thread Andreas Gies
Hi, perhaps you could come up with a small test case that shows the error ? Best regards Andreas On Mar 26, 2009, at 10:11 AM, dongabda wrote: Yes, I'm using the excepcionListener and onException, but any exception is captured when the PC lost the network link. If I stop the messagebrok

Re: Reconnection

2009-03-26 Thread dongabda
The consumer is running in a Linux (Fedora Core 10) I saw (doing netstat) that the tcp connection appears like ESTABLISHED, and this is not true because the netkork link is lost. Any idea? Timothy Bish wrote: > > On Thu, 2009-03-26 at 02:11 -0700, dongabda wrote: >> Yes, I'm using the excepcio

Re: Reconnection

2009-03-26 Thread Timothy Bish
On Thu, 2009-03-26 at 02:11 -0700, dongabda wrote: > Yes, I'm using the excepcionListener and onException, but any exception is > captured when the PC lost the network link. If I stop the messagebroker the > exception occurs, but with link lost not. How can I resolve it? > What OS are you

Re: Reconnection

2009-03-26 Thread dongabda
Yes, I'm using the excepcionListener and onException, but any exception is captured when the PC lost the network link. If I stop the messagebroker the exception occurs, but with link lost not. How can I resolve it? -- View this message in context: http://www.nabble.com/Reconnection-tp226

Re: Reconnection

2009-03-24 Thread Timothy Bish
On Tue, 2009-03-24 at 00:46 -0700, dongabda wrote: > Hi, > I saw that the consumer doesn't give any exception, it apparently works > without net link, but after restore the link the consumer doesn't receive > nothing. How can I know if the connection is down? How can I reconnect it? I > saw the CMS

Re: Reconnection

2009-03-24 Thread dongabda
Hi, I saw that the consumer doesn't give any exception, it apparently works without net link, but after restore the link the consumer doesn't receive nothing. How can I know if the connection is down? How can I reconnect it? I saw the CMS Api but I don't see any function to know if the session or

Re: Reconnection

2009-03-23 Thread Andreas Gies
Hi there, i assume that you have set the clientId and consumer name to the same value after the reconnect ? Best regards Andreas On Mar 23, 2009, at 5:15 PM, dongabda wrote: I have a messagebroker and a producer in Java (Both in same PC). The consumer is in other PC and C++(activemq-cpp.2

Re: reconnection to unavailable broker causing thread/memory leak

2008-02-19 Thread wlam
JIRA AMQ-1202 was marked as resolved on 5.0.0. But the downloaded src does not show the changes mentioned by Kevin, i.e. comment out code on onStarted and onStopped methods. Wonder it is fixed another way or it didn't make it to 5.0.0? I need to patch it to 4.1.1 for the memory leak, can you poi

Re: reconnection to unavailable broker causing thread/memory leak

2007-10-31 Thread nkiesel
Another bug related to this could be AMQ-1214. I see the same problem with a simple pair of brokers connected using a static NetworkConnector. When the receiving AQ server is down, the sender does the following every 5 seconds: INFO [NetworkConnector] Establishing network connection between fr

Re: reconnection to unavailable broker causing thread/memory leak

2007-10-22 Thread Rob Davies
Hi Fred, Roger is referring to an Iona built apache licensed productisation of ActiveMQ - http://open.iona.com/products/fuse-message-broker/ This is not an apache release of ActiveMQ - which as you rightly point out can be found here: http://people.apache.org/repo/m2- snapshot-repository/or

Re: reconnection to unavailable broker causing thread/memory leak

2007-10-22 Thread Fred Crable
Whate is 5.0.0.4-fuse?? All of the snapshot builds are by date. Thanks, Fred Roger Bryant wrote: > > Apparently this issue has been resolved in 5.0.0.4-fuse. > > Regards, > > Roger > > > > -- View this message in context: http://www.nabble.com/reconnection-to-unavailable-broker-causing

Re: reconnection to unavailable broker causing thread/memory leak

2007-10-19 Thread Roger Bryant
Apparently this issue has been resolved in 5.0.0.4-fuse. Regards, Roger -- View this message in context: http://www.nabble.com/reconnection-to-unavailable-broker-causing-thread-memory-leak-tf4603206s2354.html#a13298013 Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: reconnection to unavailable broker causing thread/memory leak

2007-10-17 Thread yaussy
A while back, with AMQ 4.2, which is now 5.0, I ran into a similar problem. I don't recall that there was a thread leak, but there was definitely a memory leak. Check out AMQ-1202. Again, this may be different now with the more recent 5.0. I've not taken 5.0 yet, as I made a handful of changes

Re: reconnection to unavailable broker causing thread/memory leak

2007-10-16 Thread Roger Bryant
Hi Fred, We are experiencing the exact same problem here with ActiveMQ 5.0. We have had the Iona guys in over the last few weeks and it has been raised as a bug. I intend to follow up on it in the next few days and will keep you posted. Rgds, Roger -- View this message in context: http://www