This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Web Services and the fly likes Project Jersey Jax-RS - Multiple classes with same path Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Project Jersey Jax-RS - Multiple classes with same path" Watch "Project Jersey Jax-RS - Multiple classes with same path" New topic
Author

Project Jersey Jax-RS - Multiple classes with same path

Rahul Juneja
Ranch Hand

Joined: Aug 03, 2002
Posts: 425
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.

Thanks,
Rahul


Rahul Juneja
ThoughtClicks - http://techlabs.thoughtclicks.com
 
Don't get me started about those stupid light bulbs.
 
subject: Project Jersey Jax-RS - Multiple classes with same path