Resteasy & CDI injection problem is resolved ;-)
I don't quite understand what you mean. Do you have some proposal for a
lightweight CDI impl for the gateway?
On 12/02/2016 14:06, Charles Moulliard wrote:
Resteasy & CDI injection problem is resolved ;-)
>
> On 12/02/16 13:58, Eric Wittmann wrote:
>> Charles - there's no reason that the karaf version of apiman needs to
>> use resteasy. The REST layer is, I believe, purely jax-rs - so you
>> could certainly try to get it running using CXF and blueprint or
>> whatever technologies are baked into karaf these days.
>>
>> That said, the karaf support is already sporting a large number of
>> changes, extra classes, new configuration, etc. I'm starting to worry
>> about the long-term maintenance cost of supporting running on karaf.
>> Given the size of our development team.
>>
>> -Eric
>>
>> On 2/12/2016 6:02 AM, Charles Moulliard wrote:
>>> Hi,
>>>
>>> Is there a reason why the Apiman Gateway Services aren't injected using
>>> CDI like Apiman Manager ?
>>> Can we use for OSGI platform a different strategy to load the services
>>> and expose them (Apache Felix SCR annotations or Apache Aries Blueprint)
>>> as we have many issues with Resteasy deployed on Karaf like also to use
>>> Pax CDI ?
>>>
>>> Example : The Resteasy CDI Extension object is null when we call the
>>> BeanManager (created using PAx CDI Weld) to get the bean. This problem
>>> occurs not matter if we embed the Resteasy CDI extension within the
>>> bundle of Apiman Manager or as a bundle
>>>
>>> private ResteasyCdiExtension lookupResteasyCdiExtension() {
>>> Set<Bean<?>> beans =
>>> manager.getBeans(ResteasyCdiExtension.class);
>>> Bean<?> bean = manager.resolve(beans);
>>> if (bean == null) {
>>> throw new
>>>
IllegalStateException(Messages.MESSAGES.unableToObtainResteasyCdiExtension());
>>>
>>> }
>>>
>>> Regards,
>>>
>>> Charles
>>> _______________________________________________
>>> Apiman-dev mailing list
>>> Apiman-dev(a)lists.jboss.org
>>>
https://lists.jboss.org/mailman/listinfo/apiman-dev
>>>
>
> _______________________________________________
> Apiman-dev mailing list
> Apiman-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/apiman-dev
>