Working example on Spring Mediator in WSO2 ESB 4.6.0

后端 未结 4 1938
情话喂你
情话喂你 2021-01-16 11:24

Hi i am working on Spring Mediator in WSO2 ESB 4.6.0, using this and this tutorial

I am getting the Error as follows:

ERROR - SpringMediator Cannot l         


        
4条回答
  •  有刺的猬
    2021-01-16 12:14

    These are the steps for spring mediator in brief as Isuru explained above

    1. Create spring mediator library by extending AbstractMediator

    2. Copy into ESB_HOME/repository/components/lib

    3. Re-start the server

    4. Register springtest.xml file in the Registry (http://madhukaudantha.blogspot.com/2012/07/wso2-esb-proxy-from-registry.html up to step 5 as Isuru explained)

    5. Then, create a Custom proxy with Spring Mediator.

    In there, add Bean as “springtest” (defined bean id for the mediator class within the xml file)

    Select the Key as where the configuration registry file stored according to the 4th step.

    Ex : If you have stored that springtest.xml file into path “_system/config/repository/”
    Select Key as “/_system/config/repository/springtest.xml”

    Note:

    • Verify in ESB_HOME/repository/components/dropins folder for OSGI bundle of the mediator of the created spring mediator library which is copied into ESB_HOME/repository/components/lib. If it is not there after restarting server, it may be a problem in created mediator library.

    • As well as, put unique package name for the mediator class to avoid conflicts with other mediator class in ESB_HOME/repository/components/lib.

    • Keep in mind to add unique bean id for the .xml file which is registered in the registry when you registered .xml file in 4th step.

提交回复
热议问题