SlideShare a Scribd company logo
20th Feb 2021
Kolkata MuleSoft Meetup #6
Custom Connector using Java and
XML SDK in MuleSoft
2
Guidelines for our Virtual Meetup
1. Please keep yourself on mute unless you have any query/question
2. You can write down your questions in the chat during the session.
3. Once we are done with the day, don’t forget to provide your
valuable feedback.
3
●About the organizers:
○ Jiten Chawla
○ Brojeswar Roy
○ Roikka Hazarika
Introductions
A SHOW OF HANDS:
Who is new to this Meetup?
Speaker
4
Technical Expertise:
➢ 10+ years of Technical Experience.
➢ 5+ years of Experience in the Integration Domain.
➢ Certified Mulesoft Developer - Level 1.
➢ Certified Integration Developer in Dell Boomi.
➢ Member, Alumni Association IIT Bombay.
➢ Mule Meetup Speaker.
Linkedin Profile for more details: https://www.linkedin.com/in/ashishpardhi/
● What is Connector?
● What is Mule 4 SDK?
○ JAVA SDK
○ XML SDK
● Differences with Mule 3 Devkit
● Module Structure
● Best Practices
● References for existing Connectors
● Implementation Overview
○ Live Demo
Agenda
5
● 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?
6
● 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?
7
● 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
8
Mule 4 Java SDK Module Structure
9
Mule 4 XML SDK Module Structure
10
• 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
11
• 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
12
Demo
Q&A
Thank you
16
Get Ready for the Trivia
Trivia Quiz
17
● Share:
○ Tweet using the hashtag #MuleSoftMeetups
○ Invite your network to join: https://meetups.mulesoft.com/kolkata/
● 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?
Thank you

More Related Content

Similar to Custom Connector using Java and XML SDK in MuleSoft | Kolkata MuleSoft Meetup #6 (20)

Using the Mule 4 SDK to build a connector : MuleSoft Virtual Muleys Meetups
Using the Mule 4 SDK to build a connector  : MuleSoft Virtual Muleys MeetupsUsing the Mule 4 SDK to build a connector  : MuleSoft Virtual Muleys Meetups
Using the Mule 4 SDK to build a connector : MuleSoft Virtual Muleys Meetups
Angel Alberici
 
Mulesoft Meetup Bangalore - 6th March 2021
Mulesoft Meetup Bangalore -  6th March 2021Mulesoft Meetup Bangalore -  6th March 2021
Mulesoft Meetup Bangalore - 6th March 2021
Gaurav Sethi
 
MuleSoft Meetup Charlotte 2 - 2019
MuleSoft Meetup Charlotte 2 - 2019MuleSoft Meetup Charlotte 2 - 2019
MuleSoft Meetup Charlotte 2 - 2019
Subhash Patel
 
MuleSoft Meetup Bangalore - March 6 2021
MuleSoft Meetup Bangalore - March 6 2021MuleSoft Meetup Bangalore - March 6 2021
MuleSoft Meetup Bangalore - March 6 2021
Nagaraju K R
 
Building Custom Connectors Using XML SDK in Mule 4
Building Custom Connectors Using XML SDK in Mule 4Building Custom Connectors Using XML SDK in Mule 4
Building Custom Connectors Using XML SDK in Mule 4
Manish Kumar Yadav
 
Meetup bangalore-may22nd2021
Meetup bangalore-may22nd2021Meetup bangalore-may22nd2021
Meetup bangalore-may22nd2021
pruthviraj krishnam
 
Bhopal_MuleSoft_Meetup_22July2023_Custom Connector using Rest SDK_MuleSoft.pptx
Bhopal_MuleSoft_Meetup_22July2023_Custom Connector using Rest SDK_MuleSoft.pptxBhopal_MuleSoft_Meetup_22July2023_Custom Connector using Rest SDK_MuleSoft.pptx
Bhopal_MuleSoft_Meetup_22July2023_Custom Connector using Rest SDK_MuleSoft.pptx
Preetam Deshmukh
 
