Pub-Sub custom connector based on Mule Java SDK.
We will have a walk-through of developing our own Custom Connector using Mule Java SDK. We will create a Pub-Sub connector(source and operation components). We will use the Java client of one of the best messaging platforms to build the connector.
2. 2
● Introductions
● Important elements of a connector
● Connector Architecture
● Steps to create connector
● Networking time
Agenda
3. 3
●About the organizer:
○ Jitendra Bafna
○ Akshata Sawant
○ Manish Yadav
○ Parth Rawat
○ Sajid Ali Qureshi
○ Soniya Arockiya
●About the sponsor:
○ Mulesoft
Introductions
A SHOW OF HANDS:
Who is new to this Meetup?
5. 5
• In-person MuleSoft Meetup in Mumbai on 26th November:
https://meetups.mulesoft.com/events/details/mulesoft-mumbai-presents-mumbai-
mulesoft-meetup-22-in-person/
• DataWeave is now open source : https://blogs.mulesoft.com/news/dataweave/
7. 7
• Components
• Source - components that receive or generate new messages
• Operations - components that process an incoming message and generate a result
• Configuration - configurable parameters that affect the behavior of the Module
• Connection Providers - element in charge of handling connections
• Parameter - granular elements used in all these elements: Operations, Sources, Configurations,
and Connection Providers
11. 11
1. Create Mule Project
2. Create Standard Java Packages in the Project
3. Create Entry Point Class for Our Connector
4. Create Connection Provider
5. Build and Test the Connection
6. Create Source Component
7. Create Operation Component
8. Build and Test Components
12. 12
● Share:
○ Tweet using the hashtag #MuleSoftMeetups
○ Invite your network to join: https://meetups.mulesoft.com/mumbai
● 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?
14. 14
In the Source component, which Mule SDK class helps you bind the payload and its attributes
together in the flow?
1. ConnectionProvider
1. SourceCallback
1. Result
1. None of the above
Question 1
15. 15
What methods do we need to override to customize the ConnectionProvider class?
1. connect and disconnect
1. onStart and onStop
1. validate and connect
1. connect, disconnect and validate
Question 2
16. 16
What is the packaging type of Custom Connector Mule application ?
1. maven-plugin
1. mule-plugin
1. mule-application
1. mule-extension
Question 3