SlideShare a Scribd company logo
Creating a Custom
Connector in Mule
By
Achyuta Laxmi
Overview
 What is Mule Connector?
 Development Steps
 Setup to create Connector
 Determine resource access
 Choose an authentication mechanism
 Choose the connector’s data model
 Add connector @ attribute annotations
 Code tests
 Document your connector
What is Mule Connector?
A MuleSoft connector is an extension module to the MuleSoft Anypoint Platform, with
modules that ease the interconnection of third-party systems and APIs with Mule
applications.
Development Steps
Step 1:
To develop a custom connector one need to install:
Java JDK version 7,
Apache Maven,
Anypoint Studio, and
Anypoint DevKit Plugin to build and test your connector.
You can develop a connector using Windows, Mac, or Linux.
Setup to create Connector
New Connector :
•Create an Anypoint project -
•Set up Anypoint Studio and install the connector plugin.
Existing Connector:
•Click File > Import > Anypoint Studio > Anypoint Connector Project from External
Location, choose a URL or a .zip file, and complete the wizard to locate and import the
project.
Determine resource access
Determine resource access - Each resource has a different access method, such as
REST,
SOAP,
FTP, or
the Java SDK features.
Choose an authentication mechanism
Choose an authentication mechanism -
Mule supports OAuth V1 or V2, and username and password authentication (known
as connection management), which can be used for protocols such as API Key, SAML,
NTLM, Kerberos, or LDAP.
Choose the connector’s data model
Choose the connector’s data model - Models can be static Java objects or dynamic
objects.
You can use
DataSense - Determine what information the target resource expects.
Add connector @ attribute annotations
Add connector @ attribute annotations -
Create code for your connector containing the @ attributes that Mule uses to designate
the important parts of your connector.
Code tests
Code tests - Tests can be unit tests, functional tests, and Studio interoperability tests.
While DevKit does not enforce writing tests, you should develop unit and functional tests
for your connector as part of the development process. A connector should not be
considered production-ready without a proper test suite.
Document your connector
Document your connector -
MuleSoft provides a template that helps you fill in the blanks to create documentation
to help your staff and to help others understand the features and use of your
connector.
Package your connector
Package your connector
When your connector is ready for release to a broad audience, take the following
additional steps to ensure user success:
• Create a license agreement for your connector.
• Develop end-to-end walkthroughs to illustrate performing common use cases with
your connector.
• Create a compressed file for distribution.
Conclusion
MuleSoft’s program certifies and publishes third party connectors to be distributed
through Anypoint Exchange.
References:
https://docs.mulesoft.com/anypoint-connector-devkit/v/3.7/
Thank you

More Related Content

What's hot (20)

PPTX
Cloud hub architecture
Shanky Gupta
 
PPTX
Troubleshooting mule
Son Nguyen
 
PPTX
Mule: Java Transformer
Sulthony Hartanto
 
ODP
Anypoint platform architecture and components
D.Rajesh Kumar
 
PPTX
File component in mule
Rajkattamuri
 
PPTX
Running mule as worker role on azure
Son Nguyen
 
PPTX
Java in Mule
Anand kalla
 
PPTX
Cloudhub fabric
Shanky Gupta
 
ODP
Mule maven
JavierMarRas
 
PPTX
Polyglot Mule Transformers
Sulthony Hartanto
 
PPTX
Using maven with mule
Sindhu VL
 
PPTX
Sharing Resources - Mule
Anil Kumar V
 
PPTX
Message properties component in mule
javeed_mhd
 
PPTX
Filter expression in mule
Rajkattamuri
 
PPTX
Mule Esb
javeed_mhd
 
PPT
Mule architecture
Khasim Saheb
 
PDF
SpringPeople Introduction to Spring Framework
SpringPeople
 
PPTX
Mule management console Architecture
Shanky Gupta
 
PPTX
Generating Documentation for Mule ESB Application
Rupesh Sinha
 
