aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes listener register order? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "listener register order?" Watch "listener register order?" New topic
Author

listener register order?

Romy Huang
Ranch Hand

Joined: Sep 30, 2003
Posts: 35
what order it is in listener register?
Is it dependend on listener declaration in DD?
P. Dunn
Ranch Hand

Joined: Feb 22, 2005
Posts: 34
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.


P.Dunn<br />SCJP, SCJD, SCEA & SCWCD
Jose Esteban
Ranch Hand

Joined: Nov 28, 2004
Posts: 102
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."
Colin Fletcher
Ranch Hand

Joined: Sep 10, 2004
Posts: 200
And they are taken out of service in reverse order.


SCJP 1.4 SCWCD 1.4
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: listener register order?