Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using OSGi services in a mediator

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.

like image 919
jmo Avatar asked Dec 21 '25 16:12

jmo


1 Answers

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.

  1. Part 1
  2. Part 2
  3. Part 3

And this is how to create a such mediator using WSO2 Developer Studio.

like image 67
Maninda Avatar answered Dec 24 '25 11:12

Maninda



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!