Bhopal_MuleSoft_Meetup_22July2023_Custom Connector using Rest SDK_MuleSoft.pptx
Bhopal_MuleSoft_Meetup_22July2023_Custom Connector using Rest SDK_MuleSoft.pptxBhopal_MuleSoft_Meetup_22July2023_Custom Connector using Rest SDK_MuleSoft.pptx
Bhopal_MuleSoft_Meetup_22July2023_Custom Connector using Rest SDK_MuleSoft.pptx
Preetam Deshmukh
 
Mumbai MuleSoft Meetup #21
Mumbai MuleSoft Meetup #21Mumbai MuleSoft Meetup #21
Mumbai MuleSoft Meetup #21
Akshata Sawant
 
MuleSoft Surat Live Demonstration Virtual Meetup#3 - Building JWT OAuth 2.0 C...
MuleSoft Surat Live Demonstration Virtual Meetup#3 - Building JWT OAuth 2.0 C...MuleSoft Surat Live Demonstration Virtual Meetup#3 - Building JWT OAuth 2.0 C...
MuleSoft Surat Live Demonstration Virtual Meetup#3 - Building JWT OAuth 2.0 C...
Jitendra Bafna
 
How to Expand Anypoint Platform's Capabilities by Developing Custom Connectors
How to Expand Anypoint Platform's Capabilities by Developing Custom ConnectorsHow to Expand Anypoint Platform's Capabilities by Developing Custom Connectors
How to Expand Anypoint Platform's Capabilities by Developing Custom Connectors
AaronLieberman5
 
Custom Connector development using Mule SDK
Custom Connector development using Mule SDKCustom Connector development using Mule SDK
Custom Connector development using Mule SDK
Navin Kare
 
Creating a custom connector in mule
Creating a custom connector in muleCreating a custom connector in mule
Creating a custom connector in mule
Achyuta Lakshmi
 
Creating a custom connector in mule
Creating a custom connector in muleCreating a custom connector in mule
Creating a custom connector in mule
Achyuta Lakshmi
 
Connect the Dots: Logging and Custom Connectors
Connect the Dots: Logging and Custom ConnectorsConnect the Dots: Logging and Custom Connectors
Connect the Dots: Logging and Custom Connectors
AaronLieberman5
 
How to build custom connectors in MuleSOft
How to build custom connectors in MuleSOftHow to build custom connectors in MuleSOft
How to build custom connectors in MuleSOft
Santhosh Ramagiri
 
Extending the Mule Runtime - Building a Circuit Breaker Component.pptx
Extending the Mule Runtime - Building a Circuit Breaker Component.pptxExtending the Mule Runtime - Building a Circuit Breaker Component.pptx
Extending the Mule Runtime - Building a Circuit Breaker Component.pptx
Guilherme Pereira Silva
 
Mulesoft kochi meetup 8 custom connector
Mulesoft kochi meetup 8   custom connectorMulesoft kochi meetup 8   custom connector
Mulesoft kochi meetup 8 custom connector
Supriya Pawar
 
Custom connectorsinmule
Custom connectorsinmuleCustom connectorsinmule
Custom connectorsinmule
Ajay Rana
 
Anypointconnectordevkit 160816041722
Anypointconnectordevkit 160816041722Anypointconnectordevkit 160816041722
Anypointconnectordevkit 160816041722
ppts123456
 
Using the Mule 4 SDK to build a connector : MuleSoft Virtual Muleys Meetups
Using the Mule 4 SDK to build a connector  : MuleSoft Virtual Muleys MeetupsUsing the Mule 4 SDK to build a connector  : MuleSoft Virtual Muleys Meetups
Using the Mule 4 SDK to build a connector : MuleSoft Virtual Muleys Meetups
Angel Alberici
 
Mulesoft Meetup Bangalore - 6th March 2021
Mulesoft Meetup Bangalore -  6th March 2021Mulesoft Meetup Bangalore -  6th March 2021
Mulesoft Meetup Bangalore - 6th March 2021
Gaurav Sethi
 
MuleSoft Meetup Charlotte 2 - 2019
MuleSoft Meetup Charlotte 2 - 2019MuleSoft Meetup Charlotte 2 - 2019
MuleSoft Meetup Charlotte 2 - 2019
Subhash Patel
 
