SlideShare a Scribd company logo
6th March 2021
Bangalore Mulesoft Meetup Group
All contents © MuleSoft Inc.
Agenda
2
• Introduction and Networking
• Analyze and Resolve Heap Memory issues
• Building Custom Connector in Mule 4
• Q&A
• Trivia Quiz with Exciting Prizes
• Networking time
• Wrap-up & agenda for the next meetup
All contents © MuleSoft Inc. 3
06:00PM - 06:10PM : Short Introduction
06:10PM - 06:50PM : Analyze and Resolve Heap Memory issues
06:50PM - 07:00PM : Q&A Session
07:00PM - 07:40PM : Custom Connector Development
07:40PM - 07:50PM : Q&A Session
07:50PM - 08:00PM : Trivia Quiz
08:00PM – 08:15PM : Wrap up the Meetup and Next Meetup announcement
Agenda
All contents © MuleSoft Inc.
Introductions
4
• About the organizers:
• About the Speakers:
A SHOW OF HANDS:
Who is new to this MeetUp?
All contents © MuleSoft Inc.
CHEERS..!!
5
We have prizes to give away!
As a Token for your Positive Participation and Enthusiasm
A SHOW OF HANDS:
New Members With Us.!!
Performance Tuning –
Heap Memory
Rectifying memory leak using Jmeter & YourKit
All contents © MuleSoft Inc.
Background
7
● Terminology used for heap memory
Heap memory, GC, Memory leak, Heap dump
● Problem statement
Symptom – Heap memory keeps on increasing and never goes down,
ultimately resulting in server shutdown
Cause - connectors used try-catch inside scatter-gather without error
handler inside catch block
Solution - tools used to rectify JMeter and YourKit
All contents © MuleSoft Inc.
Sample Design
8
Proof Of Concept
All contents © MuleSoft Inc.
Quiz
15
Note : This is not Trivia Quiz.
All contents © MuleSoft Inc.
Quiz Question 1
11
• 1. Which tool can be used to analyze
heap dump?
Options
1. Jmeter
2. Postman
3. YourKit
4. SOAP UI
All contents © MuleSoft Inc.
Quiz Answer 1
12
All contents © MuleSoft Inc.
Quiz Question 2
13
• Which of the following is not related
with heap memory ?
Options
1. GC
2. CPU USAGE
3. HEAP DUMP
4. MEMORY LEAK
All contents © MuleSoft Inc.
Quiz Answer 2
14
All contents © MuleSoft Inc.
Questions??
Custom Connector
Using Mule SDK
All contents © MuleSoft Inc.
Custom Connector
17
Intro
 Mulesoft has a range of inbuilt connectors, You can use this connector as
per the Requirement.
 you can develop your own connector using the new Mule SDK platform
for Mule Runtime 4. This is different from the options using Mule
runtime 3 where Mule Connector Devkit was needed
All contents © MuleSoft Inc.
Custom Connector
18
Pros of Custom Connectors
 Could be reused at all integration points to that system
 Hide the integration complexity
 Could connect to any API or protocol
All contents © MuleSoft Inc.
Custom Connector
19
LifeCycle of Custom Connectors
 Setting up a Connector Project
 Writing Connector Code
 Writing Connector Tests
 Documenting a Connector Project
 Packaging a Connector
All contents © MuleSoft Inc.
Custom Connector
20
Prerequisites
 Java JDK Version 8
 Anypoint Studio 7
 Apache Maven 3.3.9 or higher
All contents © MuleSoft Inc.
Custom Connector
21
Prerequisites
 Java JDK Version 8
 Anypoint Studio 7
 Apache Maven 3.3.9 or higher
