reidmorrison / jruby-jms

Complete JRuby API into Java Messaging Specification (JMS)
Apache License 2.0
47 stars 21 forks source link

connection recovery? #13

Closed bwalsh closed 10 years ago

bwalsh commented 11 years ago

Given a failure on the remote JMS host. I notice that a jms connection's on_exception() get's called once. If that attempt to re-start it fails, no further callbacks happen. Any advice on how to recover failed connections?

reidmorrison commented 10 years ago

The block supplied to #on_exception is only called once, when a connection is lost. When a new valid connection has been established #on_exception needs to be called again supplying the block handler for that new connection.