When publishing after reception of a message Stomp appears to stall on publish. In fact, it appears that publish itself never gets called as I've wrapped the Client#publish method in puts statements and it never appears to get run.
This should do a little recursive publishing for each message in the queue however, it stalls at the very first time the publish inside the subscribe gets called.
I have also tried creating a new connection specifically for the inner publish as well as wrapping each new publish in a thread without any luck.
I've tried this with both ActiveMQ 5.8 and 5.9 and Ruby 2.0.0p353 and JRuby 1.7.10.
Any help with this issue would be appreciated as I have no idea where to look for the stall.
Never mind, I'm an idiot. It's the way I'm munging the message that's causing the problem. I'm surprised it doesn't raise an exception, but at least I've worked out what the error is.
When publishing after reception of a message Stomp appears to stall on publish. In fact, it appears that publish itself never gets called as I've wrapped the Client#publish method in puts statements and it never appears to get run.
An example of this is https://gist.github.com/waynerobinson/8781389
This should do a little recursive publishing for each message in the queue however, it stalls at the very first time the publish inside the subscribe gets called.
I have also tried creating a new connection specifically for the inner publish as well as wrapping each new publish in a thread without any luck.
I've tried this with both ActiveMQ 5.8 and 5.9 and Ruby 2.0.0p353 and JRuby 1.7.10.
Any help with this issue would be appreciated as I have no idea where to look for the stall.