All contents © MuleSoft Inc.
Custom Connector
22
Create Custom Connector
1. Generate the app from an archetype
a. Go to the directory where you want to create the connector.
b. Execute the following command to create the basic project structure.
mvn org.mule.extensions:mule-extensions-archetype-
maven-plugin:generate
All contents © MuleSoft Inc.
Custom Connector
23
Create Custom Connector
2. Complete the configuration through the console
Enter the name of the extension: Demo Connector
Enter the extension's groupId: com.meetup.muleConnector
Enter the extension's artifactId: mule-demo-connector
Enter the extension's version: 1.0.0
Enter the extension's main package: org.mule.extension.weather
All contents © MuleSoft Inc.
Custom Connector
24
Create Custom Connector
3. Clean the Package
mvn clean
All contents © MuleSoft Inc.
Custom Connector
25
Create Custom Connector
3. Clean the Package
mvn clean
.4. Open the archType Project in Anypoint Studio
Go to Anypoint studio, File > Open Project from File System, and select the
project directory you have created in the last step. Click Finish.
All contents © MuleSoft Inc.
Custom Connector
26
Create Custom Connector
5. Once we open this project in Anypoint studio there will be number of classes, which
will be annotated with Mule SDK annotations.
a. <connector-name>Extension.java : This class would identify the various
properties of your connector.
Note that in Mule 4 a connector is nothing but an extension. This class would identify
which is the configuration class, which are the Operation classes etc.
b . <connector-name>Configuration.java : This would contain all the
information that you want from the global configuration of the Connector.
All contents © MuleSoft Inc.
Custom Connector
27
Create Custom Connector
c. <connector-name>Connection.java : The connection class is responsible for
handling the connection and in our case, most of the actual coding will be here.
d. <connector-name>ConnectionProvider.java : This class is used to manage
and provide the connection with the target system.
The connection provider must implement once of the connection provide available in
mule. The options are PoolingConnectionProvider, CachedConnectionProvider and
ConnectionProvider.
e. <connector-name>Operations.java : This would be the class where you
would define all the necessary operations. There can be multiple operation class files.
All contents © MuleSoft Inc.
Custom Connector
28
Create Custom Connector
6. Install Connector : We can install this connector into local maven repository
using the command:
mvn clean install
Skip the Unit Tests
mvn clean install -DskipTests
All contents © MuleSoft Inc.
Custom Connector
29
Create Custom Connector
7. Add Dependency in Project : You can use this connector in your Mule 4
application by adding the following dependency in pom.xml
<dependency>
<groupId> com.meetup.muleConnector</groupId>
<artifactId> mule-demo-connector</artifactId>
<version>1.0.0</version>
<classifier>mule-plugin</classifier>
</dependency>
All contents © MuleSoft Inc.
Custom Connector
30
Create Custom Connector
8. Use in Project : Now let us use the connector in the Mulesoft App
All contents © MuleSoft Inc.
Custom Connector References
31
References
 https://docs.mulesoft.com/connector-devkit/3.9/creating-an-anypoint-
connector-project
 https://docs.mulesoft.com/mule-sdk/1.1/
 https://docs.mulesoft.com/mule-sdk/1.1/getting-started
 https://docs.mulesoft.com/connector-devkit/3.9/anypoint-connector-development
 https://medium.com/the-mule-blog/mulesoft-making-of-custom-connector-in-
mule-4-f1abcf5e532c
 https://www.whishworks.com/blog/mulesoft/custom-connectors-in-mulesoft/
All contents © MuleSoft Inc.
Questions??
All contents © MuleSoft Inc.
Quiz
15
Note : This is not Trivia Quiz.
All contents © MuleSoft Inc.
Quiz Question 1
34
1. What is the use of <connector-name>Extension Class ?
All contents © MuleSoft Inc.
Quiz Answer 1
35
This is the Main entry point
class and is marked
with @Extension annotation.
It defines the Connector
attributes such as its name,
XML prefix and namespace,
category and other
Connector attributes.
All contents © MuleSoft Inc.
Quiz Question 2
36
2. How to Create Connector Configuration ?
All contents © MuleSoft Inc.
Quiz Answer 2
37
This is a common
configuration provider for
our new module.
Any common attributes,
parameters can be
included in this class.
This class is added to
Extension class
using @Configurations ann
otation.
All contents © MuleSoft Inc.
Trivia Quiz
15
All contents © MuleSoft Inc.
Trivia Question 1
39
1. Which object causes the memory leak ? And how to preserve the
memory leak ?
All contents © MuleSoft Inc.
Trivia Answer 1
40
All contents © MuleSoft Inc.
Trivia Question 2
41
2. How to create multiple Operation in one Custom Connector and in which
configuration File we must add the Functions?
All contents © MuleSoft Inc.
Trivia Answer 2
42
All contents © MuleSoft Inc.
Trivia Question 3
43
3. How to Install the Custom Connector in Anypoint Studio ? And In which file we
have to provide the Path of the Connector Icon Image ?
All contents © MuleSoft Inc.
Trivia Answer 3
44
See you next time
Please send topic suggestions to the organizers
Next Meet up: Next Quarter
Networking time
Engage yourself in interesting discussions with your neighbors!
Thank You !!

