Mule, JBPM and spring framework is one of the best combinations to implement SOA framework. These combinations are very famous among open source and easy to implement. Integration among this technology is always a challenge. I am adding some integration bullet point to make this integration easy.
These file are involved to integration among JBPM, spring and Mule ESB.
1) ApplicationContext.xml – spring framework
2) mule-config.xml – Mule ESB
3) jbpm.cfg.xml – JBPM file
4) All library for spring, JBPM and Mule ESB jar file
mule-config.xml
Add these lines into mule-config.xml file
- <mule xmlns="http://www.mulesource.org/schema/mule/core/2.2"
.....
xmlns:bpm="http://www.mulesource.org/schema/mule/bpm/2.2"
xmlns:spring-context="http://www.springframework.org/schema/context"
xmlns:spring="http://www.springframework.org/schema/beans"
... >
- <spring:beans>
<spring:import resource="applicationContext.xml"/>
</spring:beans>
<spring:bean id="jbpm-ref" parent="jbpm" />
- <bpm:connector name="jBpmConnector" bpms-ref="jbpm-ref"
allowGlobalReceiver="true" allowGlobalDispatcher="true"
processIdField="requestId">
<custom-exception-strategy class="com.vanrish.exception.ApplicationExceptionStrategy"/>
<!—This is custom exception class based on your business logic --><
</bpm:connector>
applicationContext.xml
This is spring specific file. So we are defining jbpm specific configuration to call from mule.
<bean id="jbpm" class="org.mule.transport.bpm.jbpm.JbpmImpl" destroy-method="destroy">
<property name="configuration">
<value>classpath:jbpm.cfg.xml</value>
</property>
property name="processDefinitionsResources">
<list>
<value>classpath:verifyAge.xml</value>
.....
<!-- Define JBPM specific process file -->
</list>
</property>
<property name="createSchema">
<value>false</value>
</property>
</bean>
Rajnish Kumar is CTO of Vanrish Technology with Over 25 years experience in different industries and technology. He is very passionate about innovation and latest technology like APIs, IOT (Internet Of Things), Artificial Intelligence (AI) ecosystem and Cybersecurity. He present his idea in different platforms and help customer to their digital transformation journey.
It would have good , if you could post blog that has step by step implementation
It would have been good , if you could post blog that has step by step implementation
Hi,
Just wanted to check if it will be possible for you to provide the instructions that needs to be followed to configure the above mentioned files?
Thanks & Regards,
Ashish