MuleSoft Meetup Bangalore - March 6 2021
MuleSoft Meetup Bangalore - March 6 2021MuleSoft Meetup Bangalore - March 6 2021
MuleSoft Meetup Bangalore - March 6 2021
Nagaraju K R
 
Building Custom Connectors Using XML SDK in Mule 4
Building Custom Connectors Using XML SDK in Mule 4Building Custom Connectors Using XML SDK in Mule 4
Building Custom Connectors Using XML SDK in Mule 4
Manish Kumar Yadav
 
Bhopal_MuleSoft_Meetup_22July2023_Custom Connector using Rest SDK_MuleSoft.pptx
Bhopal_MuleSoft_Meetup_22July2023_Custom Connector using Rest SDK_MuleSoft.pptxBhopal_MuleSoft_Meetup_22July2023_Custom Connector using Rest SDK_MuleSoft.pptx
Bhopal_MuleSoft_Meetup_22July2023_Custom Connector using Rest SDK_MuleSoft.pptx
Preetam Deshmukh
 
Bhopal_MuleSoft_Meetup_22July2023_Custom Connector using Rest SDK_MuleSoft.pptx
Bhopal_MuleSoft_Meetup_22July2023_Custom Connector using Rest SDK_MuleSoft.pptxBhopal_MuleSoft_Meetup_22July2023_Custom Connector using Rest SDK_MuleSoft.pptx
Bhopal_MuleSoft_Meetup_22July2023_Custom Connector using Rest SDK_MuleSoft.pptx
Preetam Deshmukh
 
Mumbai MuleSoft Meetup #21
Mumbai MuleSoft Meetup #21Mumbai MuleSoft Meetup #21
Mumbai MuleSoft Meetup #21
Akshata Sawant
 
MuleSoft Surat Live Demonstration Virtual Meetup#3 - Building JWT OAuth 2.0 C...
MuleSoft Surat Live Demonstration Virtual Meetup#3 - Building JWT OAuth 2.0 C...MuleSoft Surat Live Demonstration Virtual Meetup#3 - Building JWT OAuth 2.0 C...
MuleSoft Surat Live Demonstration Virtual Meetup#3 - Building JWT OAuth 2.0 C...
Jitendra Bafna
 
How to Expand Anypoint Platform's Capabilities by Developing Custom Connectors
How to Expand Anypoint Platform's Capabilities by Developing Custom ConnectorsHow to Expand Anypoint Platform's Capabilities by Developing Custom Connectors
How to Expand Anypoint Platform's Capabilities by Developing Custom Connectors
AaronLieberman5
 
Custom Connector development using Mule SDK
Custom Connector development using Mule SDKCustom Connector development using Mule SDK
Custom Connector development using Mule SDK
Navin Kare
 
Creating a custom connector in mule
Creating a custom connector in muleCreating a custom connector in mule
Creating a custom connector in mule
Achyuta Lakshmi
 
Creating a custom connector in mule
Creating a custom connector in muleCreating a custom connector in mule
Creating a custom connector in mule
Achyuta Lakshmi
 
Connect the Dots: Logging and Custom Connectors
Connect the Dots: Logging and Custom ConnectorsConnect the Dots: Logging and Custom Connectors
Connect the Dots: Logging and Custom Connectors
AaronLieberman5
 
How to build custom connectors in MuleSOft
How to build custom connectors in MuleSOftHow to build custom connectors in MuleSOft
How to build custom connectors in MuleSOft
Santhosh Ramagiri
 
Extending the Mule Runtime - Building a Circuit Breaker Component.pptx
Extending the Mule Runtime - Building a Circuit Breaker Component.pptxExtending the Mule Runtime - Building a Circuit Breaker Component.pptx
Extending the Mule Runtime - Building a Circuit Breaker Component.pptx
Guilherme Pereira Silva
 
Mulesoft kochi meetup 8 custom connector
Mulesoft kochi meetup 8   custom connectorMulesoft kochi meetup 8   custom connector
Mulesoft kochi meetup 8 custom connector
Supriya Pawar
 
Custom connectorsinmule
Custom connectorsinmuleCustom connectorsinmule
Custom connectorsinmule
Ajay Rana
 
Anypointconnectordevkit 160816041722
Anypointconnectordevkit 160816041722Anypointconnectordevkit 160816041722
Anypointconnectordevkit 160816041722
ppts123456
 

