File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


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
 
GeeCON Prague 2014
 
subject: Project Jersey Jax-RS - Multiple classes with same path