This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Web Services Certification (SCDJWS/OCPJWSD) and the fly likes Why context listeners not configured in web.xml in some way of WS implementation? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCPJWSD)
Reply Bookmark "Why context listeners not configured in web.xml in some way of WS implementation?" Watch "Why context listeners not configured in web.xml in some way of WS implementation?" New topic
Author

Why context listeners not configured in web.xml in some way of WS implementation?

Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 458

Hello All,

My question is in reference to Ivan's notes (Chapter 9). I'm comparing the setup between generating service and client artifacts from WSDL and the implementing XML Based, Document style WS.

Under section 9.3 "Create WSDL and Generate Service Implementation from XMLSchema", there is no explicit inclusion of WSServletContextListeners and Servlet mapping is not included in web.xml. Also, there is no reference to the usage of sun-jaxws.xml in this case.

But under section 9.4, "XML-Based, Document Style JAX-WS Web Service", there is a reference to the usage of Listeners, Servlet Mappings and the usage of sun-jaxws.xml.

Why there is a difference here? In what way having or not having the listeners configured in web.xml, will have impact on the Web Service.

Please advice.

Thanks

Regards
KumarRaja

Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1129
Kumar,

It's interesting to see that in section 9.3 we see a shell web.xml -



Whereas in section 9.4, we see a full fledged web.xml -




Not sure if JAX-WS RI web services deployment made simplified sheds light on it.

Regards,
Dan



William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Ivan Krizsan
Bartender

Joined: Oct 04, 2006
Posts: 2194
Hi!
@Kumar: I will consider the question answered by Dan.
I do not hesitate to attempt additional clarification, upon request.
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 458

Thank you Dan and Ivan.
Ivan Krizsan
Bartender

Joined: Oct 04, 2006
Posts: 2194
Hi!
Dan Drillich wrote:
It's interesting to see that in section 9.3 we see a shell web.xml -
...
Whereas in section 9.4, we see a full fledged web.xml -

A very good observation!
Section 9.4 has a more complete web.xml deployment descriptor due to the fact that the Metro deployment descriptor, sun-jaxws.xml, is also used in the example.
At that time, I were not able to make the example work without the web.xml deployment descriptor configured as seen in the study notes. This may have changed with GlassFish v3 - I haven't tried.
Best wishes!
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Why context listeners not configured in web.xml in some way of WS implementation?
 
Similar Threads
SCJWSD Beta Exam
Deployment of JAX-WS webservice: sun-jaxws.xml and web.xml
Web Services Certification Material
SCDJWS Beta!!!!!!
Sample Questions for 288 - Need answers