Recently uploaded (20)

[HIFLUX] Lok Fitting&Valve Catalog 2025 (Eng)
[HIFLUX] Lok Fitting&Valve Catalog 2025 (Eng)[HIFLUX] Lok Fitting&Valve Catalog 2025 (Eng)
[HIFLUX] Lok Fitting&Valve Catalog 2025 (Eng)
하이플럭스 / HIFLUX Co., Ltd.
 
Silent-Aire Quality Orientation - OFCI_GC - EVAP Unit REV2.pdf
Silent-Aire Quality Orientation - OFCI_GC - EVAP Unit REV2.pdfSilent-Aire Quality Orientation - OFCI_GC - EVAP Unit REV2.pdf
Silent-Aire Quality Orientation - OFCI_GC - EVAP Unit REV2.pdf
EfrainGarrilloRuiz1
 
Java Programming Language: until 2025 and beyond
Java Programming Language: until 2025 and beyondJava Programming Language: until 2025 and beyond
Java Programming Language: until 2025 and beyond
arzu TR
 
하이플럭스 락피팅 카달로그 2025 (Lok Fitting Catalog 2025)
하이플럭스 락피팅 카달로그 2025 (Lok Fitting Catalog 2025)하이플럭스 락피팅 카달로그 2025 (Lok Fitting Catalog 2025)
하이플럭스 락피팅 카달로그 2025 (Lok Fitting Catalog 2025)
하이플럭스 / HIFLUX Co., Ltd.
 
2. CT M35 Grade Concrete Mix design ppt.pdf
2. CT M35 Grade Concrete Mix design  ppt.pdf2. CT M35 Grade Concrete Mix design  ppt.pdf
2. CT M35 Grade Concrete Mix design ppt.pdf
smghumare
 
PPT on Grid resilience against Natural disasters.pptx
PPT on Grid resilience against Natural disasters.pptxPPT on Grid resilience against Natural disasters.pptx
PPT on Grid resilience against Natural disasters.pptx
manesumit66
 
Unit 6 Message Digest Message Digest Message Digest
Unit 6  Message Digest  Message Digest  Message DigestUnit 6  Message Digest  Message Digest  Message Digest
Unit 6 Message Digest Message Digest Message Digest
ChatanBawankar
 
All about the Snail Power Catalog Product 2025
All about the Snail Power Catalog  Product 2025All about the Snail Power Catalog  Product 2025
All about the Snail Power Catalog Product 2025
kstgroupvn
 
Fresh concrete Workability Measurement
Fresh concrete  Workability  MeasurementFresh concrete  Workability  Measurement
Fresh concrete Workability Measurement
SasiVarman5
 
Filters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility ApplicationsFilters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility Applications
Mathias Magdowski
 
Introduction to Machine Vision by Cognex
Introduction to Machine Vision by CognexIntroduction to Machine Vision by Cognex
Introduction to Machine Vision by Cognex
RicardoCunha203173
 
Video Games and Artificial-Realities.pptx
Video Games and Artificial-Realities.pptxVideo Games and Artificial-Realities.pptx
Video Games and Artificial-Realities.pptx
HadiBadri1
 
Proposed EPA Municipal Waste Combustor Rule
Proposed EPA Municipal Waste Combustor RuleProposed EPA Municipal Waste Combustor Rule
Proposed EPA Municipal Waste Combustor Rule
AlvaroLinero2
 
DE-UNIT-V MEMORY DEVICES AND DIGITAL INTEGRATED CIRCUITS
DE-UNIT-V MEMORY DEVICES AND DIGITAL INTEGRATED CIRCUITSDE-UNIT-V MEMORY DEVICES AND DIGITAL INTEGRATED CIRCUITS
DE-UNIT-V MEMORY DEVICES AND DIGITAL INTEGRATED CIRCUITS
Sridhar191373
 
Department of Environment (DOE) Mix Design with Fly Ash.
Department of Environment (DOE) Mix Design with Fly Ash.Department of Environment (DOE) Mix Design with Fly Ash.
Department of Environment (DOE) Mix Design with Fly Ash.
MdManikurRahman
 
