Is there any way to create a custom mediator that access existing osgi services?
Basically I already have some functionality published as OSGi Services, that I want to be able to call from a custom mediator, but I can't find any way to get access to them. While the class mediator allows for creating instances of classes exposed through osgi, it doesn't appear to allow for the injection of other osgi services.
If you cannot do it using the class mediator, you can write a complete mediator. It will allow your mediator to access OSGi services as other mediators.
These three blog posts describes how to create a such full featured mediator for WSO2 ESB.
And this is how to create a such mediator using WSO2 Developer Studio.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With