It should work in both cases
In the first case it uses jaxws style of deployment , if you want your webapp to be portable across EE implementations then use the second case. We have tests in cases of handlers in an xml file and annotating the service with HandlerChain and they work fine.
Regards,
Bhakti
[Message sent by forum member 'bhaktimehta' (bhaktimehta)]
http://forums.java.net/jive/thread.jspa?messageID=259025