Main Menu The metals-black-book-ferrous-metals
Main Menu The metals-black-book-ferrous-metalsMain Menu The metals-black-book-ferrous-metals
Main Menu The metals-black-book-ferrous-metals
Ricardo Akerman
 
Kevin Corke Spouse Revealed A Deep Dive Into His Private Life.pdf
Kevin Corke Spouse Revealed A Deep Dive Into His Private Life.pdfKevin Corke Spouse Revealed A Deep Dive Into His Private Life.pdf
Kevin Corke Spouse Revealed A Deep Dive Into His Private Life.pdf
Medicoz Clinic
 
The Computer use in our modern lives .pptx
The Computer use in our modern lives .pptxThe Computer use in our modern lives .pptx
The Computer use in our modern lives .pptx
TamerHamed13
 
Introduction-to-Prestressed-Concrete.pdf
Introduction-to-Prestressed-Concrete.pdfIntroduction-to-Prestressed-Concrete.pdf
Introduction-to-Prestressed-Concrete.pdf
Bharti Shinde
 
ENERGY STORING DEVICES-Primary Battery.pdf
ENERGY STORING DEVICES-Primary Battery.pdfENERGY STORING DEVICES-Primary Battery.pdf
ENERGY STORING DEVICES-Primary Battery.pdf
TAMILISAI R
 
Silent-Aire Quality Orientation - OFCI_GC - EVAP Unit REV2.pdf
Silent-Aire Quality Orientation - OFCI_GC - EVAP Unit REV2.pdfSilent-Aire Quality Orientation - OFCI_GC - EVAP Unit REV2.pdf
Silent-Aire Quality Orientation - OFCI_GC - EVAP Unit REV2.pdf
EfrainGarrilloRuiz1
 
Java Programming Language: until 2025 and beyond
Java Programming Language: until 2025 and beyondJava Programming Language: until 2025 and beyond
Java Programming Language: until 2025 and beyond
arzu TR
 
하이플럭스 락피팅 카달로그 2025 (Lok Fitting Catalog 2025)
하이플럭스 락피팅 카달로그 2025 (Lok Fitting Catalog 2025)하이플럭스 락피팅 카달로그 2025 (Lok Fitting Catalog 2025)
하이플럭스 락피팅 카달로그 2025 (Lok Fitting Catalog 2025)
하이플럭스 / HIFLUX Co., Ltd.
 
2. CT M35 Grade Concrete Mix design ppt.pdf
2. CT M35 Grade Concrete Mix design  ppt.pdf2. CT M35 Grade Concrete Mix design  ppt.pdf
2. CT M35 Grade Concrete Mix design ppt.pdf
smghumare
 
PPT on Grid resilience against Natural disasters.pptx
PPT on Grid resilience against Natural disasters.pptxPPT on Grid resilience against Natural disasters.pptx
PPT on Grid resilience against Natural disasters.pptx
manesumit66
 
Unit 6 Message Digest Message Digest Message Digest
Unit 6  Message Digest  Message Digest  Message DigestUnit 6  Message Digest  Message Digest  Message Digest
Unit 6 Message Digest Message Digest Message Digest
ChatanBawankar
 
All about the Snail Power Catalog Product 2025
All about the Snail Power Catalog  Product 2025All about the Snail Power Catalog  Product 2025
All about the Snail Power Catalog Product 2025
kstgroupvn
 
Fresh concrete Workability Measurement
Fresh concrete  Workability  MeasurementFresh concrete  Workability  Measurement
Fresh concrete Workability Measurement
SasiVarman5
 
Filters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility ApplicationsFilters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility Applications
Mathias Magdowski
 
Introduction to Machine Vision by Cognex
Introduction to Machine Vision by CognexIntroduction to Machine Vision by Cognex
Introduction to Machine Vision by Cognex
RicardoCunha203173
 
Video Games and Artificial-Realities.pptx
Video Games and Artificial-Realities.pptxVideo Games and Artificial-Realities.pptx
Video Games and Artificial-Realities.pptx
HadiBadri1
 
Proposed EPA Municipal Waste Combustor Rule
Proposed EPA Municipal Waste Combustor RuleProposed EPA Municipal Waste Combustor Rule
Proposed EPA Municipal Waste Combustor Rule
AlvaroLinero2
 