More Related Content

What's hot

Custom MuleSoft connector using Java SDK
Custom MuleSoft connector using Java SDKCustom MuleSoft connector using Java SDK
Custom MuleSoft connector using Java SDK
Amit Singh
 
Warsaw MuleSoft Meetup #6 - CI/CD
Warsaw MuleSoft Meetup  #6 - CI/CDWarsaw MuleSoft Meetup  #6 - CI/CD
Warsaw MuleSoft Meetup #6 - CI/CD
Patryk Bandurski
 
Ahmadabad mule soft_meetup_20_february_2021_muleconnectordevelopment
Ahmadabad mule soft_meetup_20_february_2021_muleconnectordevelopmentAhmadabad mule soft_meetup_20_february_2021_muleconnectordevelopment
Ahmadabad mule soft_meetup_20_february_2021_muleconnectordevelopment
Shekh Muenuddeen
 
MuleSoft Meetup Virtual_ 2_Charlotte
MuleSoft Meetup Virtual_ 2_CharlotteMuleSoft Meetup Virtual_ 2_Charlotte
MuleSoft Meetup Virtual_ 2_Charlotte
Subhash Patel
 
MuleSoft Clustring, Okta, CI/CD Integration with Jenkins
MuleSoft Clustring, Okta, CI/CD Integration with JenkinsMuleSoft Clustring, Okta, CI/CD Integration with Jenkins
MuleSoft Clustring, Okta, CI/CD Integration with Jenkins
Manish Kumar Yadav
 
Mulesoft KL Meetup 2
Mulesoft KL Meetup 2Mulesoft KL Meetup 2
Mulesoft KL Meetup 2
NitushreeJena
 
Warsaw MuleSoft Meetup #7 - custom policy
Warsaw MuleSoft Meetup #7 - custom policyWarsaw MuleSoft Meetup #7 - custom policy
Warsaw MuleSoft Meetup #7 - custom policy
Patryk Bandurski
 
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalerts
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalertsAhmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalerts
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalerts
Shekh Muenuddeen
 
Chandigarh MuleSoft Meetup #3
Chandigarh MuleSoft Meetup #3Chandigarh MuleSoft Meetup #3
Chandigarh MuleSoft Meetup #3
Lalit Panwar
 
Meet up slides_mumbai_05022020_final
Meet up slides_mumbai_05022020_finalMeet up slides_mumbai_05022020_final
Meet up slides_mumbai_05022020_final
Akshata Sawant
 
How Secure is Your API?
How Secure is Your API?How Secure is Your API?
How Secure is Your API?
Mary Joy Sabal
 
CI CD Daridabad MuleSoft meetup
CI CD Daridabad MuleSoft meetupCI CD Daridabad MuleSoft meetup
CI CD Daridabad MuleSoft meetup
Amit Singh
 
mulesoft meetup @ bangalore
mulesoft meetup @ bangaloremulesoft meetup @ bangalore
mulesoft meetup @ bangalore
D.Rajesh Kumar
 
Warsaw MuleSoft Meetup - Runtime Fabric
Warsaw MuleSoft Meetup - Runtime FabricWarsaw MuleSoft Meetup - Runtime Fabric
Warsaw MuleSoft Meetup - Runtime Fabric
Patryk Bandurski
 
Mule 4 migration + Common Integration Challenges : MuleSoft Virtual Muleys Me...
Mule 4 migration + Common Integration Challenges : MuleSoft Virtual Muleys Me...Mule 4 migration + Common Integration Challenges : MuleSoft Virtual Muleys Me...
Mule 4 migration + Common Integration Challenges : MuleSoft Virtual Muleys Me...
Angel Alberici
 
#3 calicut meetup - understanding slb, dlb and web sockets
#3   calicut meetup - understanding slb, dlb and web sockets#3   calicut meetup - understanding slb, dlb and web sockets
#3 calicut meetup - understanding slb, dlb and web sockets
JohnMathewPhilip
 
Nagpur Mulesoft Meetup on CICD using Jenkins
Nagpur Mulesoft Meetup on CICD using JenkinsNagpur Mulesoft Meetup on CICD using Jenkins
Nagpur Mulesoft Meetup on CICD using Jenkins
pqrs1234
 
Mule Meetup Hyderabad - Aug 2020
Mule Meetup Hyderabad - Aug 2020Mule Meetup Hyderabad - Aug 2020
Mule Meetup Hyderabad - Aug 2020
Sravan Lingam
 