PPTX
Mule esb made system integration easy
javeed_mhd
 
Cloud hub architecture
Shanky Gupta
 
Troubleshooting mule
Son Nguyen
 
Mule: Java Transformer
Sulthony Hartanto
 
Anypoint platform architecture and components
D.Rajesh Kumar
 
File component in mule
Rajkattamuri
 
Running mule as worker role on azure
Son Nguyen
 
Java in Mule
Anand kalla
 
Cloudhub fabric
Shanky Gupta
 
Mule maven
JavierMarRas
 
Polyglot Mule Transformers
Sulthony Hartanto
 
Using maven with mule
Sindhu VL
 
Sharing Resources - Mule
Anil Kumar V
 
Message properties component in mule
javeed_mhd
 
Filter expression in mule
Rajkattamuri
 
Mule Esb
javeed_mhd
 
Mule architecture
Khasim Saheb
 
SpringPeople Introduction to Spring Framework
SpringPeople
 
Mule management console Architecture
Shanky Gupta
 
Generating Documentation for Mule ESB Application
Rupesh Sinha
 
Mule esb made system integration easy
javeed_mhd
 

Viewers also liked (9)

PPTX
Anypoint platform for API's glossary
Achyuta Lakshmi
 
PPT
Introduction to es bs mule
Achyuta Lakshmi
 
PPTX
Mule management console
Achyuta Lakshmi
 
PPTX
The anypoint platform for API's
Achyuta Lakshmi
 
PPTX
Using seda in mule
Anirban Sen Chowdhary
 
PPTX
Creating a custom connector in mule
Achyuta Lakshmi
 
PPTX
Anypoint b2 b
Achyuta Lakshmi
 
PPTX
Mule high availability (ha) cluster
Achyuta Lakshmi
 
PPT
Mulesoft ppt
Achyuta Lakshmi
 
Anypoint platform for API's glossary
Achyuta Lakshmi
 
Introduction to es bs mule
Achyuta Lakshmi
 
Mule management console
Achyuta Lakshmi
 
The anypoint platform for API's
Achyuta Lakshmi
 
Using seda in mule
Anirban Sen Chowdhary
 
Creating a custom connector in mule
Achyuta Lakshmi
 
Anypoint b2 b
Achyuta Lakshmi
 
Mule high availability (ha) cluster
Achyuta Lakshmi
 
Mulesoft ppt
Achyuta Lakshmi
 
Ad

Similar to Creating a custom connector in mule (20)

PPT
Anypoint connector dev kit
himajareddys
 
PPT
Mule anypoint connector
D.Rajesh Kumar
 
PPT
Mule tcat server
D.Rajesh Kumar
 
PPTX
Anypoint connector dev kit
Son Nguyen
 
PPTX
Anypointconnectordevkit 160816041722
ppts123456
 
PPTX
Anypoint connector Roadmap
danishsm84
 
PDF
Anypoint Connector DevKit - Part I
RAMANAN T D
 
PDF
Extend The Power Platform with Custom Connectors - CollabDays NL 2022
Daniel Laskewitz
 
PPTX
Basics of Mulesoft Anypoint connector
akshay yeluru
 
PPTX
Anypoint connector basics
Ramakrishna kapa
 
PPTX
MuleSoft Meetup Bangalore - March 6 2021
Nagaraju K R
 
PPTX
Mulesoft Meetup Bangalore - 6th March 2021
Gaurav Sethi
 
PPTX
MuleSoft Meetup Charlotte 2 - 2019
Subhash Patel
 
PPTX
Mulesoft kochi meetup 8 custom connector
Supriya Pawar
 
PPTX
Opendaylight SDN Controller
Sumit Arora
 
PPTX
varun JENKINS.pptx
VgPolampalli
 
PPTX
Azure DevOps Pipeline setup for Mule APIs #36
MysoreMuleSoftMeetup
 
