Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

when we have to extends application and when we have to give servlet entry in web.xml for jersey  RSS feed

 
eugene malcolumn
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
both are web projects..while crating  a jersey application when we have to extends application and when we have to give servlet entry in web.xml for jersey??
 
Tim Moores
Saloon Keeper
Posts: 3824
79
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure I understand the question, especially what you mean by "both".

You extend Application to let the REST engine know which of your classes implement services, whereas you add a servlet entry to your web.xml to make JAX-RS available to your web app. Both are necessary, but only loosely related.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!