Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Kumar Raja
Ranch Hand
Posts: 547
2
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
@Kumar: I will consider the question answered by Dan.
I do not hesitate to attempt additional clarification, upon request.
Best wishes!
 
Kumar Raja
Ranch Hand
Posts: 547
2
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Dan and Ivan.
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic