Order of execution of Servlet and Listener class in java -
as part of application development, 2 things need take care:
- read configuration properties file load on startup using servlet
- 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
Post a Comment