Using standard API no but using openejb server events you can observe
https://github.com/apache/tomee/blob/master/server/openejb-cxf-rs/src/main/java/org/apache/openejb/server/cxf/rs/event/ExtensionProviderRegistration.java

Romain Manni-Bucau
@rmannibucau |  Blog | Old Blog | Github | LinkedIn


2017-11-10 9:35 GMT+01:00 fulve <fu...@meti.fr>:
> Hello Romain
>
> It works if I define the providers in the openejjb-jar.xml like this :
>
> <pojo-deployment class-name="jaxrs-application">
>         <properties>
>             cxf.jaxrs.skip-provider-scanning = true
>         </properties>
>      </pojo-deployment>
>
> <pojo-deployment class-name="com.meti.mlib.common.rs.WSMobiApplication">
>         <properties>
>             cxf.jaxrs.providers =
> com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider, ....
>             cxf.jaxrs.skip-provider-scanning = true
>         </properties>
>     </pojo-deployment>
> <pojo-deployment class-name="com.meti.mlib.common.rs.DefaultApplication">
>         <properties>
>             cxf.jaxrs.providers =
> org.apache.johnzon.jaxrs.ConfigurableJohnzonProvider, ...
>             cxf.jaxrs.skip-provider-scanning = true
>         </properties>
> </pojo-deployment>
>
> Is there a way to do this programmaticly ?
>
>
>
>
> --
> Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html

Reply via email to