6. ● What is Connector?
● What is Mule 4 SDK?
○ JAVA SDK
○ XML SDK
● Differences with Mule 3 Devkit
● A high-level overview of Java-based SDK
● Best Practices
● References for existing Connectors
● Implementation Overview
○ Live Demo
Agenda
6
7. ● Bring target system in Mule Runtime.
● Mechanism to extend Mule 4 Runtime by creating new modules.
● Mulesoft has a range of inbuilt connector.
○ SFTP, FTP, JDBC etc
○ SAAS systems like Salesforce
○ Google and AWS services, and many more.
● Modules with custom functionality, such as the Validations Module.
● Mechanism types
○ Java Mule SDK : advanced, feature-rich
○ XML SDK : provides only outbound operations and doesn’t support recursive calls
What is Connector?
7
8. ● The Mule SDK allows Mule developers to create modules
that can be used just like any other module in Mule (e.g.,
HTTP module, Java module, Validation module).
● Modules enable reuse, offload complexity and deliver
consistent behavior.
● Mule Extensions API
○ This API is a well-defined contract for how modules can
interact with the Mule Runtime.
What is the Mule SDK?
8
9. ● DevKit is not available for Mule 4.
● The SDK is not a code generator. The built module does not contain any generated
code (not even the XSD schema).
● Compared to DevKit, the SDK is more powerful and supports more features:
○ Transactions
○ Request-response message sources
○ Dynamic configurations
○ Routers
○ Non-blocking operations
○ Classloading isolation
○ Enhanced interoperability with runtime services
Mule4 SDK vs Mule3 Devkit
9
14. • It should be generic - No Business specific use-case
• It should be thread safe
• No rely on flow variables(independent of flow)
• No dependency on Message attributes
• Mule context should not be accessed
• Don’t use system variable/annotation names(Mule skip them)
• Add Data Sense support(Optional but most recommended)
Best Practices
14
15. • Few out of many but they are complex to understand[By Mulesoft]
– https://github.com/mulesoft/mule-http-connector
– https://github.com/mulesoft/mule-email-connector
• Few simple to understand[Not by Mulesoft]
– https://github.com/mule-org-uk/docu-connector
– https://github.com/mulesoft-consulting/json-logger
– https://github.com/stackmerge/CurrencyConverterExtension
References to existing connectors
15
18. Get ready to WIN a Special Gift from MuleSoft Community
Quiz Time
19. Question 1
Which SDK used to built Salesforce Connector?
A: JAVA SDK
B: XML SDK
C: DevKit
D: JSON
19
20. Question 2
Which Mule version connector supporting transaction?
A: Mule 3
B: Mule 4
C: Both
D: None of the above
20
21. Question 3
Which Operation(s) is/are supported by XML SDK?
A: Inbound Operation
B: Outbound Operation
C: Both
D: None of the above
21
22. 22
● Be a Helping Hand
○ Contact the Meetup Organizers if you want to be Speaker in upcoming events
○ Use https://meetups.mulesoft.com/faridabad/ link to contact to Organizers
● Share:
○ Tweet using the hashtag #MuleSoftMeetups #FaridabadMeetup #MuleSoft
#MuleMeetup
○ Invite your network to join: https://meetups.mulesoft.com/faridabad/
● Feedback:
○ Fill out the survey feedback and suggest topics for upcoming events
○ Contact MuleSoft at meetups@mulesoft.com for ways to improve the program
What’s next?