
blended.jms.utils.BlendedJMSConnection.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of blended.jms.utils Show documentation
Show all versions of blended.jms.utils Show documentation
A bundle to provide a ConnectionFactory wrapper that monitors a single connection and is able
to monitor the connection via an active ping.
package blended.jms.utils
import javax.jms._
import org.slf4j.{LoggerFactory, Logger}
class BlendedJMSConnection(conn: Connection) extends Connection {
private[this] val log = LoggerFactory.getLogger(classOf[BlendedJMSConnection])
protected[utils] def connection = conn
override def createDurableConnectionConsumer(topic: Topic, s: String, s1: String, serverSessionPool: ServerSessionPool, i: Int): ConnectionConsumer =
conn.createDurableConnectionConsumer(topic, s, s1, serverSessionPool, i)
override def stop(): Unit = log.debug("Ignoring call to connection.stop()")
override def createSession(b: Boolean, i: Int): Session = conn.createSession(b, i)
override def getClientID: String = conn.getClientID
override def createConnectionConsumer(destination: Destination, s: String, serverSessionPool: ServerSessionPool, i: Int): ConnectionConsumer = conn.createConnectionConsumer(destination, s, serverSessionPool, i)
override def getMetaData: ConnectionMetaData = conn.getMetaData
override def setExceptionListener(exceptionListener: ExceptionListener): Unit = conn.setExceptionListener(exceptionListener)
override def setClientID(s: String): Unit = conn.setClientID(s)
override def getExceptionListener: ExceptionListener = conn.getExceptionListener
override def close(): Unit = log.debug("Ignoring call to connection.close()")
override def start(): Unit = conn.start()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy