[jax-rs-spec users] [jsr339-experts] Re: Custom Providers

From: Markus KARG <>
Date: Wed, 10 Apr 2013 22:33:54 +0200

I wonder what kind of filter you are writing that implies the need for a
database connection?

> -----Original Message-----
> From: Jan Algermissen []
> Sent: Mittwoch, 10. April 2013 18:50
> To:
> Subject: [jsr339-experts] Custom Providers
> Hi,
> facing the task of writing a general library of some filters for JAX-RS
> 2 I really find it confusing, that there is no JAX-RS framework-level
> way to write a custom provider. (For example to inject a library-user
> provided database connection of some sort into a filter or feature).
> As it looks, one has to hard-wire some components of such a library
> with parts of a particular JAX-RS implementation (to get @Context
> injection) or particular container (to get CDI). Both seems quite odd,
> actually. Or you have to come up with solutions for every
> implementation/container and have users pick.
> Would be curious how others feel about that. Maybe an issue for 2.x or
> 3.0?
> Or am I missing something entirely?
> Jan