users@jersey.java.net

[Jersey] Need help with path mapping

From: tmp <le_tmp_at_gmx.de>
Date: Tue, 14 Dec 2010 18:02:01 -0800 (PST)

hello!

I want to achieve the following mapping:

"localhost:8080/myapp/services/serviceA1" -> class A
"localhost:8080/myapp/services/serviceA2" -> class A
"localhost:8080/myapp/*" -> class B

"*" means that
"localhost:8080/myapp/xyz" is mapped to class B, as well as
"localhost:8080/myapp/xyz/abc" or
"localhost:8080/myapp/xyz/abc/123" and so on

I'm using tomcat and already tried to achieve this by adding filter-mappings
in the web.xml - with no luck.
So at the moment I'm forwarding every request to the jersey
ServletContainer. But I cannot find any solution with the path annotations.

Do you have any ideas?
Thank you very much
-- 
View this message in context: http://jersey.576304.n2.nabble.com/Need-help-with-path-mapping-tp5835208p5835208.html
Sent from the Jersey mailing list archive at Nabble.com.