Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F62583169
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
Tue, May 14, 03:47
Size
743 B
Mime Type
text/x-c++
Expires
Thu, May 16, 03:47 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
17644114
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
()
MessageMapCleaningScheduler
.
shutDown
()
LogEntry
(
s
"${getClass.getSimpleName} context destroyed $servletContextEvent"
,
Logging
.
InfoLevel
)
}
}
Event Timeline
Log In to Comment