Mumbai MuleSoft Meetup #17 - GraphQL
Mumbai MuleSoft Meetup #17 - GraphQLMumbai MuleSoft Meetup #17 - GraphQL
Mumbai MuleSoft Meetup #17 - GraphQL
Akshata Sawant
 
Surat MuleSoft Meetup#2 - Anypoint Runtime Fabric
Surat MuleSoft Meetup#2 - Anypoint Runtime FabricSurat MuleSoft Meetup#2 - Anypoint Runtime Fabric
Surat MuleSoft Meetup#2 - Anypoint Runtime Fabric
Jitendra Bafna
 

What's hot (20)

Custom MuleSoft connector using Java SDK
Custom MuleSoft connector using Java SDKCustom MuleSoft connector using Java SDK
Custom MuleSoft connector using Java SDK
 
Warsaw MuleSoft Meetup #6 - CI/CD
Warsaw MuleSoft Meetup  #6 - CI/CDWarsaw MuleSoft Meetup  #6 - CI/CD
Warsaw MuleSoft Meetup #6 - CI/CD
 
Ahmadabad mule soft_meetup_20_february_2021_muleconnectordevelopment
Ahmadabad mule soft_meetup_20_february_2021_muleconnectordevelopmentAhmadabad mule soft_meetup_20_february_2021_muleconnectordevelopment
Ahmadabad mule soft_meetup_20_february_2021_muleconnectordevelopment
 
MuleSoft Meetup Virtual_ 2_Charlotte
MuleSoft Meetup Virtual_ 2_CharlotteMuleSoft Meetup Virtual_ 2_Charlotte
MuleSoft Meetup Virtual_ 2_Charlotte
 
MuleSoft Clustring, Okta, CI/CD Integration with Jenkins
MuleSoft Clustring, Okta, CI/CD Integration with JenkinsMuleSoft Clustring, Okta, CI/CD Integration with Jenkins
MuleSoft Clustring, Okta, CI/CD Integration with Jenkins
 
Mulesoft KL Meetup 2
Mulesoft KL Meetup 2Mulesoft KL Meetup 2
Mulesoft KL Meetup 2
 
Warsaw MuleSoft Meetup #7 - custom policy
Warsaw MuleSoft Meetup #7 - custom policyWarsaw MuleSoft Meetup #7 - custom policy
Warsaw MuleSoft Meetup #7 - custom policy
 
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalerts
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalertsAhmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalerts
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalerts
 
Chandigarh MuleSoft Meetup #3
Chandigarh MuleSoft Meetup #3Chandigarh MuleSoft Meetup #3
Chandigarh MuleSoft Meetup #3
 
Meet up slides_mumbai_05022020_final
Meet up slides_mumbai_05022020_finalMeet up slides_mumbai_05022020_final
Meet up slides_mumbai_05022020_final
 
How Secure is Your API?
How Secure is Your API?How Secure is Your API?
How Secure is Your API?
 
CI CD Daridabad MuleSoft meetup
CI CD Daridabad MuleSoft meetupCI CD Daridabad MuleSoft meetup
CI CD Daridabad MuleSoft meetup
 
mulesoft meetup @ bangalore
mulesoft meetup @ bangaloremulesoft meetup @ bangalore
mulesoft meetup @ bangalore
 
Warsaw MuleSoft Meetup - Runtime Fabric
Warsaw MuleSoft Meetup - Runtime FabricWarsaw MuleSoft Meetup - Runtime Fabric
Warsaw MuleSoft Meetup - Runtime Fabric
 
Mule 4 migration + Common Integration Challenges : MuleSoft Virtual Muleys Me...
Mule 4 migration + Common Integration Challenges : MuleSoft Virtual Muleys Me...Mule 4 migration + Common Integration Challenges : MuleSoft Virtual Muleys Me...
Mule 4 migration + Common Integration Challenges : MuleSoft Virtual Muleys Me...
 
#3 calicut meetup - understanding slb, dlb and web sockets
#3   calicut meetup - understanding slb, dlb and web sockets#3   calicut meetup - understanding slb, dlb and web sockets
#3 calicut meetup - understanding slb, dlb and web sockets
 
Nagpur Mulesoft Meetup on CICD using Jenkins
Nagpur Mulesoft Meetup on CICD using JenkinsNagpur Mulesoft Meetup on CICD using Jenkins
Nagpur Mulesoft Meetup on CICD using Jenkins
 
