2. What is all about?
This are collection of the things that I learn using Mule ESB in our integration
projects.
3. 1. Integration is Hard
There are no other way to describe it, integration is just hard especially dealing
with different endpoints/api.
4. 2. Mavenize your project always
There is no easier way to manage your project than to mavenize it,
PLEASE DO NOT USE JAR FILES TO BE INCLUDED IN YOUR PROJECT
9. 5. In handling JSON
Common Problems
1. Garbled JSON or one liner json, use a
formatter(https://jsonformatter.curiousconcept.com/)
2. JSON to POJO(http://www.jsonschema2pojo.org/)
10. 6. Use Parse Template for simple
payload construction
Parse template is best solution if your going to construct payload such as json, and MEL works in template.
11. 7. If possible, use the Null Session
Handler for JMS and HTTP
Connector
We, encountered a problem with an third party endpoint and it is return an http status of 500. With that error, it states
that the request limit has been reached and we found out that we are sending the whole X_MULE_SESSION. We saw this
using an interceptor plugge to ESB Server.
12.
13. 8. Setting an environment in ESB
Server
Usually we set a variable in the ESB Server to identify where environment we are in.
17. 10. Complex Logic for Choice?
Admit it, most of the time that our logic is complex for choice component based on the current
payload.
Solution.
Use a utility class to handle the logic for the choice.
19. 12. Have an complex XML but no
schema?
Most of the time we have an xml but we don’t have an schema to be used in JAXB.
Solution:
http://www.freeformatter.com/xsd-generator.html#ad-output