Forums Register Login

Listener

+Pie Number of slices to send: Send
Hi All,
On PN-254 of HFSJ, in Bang box it is mentioned that, you have to configure HttpSessionListener, HttpSessionActivationListener & HttpSessionAttributeListener in DD. But According to errata, you dont have to configre HttpSessionActivationListener in DD.
I am just confused..
can anyone please clearify that which is the correct one?

2nd Question
------------
HttpSessionBindingListener and HttpSessionActivationListener dont require to be configured in DD.
So, how container will decide the order of execution if more than one class is implementing the same listener?

Thanks.
Imran
+Pie Number of slices to send: Send
About question 1, HttpSessionBindingListener and HttpSessionActivationListener don't need to be declared in the descriptor.
+Pie Number of slices to send: Send
About question 2, HttpSessionBindingListener and HttpSessionActivationListener are implemented by attributes willing to know when they're about to be bound/unbound from the session, or activated/passivated. The calling order is not an issue here.
Beauty is in the eye of the tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 670 times.
Similar Threads
Listeners
Configuring listenet element in web.xml
Sharing my experience with you
2 Listeners - No need to configure in DD
HFSJ Pg. 254
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 19:53:16.