Skip to content
Permalink
Browse files

Added todo

  • Loading branch information...
lefou committed Feb 14, 2019
1 parent c053993 commit 6782792ba9ec55231d67d9638a0c9b2a27f434a9
@@ -8,7 +8,6 @@ import blended.util.config.Implicits._
import blended.util.logging.Logger
import com.typesafe.config.Config
import domino.DominoActivator
import domino.logging.Logging
import javax.jms.ConnectionFactory
import org.apache.activemq.ActiveMQConnectionFactory

@@ -5,12 +5,12 @@ import blended.jms.utils.IdAwareConnectionFactory
import blended.util.logging.Logger
import org.osgi.framework.BundleContext

class DefaultVerificationFailedHandler(bundleContext : BundleContext) extends VerificationFailedHandler {
class DefaultVerificationFailedHandler(bundleContext: BundleContext) extends VerificationFailedHandler {

private val log : Logger = Logger[DefaultVerificationFailedHandler]
private val log: Logger = Logger[DefaultVerificationFailedHandler]

override def verificationFailed(cf: IdAwareConnectionFactory): Unit = {

// TODO: shutting down the container is a bit of overkill IMHO (TR), why not just unregister the connection?
log.error(s"Verification for connection [${cf.vendor}:${cf.provider}] has failed. Shutting down container ...")
bundleContext.getBundle(0).stop()
}

0 comments on commit 6782792

Please sign in to comment.
You can’t perform that action at this time.