kumuluz / kumuluzee

Lightweight open-source framework for developing microservices using standard Java EE technologies and migrating Java EE to cloud-native architecture.
https://ee.kumuluz.com
MIT License
291 stars 71 forks source link

DynamicFeature #173

Closed eriskooo closed 4 years ago

eriskooo commented 4 years ago

Hello is there any known issue using DynamicFeature ?

I can't inject application scoped bean into DynamicFeature provider

UnsatisfiedDependencyException: There was no object available for injection at SystemInjecteeImpl

Has kumuluz modified lifecycle ?

cen1 commented 4 years ago

Hi. JAX-RS providers are not automatically recognised as part of the CDI context. If you want to inject a CDI bean into a provider try to annotate the provider with @ApplicationScoped.

eriskooo commented 4 years ago

thank you, seems to be change from JEE7 than. anyway, thank you, it's working !