PPTX
Spring Web Presentation - Framework and Its Ecosystem
horiadobrin
 
PPT
Presentation 1 open source tools in continuous integration environment v1.0
Jasmine Conseil
 
Anypoint connector dev kit
himajareddys
 
Mule anypoint connector
D.Rajesh Kumar
 
Mule tcat server
D.Rajesh Kumar
 
Anypoint connector dev kit
Son Nguyen
 
Anypointconnectordevkit 160816041722
ppts123456
 
Anypoint connector Roadmap
danishsm84
 
Anypoint Connector DevKit - Part I
RAMANAN T D
 
Extend The Power Platform with Custom Connectors - CollabDays NL 2022
Daniel Laskewitz
 
Basics of Mulesoft Anypoint connector
akshay yeluru
 
Anypoint connector basics
Ramakrishna kapa
 
MuleSoft Meetup Bangalore - March 6 2021
Nagaraju K R
 
Mulesoft Meetup Bangalore - 6th March 2021
Gaurav Sethi
 
MuleSoft Meetup Charlotte 2 - 2019
Subhash Patel
 
Mulesoft kochi meetup 8 custom connector
Supriya Pawar
 
Opendaylight SDN Controller
Sumit Arora
 
varun JENKINS.pptx
VgPolampalli
 
Azure DevOps Pipeline setup for Mule APIs #36
MysoreMuleSoftMeetup
 
Spring Web Presentation - Framework and Its Ecosystem
horiadobrin
 
Presentation 1 open source tools in continuous integration environment v1.0
Jasmine Conseil
 
Ad

Recently uploaded (20)

PPTX
Java Native Memory Leaks: The Hidden Villain Behind JVM Performance Issues
Tier1 app
 
PDF
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
PDF
HiHelloHR – Simplify HR Operations for Modern Workplaces
HiHelloHR
 
PDF
Efficient, Automated Claims Processing Software for Insurers
Insurance Tech Services
 
PPTX
Platform for Enterprise Solution - Java EE5
abhishekoza1981
 
PDF
GetOnCRM Speeds Up Agentforce 3 Deployment for Enterprise AI Wins.pdf
GetOnCRM Solutions
 
PPTX
Revolutionizing Code Modernization with AI
KrzysztofKkol1
 
PDF
Salesforce CRM Services.VALiNTRY360
VALiNTRY360
 
PDF
Revenue streams of the Wazirx clone script.pdf
aaronjeffray
 
PDF
Alarm in Android-Scheduling Timed Tasks Using AlarmManager in Android.pdf
Nabin Dhakal
 
PDF
Alexander Marshalov - How to use AI Assistants with your Monitoring system Q2...
VictoriaMetrics
 
PPTX
Hardware(Central Processing Unit ) CU and ALU
RizwanaKalsoom2
 
PDF
Letasoft Sound Booster 1.12.0.538 Crack Download+ Product Key [Latest]
HyperPc soft
 
PDF
Executive Business Intelligence Dashboards
vandeslie24
 
PDF
Thread In Android-Mastering Concurrency for Responsive Apps.pdf
Nabin Dhakal
 
PPTX
Writing Better Code - Helping Developers make Decisions.pptx
Lorraine Steyn
 
PDF
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
PDF
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pdf
Varsha Nayak
 
PDF
Beyond Binaries: Understanding Diversity and Allyship in a Global Workplace -...
Imma Valls Bernaus
 
PPTX
Human Resources Information System (HRIS)
Amity University, Patna
 
Java Native Memory Leaks: The Hidden Villain Behind JVM Performance Issues
Tier1 app
 
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
HiHelloHR – Simplify HR Operations for Modern Workplaces
HiHelloHR
 
Efficient, Automated Claims Processing Software for Insurers
Insurance Tech Services
 
Platform for Enterprise Solution - Java EE5
abhishekoza1981
 
