Using OSGi Services in a Mediator
Is there a way to create a custom mediator that will access existing osgi services?
Basically I already have functionality posted as OSGi services that I want to have in order to call from a custom broker, but I can't find a way to access them. While class mediator allows instantiation of classes exposed via osgi, it doesn't seem to allow injecting other osgi services.
+3
jmo
source
to share
1 answer
If you cannot do this with a class mediator, you can write a complete mediator. This will allow your reseller to access OSGi services as other resellers.
These three blog posts describe how to create such a fully functional mediator for WSO2 ESB.
- Part 1
- Part 2
- Part 3
And this is how to create such a pick using WSO2 Developer Studio.
+1
Maninda
source
to share