Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F66698294
HornetQShutdownContextListener.scala
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Jun 12, 11:25
Size
700 B
Mime Type
text/x-c++
Expires
Fri, Jun 14, 11:25 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
18262750
Attached To
R2664 SHRINE MedCo Fork
HornetQShutdownContextListener.scala
View Options
package net.shrine.hornetqmom
import javax.servlet.{ServletContextEvent, ServletContextListener}
import akka.event.Logging
import spray.routing.directives.LogEntry
/**
* Created by yifan on 8/31/17.
*/
class HornetQShutdownContextListener extends ServletContextListener {
override def contextInitialized(servletContextEvent: ServletContextEvent): Unit = {
LogEntry(s"${getClass.getSimpleName} context initialized $servletContextEvent", Logging.InfoLevel)
}
override def contextDestroyed(servletContextEvent: ServletContextEvent): Unit = {
LocalHornetQMomStopper.stop()
LogEntry(s"${getClass.getSimpleName} context destroyed $servletContextEvent", Logging.InfoLevel)
}
}
Event Timeline
Log In to Comment