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