Forums Register Login

listener register order?

+Pie Number of slices to send: Send
what order it is in listener register?
Is it dependend on listener declaration in DD?
+Pie Number of slices to send: Send
 

Originally posted by Romy Huang:
what order it is in listener register?
Is it dependend on listener declaration in DD?


I think so. Listeners usually do, but I can't find a reference.
+Pie Number of slices to send: Send
Servlet 2.4 spec SRV.10.3.3 (page 82):

"The Web container registers the listener instances according to the interfaces they implement and the order in which they appear in the deployment descriptor. During Web application execution, listeners are invoked in the order of their registration."
+Pie Number of slices to send: Send
And they are taken out of service in reverse order.
Let nothing stop you! Not even this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 750 times.
Similar Threads
methods in Listeners
how to read config file when web service starts up
Multiple buttons... how does the actionlistener handle it?
Regarding Listeners
Stopping an InternalFrame from closing
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 02:23:46.