DE-UNIT-V MEMORY DEVICES AND DIGITAL INTEGRATED CIRCUITS
DE-UNIT-V MEMORY DEVICES AND DIGITAL INTEGRATED CIRCUITSDE-UNIT-V MEMORY DEVICES AND DIGITAL INTEGRATED CIRCUITS
DE-UNIT-V MEMORY DEVICES AND DIGITAL INTEGRATED CIRCUITS
Sridhar191373
 
Department of Environment (DOE) Mix Design with Fly Ash.
Department of Environment (DOE) Mix Design with Fly Ash.Department of Environment (DOE) Mix Design with Fly Ash.
Department of Environment (DOE) Mix Design with Fly Ash.
MdManikurRahman
 
Main Menu The metals-black-book-ferrous-metals
Main Menu The metals-black-book-ferrous-metalsMain Menu The metals-black-book-ferrous-metals
Main Menu The metals-black-book-ferrous-metals
Ricardo Akerman
 
Kevin Corke Spouse Revealed A Deep Dive Into His Private Life.pdf
Kevin Corke Spouse Revealed A Deep Dive Into His Private Life.pdfKevin Corke Spouse Revealed A Deep Dive Into His Private Life.pdf
Kevin Corke Spouse Revealed A Deep Dive Into His Private Life.pdf
Medicoz Clinic
 
The Computer use in our modern lives .pptx
The Computer use in our modern lives .pptxThe Computer use in our modern lives .pptx
The Computer use in our modern lives .pptx
TamerHamed13
 
Introduction-to-Prestressed-Concrete.pdf
Introduction-to-Prestressed-Concrete.pdfIntroduction-to-Prestressed-Concrete.pdf
Introduction-to-Prestressed-Concrete.pdf
Bharti Shinde
 
ENERGY STORING DEVICES-Primary Battery.pdf
ENERGY STORING DEVICES-Primary Battery.pdfENERGY STORING DEVICES-Primary Battery.pdf
ENERGY STORING DEVICES-Primary Battery.pdf
TAMILISAI R
 

Custom Connector using Java and XML SDK in MuleSoft | Kolkata MuleSoft Meetup #6

  • 1. 20th Feb 2021 Kolkata MuleSoft Meetup #6 Custom Connector using Java and XML SDK in MuleSoft
  • 2. 2 Guidelines for our Virtual Meetup 1. Please keep yourself on mute unless you have any query/question 2. You can write down your questions in the chat during the session. 3. Once we are done with the day, don’t forget to provide your valuable feedback.
  • 3. 3 ●About the organizers: ○ Jiten Chawla ○ Brojeswar Roy ○ Roikka Hazarika Introductions A SHOW OF HANDS: Who is new to this Meetup?
  • 4. Speaker 4 Technical Expertise: ➢ 10+ years of Technical Experience. ➢ 5+ years of Experience in the Integration Domain. ➢ Certified Mulesoft Developer - Level 1. ➢ Certified Integration Developer in Dell Boomi. ➢ Member, Alumni Association IIT Bombay. ➢ Mule Meetup Speaker. Linkedin Profile for more details: https://www.linkedin.com/in/ashishpardhi/
  • 5. ● What is Connector? ● What is Mule 4 SDK? ○ JAVA SDK ○ XML SDK ● Differences with Mule 3 Devkit ● Module Structure ● Best Practices ● References for existing Connectors ● Implementation Overview ○ Live Demo Agenda 5
  • 6. ● 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? 6
  • 7. ● 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? 7
  • 8. ● 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 8
  • 9. Mule 4 Java SDK Module Structure 9
  • 10. Mule 4 XML SDK Module Structure 10
  • 11. • 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 11
  • 12. • 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 12
  • 13. Demo
  • 14. Q&A
  • 16. 16 Get Ready for the Trivia Trivia Quiz
  • 17. 17 ● Share: ○ Tweet using the hashtag #MuleSoftMeetups ○ Invite your network to join: https://meetups.mulesoft.com/kolkata/ ● Feedback: ○ Fill out the survey feedback and suggest topics for upcoming events ○ Contact MuleSoft at [email protected] for ways to improve the program What’s next?