Mule Meetup Hyderabad - Aug 2020
Mule Meetup Hyderabad - Aug 2020Mule Meetup Hyderabad - Aug 2020
Mule Meetup Hyderabad - Aug 2020
 
Mumbai MuleSoft Meetup #17 - GraphQL
Mumbai MuleSoft Meetup #17 - GraphQLMumbai MuleSoft Meetup #17 - GraphQL
Mumbai MuleSoft Meetup #17 - GraphQL
 
Surat MuleSoft Meetup#2 - Anypoint Runtime Fabric
Surat MuleSoft Meetup#2 - Anypoint Runtime FabricSurat MuleSoft Meetup#2 - Anypoint Runtime Fabric
Surat MuleSoft Meetup#2 - Anypoint Runtime Fabric
 

Similar to Mulesoft Meetup Bangalore - 6th March 2021

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
 
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
 
MuleSoft Meetup Charlotte 2 - 2019
MuleSoft Meetup Charlotte 2 - 2019MuleSoft Meetup Charlotte 2 - 2019
MuleSoft Meetup Charlotte 2 - 2019
Subhash Patel
 
MuleSoft Meetup Singapore - Reliable Messaging & RTF Operations
MuleSoft Meetup Singapore - Reliable Messaging & RTF OperationsMuleSoft Meetup Singapore - Reliable Messaging & RTF Operations
MuleSoft Meetup Singapore - Reliable Messaging & RTF Operations
Julian Douch
 
Cracow MuleSoft Meetup #1
Cracow MuleSoft Meetup #1Cracow MuleSoft Meetup #1
Cracow MuleSoft Meetup #1
Wojtek Maciejczyk
 
Building APIs with Mule and Spring Boot
Building APIs with Mule and Spring BootBuilding APIs with Mule and Spring Boot
Building APIs with Mule and Spring Boot
Guilherme Pereira Silva
 
MuleSoft_Meetup_Exchange-Nexus-Publish_Asserts.pptx
MuleSoft_Meetup_Exchange-Nexus-Publish_Asserts.pptxMuleSoft_Meetup_Exchange-Nexus-Publish_Asserts.pptx
MuleSoft_Meetup_Exchange-Nexus-Publish_Asserts.pptx
AnuragSharma900
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
MuleSoft Kochi Meetup #3– Integration with Web Sockets
 MuleSoft Kochi Meetup #3– Integration with Web Sockets MuleSoft Kochi Meetup #3– Integration with Web Sockets
MuleSoft Kochi Meetup #3– Integration with Web Sockets
sumitahuja94
 
Mule anypoint connector dev kit
Mule  anypoint connector dev kitMule  anypoint connector dev kit
Mule anypoint connector dev kit
D.Rajesh Kumar
 
Mule anypoint connector
Mule  anypoint connectorMule  anypoint connector
Mule anypoint connector
D.Rajesh Kumar
 
Mule tcat server
Mule  tcat serverMule  tcat server
Mule tcat server
D.Rajesh Kumar
 
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
 
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
 
Manila MuleSoft Meetup - September 2018
Manila MuleSoft Meetup - September 2018Manila MuleSoft Meetup - September 2018
Manila MuleSoft Meetup - September 2018
Ryan Anthony Andal
 
MuleSoft Surat Virtual Meetup#35 - Setting up MuleSoft Runtime and Anypoint C...
MuleSoft Surat Virtual Meetup#35 - Setting up MuleSoft Runtime and Anypoint C...MuleSoft Surat Virtual Meetup#35 - Setting up MuleSoft Runtime and Anypoint C...
MuleSoft Surat Virtual Meetup#35 - Setting up MuleSoft Runtime and Anypoint C...
Jitendra Bafna
 
Mule soft meetup_virtual_ 3_charlotte_07july_2021__final
Mule soft meetup_virtual_ 3_charlotte_07july_2021__finalMule soft meetup_virtual_ 3_charlotte_07july_2021__final
Mule soft meetup_virtual_ 3_charlotte_07july_2021__final
Subhash Patel
 
Anypoint connector dev kit
Anypoint connector dev kitAnypoint connector dev kit
Anypoint connector dev kit
himajareddys
 
Second Caracas MuleSoft Meetup Slides
Second Caracas MuleSoft Meetup SlidesSecond Caracas MuleSoft Meetup Slides
Second Caracas MuleSoft Meetup Slides
Fernando Silva
 
