Order of execution of Servlet and Listener class in java -


as part of application development, 2 things need take care:

  1. read configuration properties file load on startup using servlet
  2. load on application need start listener start thread pool using specified pool size , getting properties file

note: listener dependent on servlet , in order configured values.

here concern , if both start parallel , in case may chance of listener starts before servlet , hence configured value not available time.

how resolve .. ?


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -