Posts

Showing posts from July, 2019

Calling Mule4 flows from Java code

Image
Invoke Mule 4 flows from Java code. [ Note: Please use the below approach only if there are no alternatives left. Drawbacks of the approach- 1) If the Mule flow called from Java returns a stream this approach won't work 2)  Affects performance] Step 1: Include the below in the pom.xml of the application             ....       ....       </ properties >       < parent >              < groupId > org.mule.extensions </ groupId >              < artifactId > mule-modules-parent </ artifactId >              < version > 1.1.1 </ version >       </ parent >       < build >             ....             ....              Step 2: In the beans.xml referenced in spring module < spring:config name = "Spring_Config" doc:name = "Spring Config" doc:id = "6f88cc78-710a-4963-b90d-3b512a1e4365" files = "beans.xml" /> beans.xml- &