Bangalore mulesoft meetup#10
Bangalore mulesoft meetup#10Bangalore mulesoft meetup#10
Bangalore mulesoft meetup#10
D.Rajesh Kumar
 

Similar to Mulesoft Meetup Bangalore - 6th March 2021 (20)

MuleSoft Meetup Bangalore - March 6 2021
MuleSoft Meetup Bangalore - March 6 2021MuleSoft Meetup Bangalore - March 6 2021
MuleSoft Meetup Bangalore - March 6 2021
 
Mulesoft kochi meetup 8 custom connector
Mulesoft kochi meetup 8   custom connectorMulesoft kochi meetup 8   custom connector
Mulesoft kochi meetup 8 custom connector
 
MuleSoft Meetup Charlotte 2 - 2019
MuleSoft Meetup Charlotte 2 - 2019MuleSoft Meetup Charlotte 2 - 2019
MuleSoft Meetup Charlotte 2 - 2019
 
MuleSoft Meetup Singapore - Reliable Messaging & RTF Operations
MuleSoft Meetup Singapore - Reliable Messaging & RTF OperationsMuleSoft Meetup Singapore - Reliable Messaging & RTF Operations
MuleSoft Meetup Singapore - Reliable Messaging & RTF Operations
 
Cracow MuleSoft Meetup #1
Cracow MuleSoft Meetup #1Cracow MuleSoft Meetup #1
Cracow MuleSoft Meetup #1
 
Building APIs with Mule and Spring Boot
Building APIs with Mule and Spring BootBuilding APIs with Mule and Spring Boot
Building APIs with Mule and Spring Boot
 
MuleSoft_Meetup_Exchange-Nexus-Publish_Asserts.pptx
MuleSoft_Meetup_Exchange-Nexus-Publish_Asserts.pptxMuleSoft_Meetup_Exchange-Nexus-Publish_Asserts.pptx
MuleSoft_Meetup_Exchange-Nexus-Publish_Asserts.pptx
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
MuleSoft Kochi Meetup #3– Integration with Web Sockets
 MuleSoft Kochi Meetup #3– Integration with Web Sockets MuleSoft Kochi Meetup #3– Integration with Web Sockets
MuleSoft Kochi Meetup #3– Integration with Web Sockets
 
Mule anypoint connector dev kit
Mule  anypoint connector dev kitMule  anypoint connector dev kit
Mule anypoint connector dev kit
 
Mule anypoint connector
Mule  anypoint connectorMule  anypoint connector
Mule anypoint connector
 
Mule tcat server
Mule  tcat serverMule  tcat server
Mule tcat server
 
Custom Connector development using Mule SDK
Custom Connector development using Mule SDKCustom Connector development using Mule SDK
Custom Connector development using Mule SDK
 
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
 
Manila MuleSoft Meetup - September 2018
Manila MuleSoft Meetup - September 2018Manila MuleSoft Meetup - September 2018
Manila MuleSoft Meetup - September 2018
 
MuleSoft Surat Virtual Meetup#35 - Setting up MuleSoft Runtime and Anypoint C...
MuleSoft Surat Virtual Meetup#35 - Setting up MuleSoft Runtime and Anypoint C...MuleSoft Surat Virtual Meetup#35 - Setting up MuleSoft Runtime and Anypoint C...
MuleSoft Surat Virtual Meetup#35 - Setting up MuleSoft Runtime and Anypoint C...
 
Mule soft meetup_virtual_ 3_charlotte_07july_2021__final
Mule soft meetup_virtual_ 3_charlotte_07july_2021__finalMule soft meetup_virtual_ 3_charlotte_07july_2021__final
Mule soft meetup_virtual_ 3_charlotte_07july_2021__final
 
Anypoint connector dev kit
Anypoint connector dev kitAnypoint connector dev kit
Anypoint connector dev kit
 
Second Caracas MuleSoft Meetup Slides
Second Caracas MuleSoft Meetup SlidesSecond Caracas MuleSoft Meetup Slides
Second Caracas MuleSoft Meetup Slides
 
Bangalore mulesoft meetup#10
Bangalore mulesoft meetup#10Bangalore mulesoft meetup#10
Bangalore mulesoft meetup#10
 

Recently uploaded

Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 

Recently uploaded (20)

Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 

