How do I can call a jar file from wso2 -


i new esb wso2 , need call .jar wso2 parameters. think need create endpoint , call jar file. right?

thanks all.

i have done using script mediator (groovy language). within groovy script called custom method passing payload json , saved return value of method payload. used json payload, feel free leave default xml. can pass parameters, not payload, custom method.

<script language="groovy">     println "---------- start java call -----------"     mc.setpayloadjson(new my.own.package.myclass().mymethod(mc.getpayloadjson()))     println "----------- end java call ----------" </script> 

added custom jar, json , groovy jars under {esb_root}/repository/components/lib , bounced wso2 esb.

there other ways achieve need.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -