how to set default route in jax-rs

2009-03-14 Thread Ty
Hi, Does anyone know how to set a default router (catch-all route) using jax-rs. In standard restlet I'd do this: final Router myRouter = new Router(getContext()); myRouter.attachDefault(CatchAll.class); Is there a way to get the same functionality using jax-rs?

RE: Re: jax-rs example throwing exception: please help

2009-03-14 Thread Ty
Thanks, the activation jar was the first of many that I needed to add before I could get the example to work. Eventually I did get it to work though. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=1319909

how to set default route in jax-rs

2009-03-14 Thread webpost
Hi, I'm trying to get my head around jax-rs and I'm not sure how to set a catch-all route for my site. In restlet I would do this: final Router myRouter = new Router(getContext()); myRouter.attachDefault(CatchAll.class); Is there a way to do the same thing in jax-rs? T

RE: Re: jax-rs example throwing exception: please help

2009-03-14 Thread webpost
Thanks for the help Stephan. You got me started on a journey of adding libraries. In the end I had to include the following before the example would run: com.sun.jaxb.jar javax.activation.jar javax.mail.jar javax.ws.rs.jar javax.xml.bind.jar org.apache.commons.fileupload.jar org.json.jar

OSGi vs. Service Provider patterns

2009-03-14 Thread Rob Heittman
Now that I'm drinking the OSGi Kool-Aid, one of the main problems my projects face is component reliance on the Java Service Provider model (META-INF/services/... discovery) to find available bits. My Google-fu is apparently weak, because I haven't found any good, rational treatment of what the

Re: how to set default route in jax-rs

2009-03-14 Thread Stephan Koops
hi Ty, you could set a default Restlet in the JaxRsRouter (or in the JaxRsApplication) best regards Stephan Ty schrieb: Hi, Does anyone know how to set a default router (catch-all route) using jax-rs. In standard restlet I'd do this: final Router myRouter = new