Mulesoft Meetup Bangalore - 6th March 2021

  • 1. 6th March 2021 Bangalore Mulesoft Meetup Group
  • 2. All contents © MuleSoft Inc. Agenda 2 • Introduction and Networking • Analyze and Resolve Heap Memory issues • Building Custom Connector in Mule 4 • Q&A • Trivia Quiz with Exciting Prizes • Networking time • Wrap-up & agenda for the next meetup
  • 3. All contents © MuleSoft Inc. 3 06:00PM - 06:10PM : Short Introduction 06:10PM - 06:50PM : Analyze and Resolve Heap Memory issues 06:50PM - 07:00PM : Q&A Session 07:00PM - 07:40PM : Custom Connector Development 07:40PM - 07:50PM : Q&A Session 07:50PM - 08:00PM : Trivia Quiz 08:00PM – 08:15PM : Wrap up the Meetup and Next Meetup announcement Agenda
  • 4. All contents © MuleSoft Inc. Introductions 4 • About the organizers: • About the Speakers: A SHOW OF HANDS: Who is new to this MeetUp?
  • 5. All contents © MuleSoft Inc. CHEERS..!! 5 We have prizes to give away! As a Token for your Positive Participation and Enthusiasm A SHOW OF HANDS: New Members With Us.!!
  • 6. Performance Tuning – Heap Memory Rectifying memory leak using Jmeter & YourKit
  • 7. All contents © MuleSoft Inc. Background 7 ● Terminology used for heap memory Heap memory, GC, Memory leak, Heap dump ● Problem statement Symptom – Heap memory keeps on increasing and never goes down, ultimately resulting in server shutdown Cause - connectors used try-catch inside scatter-gather without error handler inside catch block Solution - tools used to rectify JMeter and YourKit
  • 8. All contents © MuleSoft Inc. Sample Design 8
  • 10. All contents © MuleSoft Inc. Quiz 15 Note : This is not Trivia Quiz.
  • 11. All contents © MuleSoft Inc. Quiz Question 1 11 • 1. Which tool can be used to analyze heap dump? Options 1. Jmeter 2. Postman 3. YourKit 4. SOAP UI
  • 12. All contents © MuleSoft Inc. Quiz Answer 1 12
  • 13. All contents © MuleSoft Inc. Quiz Question 2 13 • Which of the following is not related with heap memory ? Options 1. GC 2. CPU USAGE 3. HEAP DUMP 4. MEMORY LEAK
  • 14. All contents © MuleSoft Inc. Quiz Answer 2 14
  • 15. All contents © MuleSoft Inc. Questions??
  • 17. All contents © MuleSoft Inc. Custom Connector 17 Intro  Mulesoft has a range of inbuilt connectors, You can use this connector as per the Requirement.  you can develop your own connector using the new Mule SDK platform for Mule Runtime 4. This is different from the options using Mule runtime 3 where Mule Connector Devkit was needed
  • 18. All contents © MuleSoft Inc. Custom Connector 18 Pros of Custom Connectors  Could be reused at all integration points to that system  Hide the integration complexity  Could connect to any API or protocol
  • 19. All contents © MuleSoft Inc. Custom Connector 19 LifeCycle of Custom Connectors  Setting up a Connector Project  Writing Connector Code  Writing Connector Tests  Documenting a Connector Project  Packaging a Connector
  • 20. All contents © MuleSoft Inc. Custom Connector 20 Prerequisites  Java JDK Version 8  Anypoint Studio 7  Apache Maven 3.3.9 or higher
  • 21. All contents © MuleSoft Inc. Custom Connector 21 Prerequisites  Java JDK Version 8  Anypoint Studio 7  Apache Maven 3.3.9 or higher
  • 22. All contents © MuleSoft Inc. Custom Connector 22 Create Custom Connector 1. Generate the app from an archetype a. Go to the directory where you want to create the connector. b. Execute the following command to create the basic project structure. mvn org.mule.extensions:mule-extensions-archetype- maven-plugin:generate
  • 23. All contents © MuleSoft Inc. Custom Connector 23 Create Custom Connector 2. Complete the configuration through the console Enter the name of the extension: Demo Connector Enter the extension's groupId: com.meetup.muleConnector Enter the extension's artifactId: mule-demo-connector Enter the extension's version: 1.0.0 Enter the extension's main package: org.mule.extension.weather
  • 24. All contents © MuleSoft Inc. Custom Connector 24 Create Custom Connector 3. Clean the Package mvn clean
  • 25. All contents © MuleSoft Inc. Custom Connector 25 Create Custom Connector 3. Clean the Package mvn clean .4. Open the archType Project in Anypoint Studio Go to Anypoint studio, File > Open Project from File System, and select the project directory you have created in the last step. Click Finish.
  • 26. All contents © MuleSoft Inc. Custom Connector 26 Create Custom Connector 5. Once we open this project in Anypoint studio there will be number of classes, which will be annotated with Mule SDK annotations. a. <connector-name>Extension.java : This class would identify the various properties of your connector. Note that in Mule 4 a connector is nothing but an extension. This class would identify which is the configuration class, which are the Operation classes etc. b . <connector-name>Configuration.java : This would contain all the information that you want from the global configuration of the Connector.
  • 27. All contents © MuleSoft Inc. Custom Connector 27 Create Custom Connector c. <connector-name>Connection.java : The connection class is responsible for handling the connection and in our case, most of the actual coding will be here. d. <connector-name>ConnectionProvider.java : This class is used to manage and provide the connection with the target system. The connection provider must implement once of the connection provide available in mule. The options are PoolingConnectionProvider, CachedConnectionProvider and ConnectionProvider. e. <connector-name>Operations.java : This would be the class where you would define all the necessary operations. There can be multiple operation class files.
  • 28. All contents © MuleSoft Inc. Custom Connector 28 Create Custom Connector 6. Install Connector : We can install this connector into local maven repository using the command: mvn clean install Skip the Unit Tests mvn clean install -DskipTests
  • 29. All contents © MuleSoft Inc. Custom Connector 29 Create Custom Connector 7. Add Dependency in Project : You can use this connector in your Mule 4 application by adding the following dependency in pom.xml <dependency> <groupId> com.meetup.muleConnector</groupId> <artifactId> mule-demo-connector</artifactId> <version>1.0.0</version> <classifier>mule-plugin</classifier> </dependency>
  • 30. All contents © MuleSoft Inc. Custom Connector 30 Create Custom Connector 8. Use in Project : Now let us use the connector in the Mulesoft App
  • 31. All contents © MuleSoft Inc. Custom Connector References 31 References  https://docs.mulesoft.com/connector-devkit/3.9/creating-an-anypoint- connector-project  https://docs.mulesoft.com/mule-sdk/1.1/  https://docs.mulesoft.com/mule-sdk/1.1/getting-started  https://docs.mulesoft.com/connector-devkit/3.9/anypoint-connector-development  https://medium.com/the-mule-blog/mulesoft-making-of-custom-connector-in- mule-4-f1abcf5e532c  https://www.whishworks.com/blog/mulesoft/custom-connectors-in-mulesoft/
  • 32. All contents © MuleSoft Inc. Questions??
  • 33. All contents © MuleSoft Inc. Quiz 15 Note : This is not Trivia Quiz.
  • 34. All contents © MuleSoft Inc. Quiz Question 1 34 1. What is the use of <connector-name>Extension Class ?
  • 35. All contents © MuleSoft Inc. Quiz Answer 1 35 This is the Main entry point class and is marked with @Extension annotation. It defines the Connector attributes such as its name, XML prefix and namespace, category and other Connector attributes.
  • 36. All contents © MuleSoft Inc. Quiz Question 2 36 2. How to Create Connector Configuration ?
  • 37. All contents © MuleSoft Inc. Quiz Answer 2 37 This is a common configuration provider for our new module. Any common attributes, parameters can be included in this class. This class is added to Extension class using @Configurations ann otation.
  • 38. All contents © MuleSoft Inc. Trivia Quiz 15
  • 39. All contents © MuleSoft Inc. Trivia Question 1 39 1. Which object causes the memory leak ? And how to preserve the memory leak ?
  • 40. All contents © MuleSoft Inc. Trivia Answer 1 40
  • 41. All contents © MuleSoft Inc. Trivia Question 2 41 2. How to create multiple Operation in one Custom Connector and in which configuration File we must add the Functions?
  • 42. All contents © MuleSoft Inc. Trivia Answer 2 42
  • 43. All contents © MuleSoft Inc. Trivia Question 3 43 3. How to Install the Custom Connector in Anypoint Studio ? And In which file we have to provide the Path of the Connector Icon Image ?
  • 44. All contents © MuleSoft Inc. Trivia Answer 3 44
  • 45. See you next time Please send topic suggestions to the organizers Next Meet up: Next Quarter
  • 46. Networking time Engage yourself in interesting discussions with your neighbors!