GetOnCRM Speeds Up Agentforce 3 Deployment for Enterprise AI Wins.pdf
GetOnCRM Solutions
 
Revolutionizing Code Modernization with AI
KrzysztofKkol1
 
Salesforce CRM Services.VALiNTRY360
VALiNTRY360
 
Revenue streams of the Wazirx clone script.pdf
aaronjeffray
 
Alarm in Android-Scheduling Timed Tasks Using AlarmManager in Android.pdf
Nabin Dhakal
 
Alexander Marshalov - How to use AI Assistants with your Monitoring system Q2...
VictoriaMetrics
 
Hardware(Central Processing Unit ) CU and ALU
RizwanaKalsoom2
 
Letasoft Sound Booster 1.12.0.538 Crack Download+ Product Key [Latest]
HyperPc soft
 
Executive Business Intelligence Dashboards
vandeslie24
 
Thread In Android-Mastering Concurrency for Responsive Apps.pdf
Nabin Dhakal
 
Writing Better Code - Helping Developers make Decisions.pptx
Lorraine Steyn
 
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pdf
Varsha Nayak
 
Beyond Binaries: Understanding Diversity and Allyship in a Global Workplace -...
Imma Valls Bernaus
 
Human Resources Information System (HRIS)
Amity University, Patna
 

Creating a custom connector in mule

  • 1. Creating a Custom Connector in Mule By Achyuta Laxmi
  • 2. Overview  What is Mule Connector?  Development Steps  Setup to create Connector  Determine resource access  Choose an authentication mechanism  Choose the connector’s data model  Add connector @ attribute annotations  Code tests  Document your connector
  • 3. What is Mule Connector? A MuleSoft connector is an extension module to the MuleSoft Anypoint Platform, with modules that ease the interconnection of third-party systems and APIs with Mule applications.
  • 4. Development Steps Step 1: To develop a custom connector one need to install: Java JDK version 7, Apache Maven, Anypoint Studio, and Anypoint DevKit Plugin to build and test your connector. You can develop a connector using Windows, Mac, or Linux.
  • 5. Setup to create Connector New Connector : •Create an Anypoint project - •Set up Anypoint Studio and install the connector plugin. Existing Connector: •Click File > Import > Anypoint Studio > Anypoint Connector Project from External Location, choose a URL or a .zip file, and complete the wizard to locate and import the project.
  • 6. Determine resource access Determine resource access - Each resource has a different access method, such as REST, SOAP, FTP, or the Java SDK features.
  • 7. Choose an authentication mechanism Choose an authentication mechanism - Mule supports OAuth V1 or V2, and username and password authentication (known as connection management), which can be used for protocols such as API Key, SAML, NTLM, Kerberos, or LDAP.
  • 8. Choose the connector’s data model Choose the connector’s data model - Models can be static Java objects or dynamic objects. You can use DataSense - Determine what information the target resource expects.
  • 9. Add connector @ attribute annotations Add connector @ attribute annotations - Create code for your connector containing the @ attributes that Mule uses to designate the important parts of your connector.
  • 10. Code tests Code tests - Tests can be unit tests, functional tests, and Studio interoperability tests. While DevKit does not enforce writing tests, you should develop unit and functional tests for your connector as part of the development process. A connector should not be considered production-ready without a proper test suite.
  • 11. Document your connector Document your connector - MuleSoft provides a template that helps you fill in the blanks to create documentation to help your staff and to help others understand the features and use of your connector.
  • 12. Package your connector Package your connector When your connector is ready for release to a broad audience, take the following additional steps to ensure user success: • Create a license agreement for your connector. • Develop end-to-end walkthroughs to illustrate performing common use cases with your connector. • Create a compressed file for distribution.
  • 13. Conclusion MuleSoft’s program certifies and publishes third party connectors to be distributed through Anypoint Exchange. References: https://docs.mulesoft.com/anypoint-connector-devkit/v/3.7/