Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Project Jersey Jax-RS - Multiple classes with same path  RSS feed

Rahul Juneja
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Folks,

I just started looking at JAX-RS and was using Jersey Implementation.
What i have is two simple classes having the same @Path annotation, and the deployment goes smoothly.

My first question should the deployment not check for the multiple classes having same path, Also if it does not as is the case when i deploy this on tomcat 6.X, what will be called when i do a get from the client or type the address in browser.

Any pointers or links are appreciated.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!