add application context
add spring listener