SlideShare ist ein Scribd-Unternehmen logo
1 von 16
Downloaden Sie, um offline zu lesen
Migratingto Mule 4
Are you ready for this?
- Harish Kumar
Who am I?
• Working as Principal Architect for my
current company
• MuleSoft Meetup organizer for Japan
• Love writing blogs and create tutorial
videos
• https://www.youtube.com/c/RightC
ode
• https://dzone.com/users/2876594/
rdatdzone.html
• Featured Trailblazer
• https://trailhead.salesforce.com/en
/trailblazers/harish-kumar
• Reach me @
• https://jp.linkedin.com/in/echarish
• https://twitter.com/harish884
• https://twitter.com/RightCodeHere
?lang=en
Measures to Understand Prior to Migration
Process
Data is crucial Don’t rush it
Encryption and
Decryption.
Understand the
framework
Prepare
Automated Test
Framework.
Did you made
security policies
Deciding On When to Go for Mule 3 To
Mule 4 Migration
• Organizationalreadiness
• Are MuleSoftexpertsfully trained and skilled in using Mule 4?
• Learn howthe componentsworkin Mule 4 to see what has changed
fromMule 3
• Is yourorganization willing to keep all MuleSoftsupported
applicationsup to date with Mule 4 upgrades?
• Is Mule 3 and its variantslicense expiring?
• Is customer/clientwantingto upgradeall their applicationsto Mule
4?
• Environmentsetup for migration
Mule4 Vs Mule3 Release,Why
Upgrade?
• Integrated and Effective Error handling
• Better Application Configuration: Maven
• Simplified Event Processing and
Messaging
• DataWeave 2.0 For Better Data Handling
Conducting
Mule 3 to
Mule 4
Migration
Process
Migrate Patterns
Migrate Water marks
Migrate Core components
Migrate Connectors
Custom Connector from 3.x to 4.x
Migrate Patterns
Migrate message properties
Invocation Properties
Invocation properties are now called variables in Mule 4. Behavior is exactly the same as in
Mule 3.
Inbound Properties, Outbound Properties, Inbound and Outbound Attachments
These scopes do not exist in Mule 4.
Migration re-connection strategies - reconnection hasn’t changed much between Mule 3 and Mule 4
In Mule 3, reconnection strategies were specified on each connector’s config element. These strategies had
two purposes:
> To reconnect when a running application looses connection to an endpoint
> To validate all connections when the application is being deployed.
In Mule 4 you can simply specify if deployment should fail or not if connectivity testing fails
Migrate
Water marks
Watermarking is
typically usedto
perform data
synchronization
<flow name="syncWithWatermark" processingStrategy="synchronous">
<poll>
<fixed-frequency-scheduler frequency="1" timeUnit="HOURS" />
<watermark variable="timestamp"
default-expression="#[server.dateTime.format(&quot;yyyy-MM-dd'T'HH:mm:ss.SSS'Z'&quot;)]"
selector="MAX"
selector-expression="#[payload.LastModifiedDate]" />
<sfdc:queryconfig-ref="Salesforce" query="select Id,LastModifiedDate fromContact where LastModifiedDate &amp;gt;
#[flowVars['timestamp']]" />
</poll>
<flow-ref name="doYourSyncMagic"/>
</flow>
<os:object-store name="watermarkStore"persistent="true"/>
<flow name="watermark">
<os:retrieve key="watermark" objectStore="watermarkStore"target="watermark">
<os:default-value>2017-09-11T00:00:00.000Z</os:default-value>
</os:retrieve>
<sfdc:query config-ref="config">
<sfdc:salesforce-query>
<![CDATA[ #["Select Id, Name, BillingCity,Phone,Website,LastModifiedDate from account WHERE LastModifiedDate > " ++ vars.watermark]
]]>
</sfdc:salesforce-query>
</sfdc:query>
<flow-ref name="doYourIntegrationLogic"/>
<os:store key="watermark" failIfPresent="false" failOnNullValue="false"objectStore="watermarkStore">
<os:value>#[max(payload map $.LastModifiedDate)]</os:value>
</os:store>
• Mule 4
• Mule 3
Automatic
Watermark
• File, Ftp, Sftp, Database and Salesforce connectors have
this capability of doing automatic watermarking
<flow name="onNewInvoice">
<file:listener config-ref="file" directory="invoices"
autoDelete="false" watermarkMode="CREATED_TIMESTAMP">
<scheduling-strategy>
<fixed-frequency frequency="1000"/>
</scheduling-strategy>
</file:listener>
<flow-ref name="onNewInvoice"/>
</flow>
Batch componentsMigrate
ChoicerouterMigrate
Exceptionstrategiesto error handlersMigrate
Enricherstoo targetparametersMigrate
FiltersMigrate
The "For Each" componentMigrate
Poll componentMigrate
Scatter-GatherRouterMigrate
TransformersMigrate
Migrate Core components
Migrate
Connectors
Anypoint
EnterpriseSecurity
(AES) Module
AMQP Connector
Database
Connector
Email Connector File Connector
FTP and SFTP
Connector
HTTP Connector
JMS Connector
Object Store
Connector
Scripting Module
Spring Module
Validate Module VM Module
Web Service
Consumer Module
XML Module
MuleSoft
Connector
Migration
from 3.x to 4.x
MuleSoft connector architectureis completely
changed in Mule 4.x. In Mule 3.x.
Dev-Kit is used to develop the connector.
In Mule 4, it is based on Mule4 SDK.
Here each processor displayed as a separate
connector in Anypoint Studio Pallet.
To Migrate
the connector
to Mule 4,
you can use
conversion
tool
Enable the Connector
as Mule 4 extensionin
pom file
Modify Package element:
<packaging>
mule-extension
</packaging>
Modify parent element
< parent>
<groupId>org.mule.extensions</groupId>
<artifactId>mule-modules-
parent</artifactId>
<version>1.0.0</version>
</parent>
Modify the Folder structure
The typical folder structure
for Mule 4 is
<Module>/api
<Module>/internal
UpdateAnnotations
and ParamsClasses
Delete/Add/UpdateClasses based
on Mule 4 SDK (Please refer Java
Docs)
Your Best
Friend in
MIGRATION!
• https://docs.mulesoft.com/mule-
runtime/4.2/migration-process
• https://docs.mulesoft.com/mule-
runtime/4.2/migration-dataweave
• https://docs.mulesoft.com/mule-
runtime/4.2/migration-mel
Migration Documentation
• https://docs.mulesoft.com/mule-
runtime/4.2/migration-prep
Migration Preparation
• https://docs.mulesoft.com/mule-
runtime/4.2/migration-cheat-sheet
Mule 3 to Mule 4 migration cheat sheet
Your Best
Friend in
MIGRATION!
• https://docs.mulesoft.com/mule-runtime/4.2/migration-process
• https://docs.mulesoft.com/mule-runtime/4.2/migration-
dataweave
• https://docs.mulesoft.com/mule-runtime/4.2/migration-mel
Migration Documentation
• https://docs.mulesoft.com/mule-runtime/4.2/migration-prep
Migration Preparation
• https://docs.mulesoft.com/mule-runtime/4.2/migration-cheat-
sheet
Mule 3 to Mule 4 migration cheat sheet
THANK YOU!

Weitere ähnliche Inhalte

Was ist angesagt?

Best Practices in Implementing a Center for Enablement (C4E) within Your Orga...
Best Practices in Implementing a Center for Enablement (C4E) within Your Orga...Best Practices in Implementing a Center for Enablement (C4E) within Your Orga...
Best Practices in Implementing a Center for Enablement (C4E) within Your Orga...MuleSoft
 
MuleSoft Online Meetup a Guide to RTF application deployment - October 2020
MuleSoft Online Meetup   a Guide to RTF application deployment  - October 2020MuleSoft Online Meetup   a Guide to RTF application deployment  - October 2020
MuleSoft Online Meetup a Guide to RTF application deployment - October 2020Royston Lobo
 
Vanrish Mulesoft Integration architect ppt
Vanrish Mulesoft Integration architect pptVanrish Mulesoft Integration architect ppt
Vanrish Mulesoft Integration architect pptRajnish Kumar
 
MuleSoft Event Driven Architecture (EDA Patterns in MuleSoft) - VirtualMuleys63
MuleSoft Event Driven Architecture (EDA Patterns in MuleSoft) - VirtualMuleys63MuleSoft Event Driven Architecture (EDA Patterns in MuleSoft) - VirtualMuleys63
MuleSoft Event Driven Architecture (EDA Patterns in MuleSoft) - VirtualMuleys63Angel Alberici
 
Mule Common Logging & Error Handling Framework
Mule Common Logging & Error Handling FrameworkMule Common Logging & Error Handling Framework
Mule Common Logging & Error Handling FrameworkVijay Reddy
 
Logging best practice in mule using logger component
Logging best practice in mule using logger componentLogging best practice in mule using logger component
Logging best practice in mule using logger componentGovind Mulinti
 
Demystifying the use of circuit breakers with MuleSoft
Demystifying the use of circuit breakers with MuleSoftDemystifying the use of circuit breakers with MuleSoft
Demystifying the use of circuit breakers with MuleSoftSandeep Deshmukh
 
Operationalizing your C4E VirtualMuleys & Deployment Considerations: Cloudhub...
Operationalizing your C4E VirtualMuleys & Deployment Considerations: Cloudhub...Operationalizing your C4E VirtualMuleys & Deployment Considerations: Cloudhub...
Operationalizing your C4E VirtualMuleys & Deployment Considerations: Cloudhub...Angel Alberici
 
MuleSoft Runtime Fabric (RTF): Foundations : MuleSoft Virtual Muleys Meetups
MuleSoft Runtime Fabric (RTF): Foundations  : MuleSoft Virtual Muleys MeetupsMuleSoft Runtime Fabric (RTF): Foundations  : MuleSoft Virtual Muleys Meetups
MuleSoft Runtime Fabric (RTF): Foundations : MuleSoft Virtual Muleys MeetupsAngel Alberici
 
Anypoint Platform for Pivotal Cloud Foundry
Anypoint Platform for Pivotal Cloud FoundryAnypoint Platform for Pivotal Cloud Foundry
Anypoint Platform for Pivotal Cloud FoundryMuleSoft
 
Singapore MuleSoft Meetup - 24 Aug 2022
Singapore MuleSoft Meetup - 24 Aug 2022Singapore MuleSoft Meetup - 24 Aug 2022
Singapore MuleSoft Meetup - 24 Aug 2022Royston Lobo
 
Manchester MuleSoft Meetup #6 - Runtime Fabric with Mulesoft
Manchester MuleSoft Meetup #6 - Runtime Fabric with Mulesoft Manchester MuleSoft Meetup #6 - Runtime Fabric with Mulesoft
Manchester MuleSoft Meetup #6 - Runtime Fabric with Mulesoft Akshata Sawant
 
MuleSoft's Approach to Driving Customer Outcomes
MuleSoft's Approach to Driving Customer Outcomes MuleSoft's Approach to Driving Customer Outcomes
MuleSoft's Approach to Driving Customer Outcomes MuleSoft
 
Containerising the Mule Runtime with Kubernetes & From Zero to Batch : MuleS...
Containerising the Mule Runtime with Kubernetes & From Zero to Batch  : MuleS...Containerising the Mule Runtime with Kubernetes & From Zero to Batch  : MuleS...
Containerising the Mule Runtime with Kubernetes & From Zero to Batch : MuleS...Angel Alberici
 
What’s Mule 4.3? How Does Anytime RTF Help? Our insights explain.
What’s Mule 4.3? How Does Anytime RTF Help? Our insights explain. What’s Mule 4.3? How Does Anytime RTF Help? Our insights explain.
What’s Mule 4.3? How Does Anytime RTF Help? Our insights explain. Kellton Tech Solutions Ltd
 
Mule Runtime: Performance Tuning
Mule Runtime: Performance Tuning Mule Runtime: Performance Tuning
Mule Runtime: Performance Tuning MuleSoft
 
Object Store V2 Workshop
Object Store V2 WorkshopObject Store V2 Workshop
Object Store V2 WorkshopMuleSoft
 

Was ist angesagt? (20)

Best Practices in Implementing a Center for Enablement (C4E) within Your Orga...
Best Practices in Implementing a Center for Enablement (C4E) within Your Orga...Best Practices in Implementing a Center for Enablement (C4E) within Your Orga...
Best Practices in Implementing a Center for Enablement (C4E) within Your Orga...
 
MuleSoft Online Meetup a Guide to RTF application deployment - October 2020
MuleSoft Online Meetup   a Guide to RTF application deployment  - October 2020MuleSoft Online Meetup   a Guide to RTF application deployment  - October 2020
MuleSoft Online Meetup a Guide to RTF application deployment - October 2020
 
Vanrish Mulesoft Integration architect ppt
Vanrish Mulesoft Integration architect pptVanrish Mulesoft Integration architect ppt
Vanrish Mulesoft Integration architect ppt
 
MuleSoft Event Driven Architecture (EDA Patterns in MuleSoft) - VirtualMuleys63
MuleSoft Event Driven Architecture (EDA Patterns in MuleSoft) - VirtualMuleys63MuleSoft Event Driven Architecture (EDA Patterns in MuleSoft) - VirtualMuleys63
MuleSoft Event Driven Architecture (EDA Patterns in MuleSoft) - VirtualMuleys63
 
Managing APIs with MuleSoft
Managing APIs with MuleSoftManaging APIs with MuleSoft
Managing APIs with MuleSoft
 
Mule Common Logging & Error Handling Framework
Mule Common Logging & Error Handling FrameworkMule Common Logging & Error Handling Framework
Mule Common Logging & Error Handling Framework
 
Mule api management
Mule  api managementMule  api management
Mule api management
 
Logging best practice in mule using logger component
Logging best practice in mule using logger componentLogging best practice in mule using logger component
Logging best practice in mule using logger component
 
Demystifying the use of circuit breakers with MuleSoft
Demystifying the use of circuit breakers with MuleSoftDemystifying the use of circuit breakers with MuleSoft
Demystifying the use of circuit breakers with MuleSoft
 
Operationalizing your C4E VirtualMuleys & Deployment Considerations: Cloudhub...
Operationalizing your C4E VirtualMuleys & Deployment Considerations: Cloudhub...Operationalizing your C4E VirtualMuleys & Deployment Considerations: Cloudhub...
Operationalizing your C4E VirtualMuleys & Deployment Considerations: Cloudhub...
 
MuleSoft Runtime Fabric (RTF): Foundations : MuleSoft Virtual Muleys Meetups
MuleSoft Runtime Fabric (RTF): Foundations  : MuleSoft Virtual Muleys MeetupsMuleSoft Runtime Fabric (RTF): Foundations  : MuleSoft Virtual Muleys Meetups
MuleSoft Runtime Fabric (RTF): Foundations : MuleSoft Virtual Muleys Meetups
 
Anypoint Platform for Pivotal Cloud Foundry
Anypoint Platform for Pivotal Cloud FoundryAnypoint Platform for Pivotal Cloud Foundry
Anypoint Platform for Pivotal Cloud Foundry
 
Singapore MuleSoft Meetup - 24 Aug 2022
Singapore MuleSoft Meetup - 24 Aug 2022Singapore MuleSoft Meetup - 24 Aug 2022
Singapore MuleSoft Meetup - 24 Aug 2022
 
Manchester MuleSoft Meetup #6 - Runtime Fabric with Mulesoft
Manchester MuleSoft Meetup #6 - Runtime Fabric with Mulesoft Manchester MuleSoft Meetup #6 - Runtime Fabric with Mulesoft
Manchester MuleSoft Meetup #6 - Runtime Fabric with Mulesoft
 
MuleSoft's Approach to Driving Customer Outcomes
MuleSoft's Approach to Driving Customer Outcomes MuleSoft's Approach to Driving Customer Outcomes
MuleSoft's Approach to Driving Customer Outcomes
 
Containerising the Mule Runtime with Kubernetes & From Zero to Batch : MuleS...
Containerising the Mule Runtime with Kubernetes & From Zero to Batch  : MuleS...Containerising the Mule Runtime with Kubernetes & From Zero to Batch  : MuleS...
Containerising the Mule Runtime with Kubernetes & From Zero to Batch : MuleS...
 
What’s Mule 4.3? How Does Anytime RTF Help? Our insights explain.
What’s Mule 4.3? How Does Anytime RTF Help? Our insights explain. What’s Mule 4.3? How Does Anytime RTF Help? Our insights explain.
What’s Mule 4.3? How Does Anytime RTF Help? Our insights explain.
 
Mule Runtime: Performance Tuning
Mule Runtime: Performance Tuning Mule Runtime: Performance Tuning
Mule Runtime: Performance Tuning
 
Cloudhub 2.0
Cloudhub 2.0Cloudhub 2.0
Cloudhub 2.0
 
Object Store V2 Workshop
Object Store V2 WorkshopObject Store V2 Workshop
Object Store V2 Workshop
 

Ähnlich wie Migrating to mule 4 - Are you ready for This.

Barcelona admin group study group-14dec2019
Barcelona admin group study group-14dec2019Barcelona admin group study group-14dec2019
Barcelona admin group study group-14dec2019animuscrm
 
Scrum Experience And Links Abdullah raza lakhan
Scrum Experience And Links Abdullah raza lakhanScrum Experience And Links Abdullah raza lakhan
Scrum Experience And Links Abdullah raza lakhanguesta09fdb
 
Top Practices for Successful Mobile Test Automation
Top Practices for Successful Mobile Test AutomationTop Practices for Successful Mobile Test Automation
Top Practices for Successful Mobile Test AutomationTechWell
 
Dreamforce 2019 GG & Spring 20 release features - Halifax, Canada Community
Dreamforce 2019 GG & Spring 20 release features - Halifax, Canada CommunityDreamforce 2019 GG & Spring 20 release features - Halifax, Canada Community
Dreamforce 2019 GG & Spring 20 release features - Halifax, Canada CommunityPrag Ravichandran Kamalaveni (he/him)
 
Discover Salesforce Commerce Cloud and Vlocity Integration Patterns
Discover Salesforce Commerce Cloud and Vlocity Integration PatternsDiscover Salesforce Commerce Cloud and Vlocity Integration Patterns
Discover Salesforce Commerce Cloud and Vlocity Integration PatternsEva Mave Ng
 
Crm success with offshore outsourcing
Crm success with offshore outsourcingCrm success with offshore outsourcing
Crm success with offshore outsourcingCRM Vision
 
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__finalSubhash Patel
 
E-Commerce Project Management
E-Commerce Project ManagementE-Commerce Project Management
E-Commerce Project ManagementJanette Toral
 
Process and methodolgy followed @ Top Guru Assistants
Process and methodolgy followed @ Top Guru AssistantsProcess and methodolgy followed @ Top Guru Assistants
Process and methodolgy followed @ Top Guru AssistantsYatin Kalra (Paul)
 
Best practices for implementing CI/CD on Salesforce
Best practices for implementing CI/CD on SalesforceBest practices for implementing CI/CD on Salesforce
Best practices for implementing CI/CD on SalesforceAIMDek Technologies
 
Introduction to red team operations
Introduction to red team operationsIntroduction to red team operations
Introduction to red team operationsSunny Neo
 
QConSF 2018: Building Production-Ready Applications
QConSF 2018: Building Production-Ready ApplicationsQConSF 2018: Building Production-Ready Applications
QConSF 2018: Building Production-Ready ApplicationsMichael Kehoe
 
Salesforce Circles of Success - August 2015
Salesforce Circles of Success - August 2015Salesforce Circles of Success - August 2015
Salesforce Circles of Success - August 2015SilverlineCRM
 
6 Best Practices for Salesforce Release Management
6 Best Practices for Salesforce Release Management6 Best Practices for Salesforce Release Management
6 Best Practices for Salesforce Release ManagementAutoRABIT
 
TrailblazerDX Motihari.pptx
TrailblazerDX Motihari.pptxTrailblazerDX Motihari.pptx
TrailblazerDX Motihari.pptxOm Prakash
 
Early adoption program guide
Early adoption program guideEarly adoption program guide
Early adoption program guideJodee Barton
 
Automation Culture: Essential to Agile Success
Automation Culture: Essential to Agile SuccessAutomation Culture: Essential to Agile Success
Automation Culture: Essential to Agile SuccessTechWell
 
AUGNYC June 21 Presentations
AUGNYC June 21 PresentationsAUGNYC June 21 Presentations
AUGNYC June 21 PresentationsMarlon Palha
 

Ähnlich wie Migrating to mule 4 - Are you ready for This. (20)

Barcelona admin group study group-14dec2019
Barcelona admin group study group-14dec2019Barcelona admin group study group-14dec2019
Barcelona admin group study group-14dec2019
 
Scrum Experience And Links Abdullah raza lakhan
Scrum Experience And Links Abdullah raza lakhanScrum Experience And Links Abdullah raza lakhan
Scrum Experience And Links Abdullah raza lakhan
 
Top Practices for Successful Mobile Test Automation
Top Practices for Successful Mobile Test AutomationTop Practices for Successful Mobile Test Automation
Top Practices for Successful Mobile Test Automation
 
Dreamforce 2019 GG & Spring 20 release features - Halifax, Canada Community
Dreamforce 2019 GG & Spring 20 release features - Halifax, Canada CommunityDreamforce 2019 GG & Spring 20 release features - Halifax, Canada Community
Dreamforce 2019 GG & Spring 20 release features - Halifax, Canada Community
 
Discover Salesforce Commerce Cloud and Vlocity Integration Patterns
Discover Salesforce Commerce Cloud and Vlocity Integration PatternsDiscover Salesforce Commerce Cloud and Vlocity Integration Patterns
Discover Salesforce Commerce Cloud and Vlocity Integration Patterns
 
Crm success with offshore outsourcing
Crm success with offshore outsourcingCrm success with offshore outsourcing
Crm success with offshore outsourcing
 
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
 
E-Commerce Project Management
E-Commerce Project ManagementE-Commerce Project Management
E-Commerce Project Management
 
Process and methodolgy followed @ Top Guru Assistants
Process and methodolgy followed @ Top Guru AssistantsProcess and methodolgy followed @ Top Guru Assistants
Process and methodolgy followed @ Top Guru Assistants
 
Best practices for implementing CI/CD on Salesforce
Best practices for implementing CI/CD on SalesforceBest practices for implementing CI/CD on Salesforce
Best practices for implementing CI/CD on Salesforce
 
Introduction to red team operations
Introduction to red team operationsIntroduction to red team operations
Introduction to red team operations
 
QConSF 2018: Building Production-Ready Applications
QConSF 2018: Building Production-Ready ApplicationsQConSF 2018: Building Production-Ready Applications
QConSF 2018: Building Production-Ready Applications
 
Salesforce Circles of Success - August 2015
Salesforce Circles of Success - August 2015Salesforce Circles of Success - August 2015
Salesforce Circles of Success - August 2015
 
6 Best Practices for Salesforce Release Management
6 Best Practices for Salesforce Release Management6 Best Practices for Salesforce Release Management
6 Best Practices for Salesforce Release Management
 
TrailblazerDX Motihari.pptx
TrailblazerDX Motihari.pptxTrailblazerDX Motihari.pptx
TrailblazerDX Motihari.pptx
 
Early adoption program guide
Early adoption program guideEarly adoption program guide
Early adoption program guide
 
Automation Culture: Essential to Agile Success
Automation Culture: Essential to Agile SuccessAutomation Culture: Essential to Agile Success
Automation Culture: Essential to Agile Success
 
Oracle Fusion HCM Fixed Scope Offering
Oracle Fusion HCM Fixed Scope OfferingOracle Fusion HCM Fixed Scope Offering
Oracle Fusion HCM Fixed Scope Offering
 
Scrum basics
Scrum basicsScrum basics
Scrum basics
 
AUGNYC June 21 Presentations
AUGNYC June 21 PresentationsAUGNYC June 21 Presentations
AUGNYC June 21 Presentations
 

Kürzlich hochgeladen

Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...KokoStevan
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.MateoGardella
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 

Kürzlich hochgeladen (20)

Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 

Migrating to mule 4 - Are you ready for This.

  • 1. Migratingto Mule 4 Are you ready for this? - Harish Kumar
  • 2. Who am I? • Working as Principal Architect for my current company • MuleSoft Meetup organizer for Japan • Love writing blogs and create tutorial videos • https://www.youtube.com/c/RightC ode • https://dzone.com/users/2876594/ rdatdzone.html • Featured Trailblazer • https://trailhead.salesforce.com/en /trailblazers/harish-kumar • Reach me @ • https://jp.linkedin.com/in/echarish • https://twitter.com/harish884 • https://twitter.com/RightCodeHere ?lang=en
  • 3. Measures to Understand Prior to Migration Process Data is crucial Don’t rush it Encryption and Decryption. Understand the framework Prepare Automated Test Framework. Did you made security policies
  • 4. Deciding On When to Go for Mule 3 To Mule 4 Migration • Organizationalreadiness • Are MuleSoftexpertsfully trained and skilled in using Mule 4? • Learn howthe componentsworkin Mule 4 to see what has changed fromMule 3 • Is yourorganization willing to keep all MuleSoftsupported applicationsup to date with Mule 4 upgrades? • Is Mule 3 and its variantslicense expiring? • Is customer/clientwantingto upgradeall their applicationsto Mule 4? • Environmentsetup for migration
  • 5. Mule4 Vs Mule3 Release,Why Upgrade? • Integrated and Effective Error handling • Better Application Configuration: Maven • Simplified Event Processing and Messaging • DataWeave 2.0 For Better Data Handling
  • 6. Conducting Mule 3 to Mule 4 Migration Process Migrate Patterns Migrate Water marks Migrate Core components Migrate Connectors Custom Connector from 3.x to 4.x
  • 7. Migrate Patterns Migrate message properties Invocation Properties Invocation properties are now called variables in Mule 4. Behavior is exactly the same as in Mule 3. Inbound Properties, Outbound Properties, Inbound and Outbound Attachments These scopes do not exist in Mule 4. Migration re-connection strategies - reconnection hasn’t changed much between Mule 3 and Mule 4 In Mule 3, reconnection strategies were specified on each connector’s config element. These strategies had two purposes: > To reconnect when a running application looses connection to an endpoint > To validate all connections when the application is being deployed. In Mule 4 you can simply specify if deployment should fail or not if connectivity testing fails
  • 8. Migrate Water marks Watermarking is typically usedto perform data synchronization <flow name="syncWithWatermark" processingStrategy="synchronous"> <poll> <fixed-frequency-scheduler frequency="1" timeUnit="HOURS" /> <watermark variable="timestamp" default-expression="#[server.dateTime.format(&quot;yyyy-MM-dd'T'HH:mm:ss.SSS'Z'&quot;)]" selector="MAX" selector-expression="#[payload.LastModifiedDate]" /> <sfdc:queryconfig-ref="Salesforce" query="select Id,LastModifiedDate fromContact where LastModifiedDate &amp;gt; #[flowVars['timestamp']]" /> </poll> <flow-ref name="doYourSyncMagic"/> </flow> <os:object-store name="watermarkStore"persistent="true"/> <flow name="watermark"> <os:retrieve key="watermark" objectStore="watermarkStore"target="watermark"> <os:default-value>2017-09-11T00:00:00.000Z</os:default-value> </os:retrieve> <sfdc:query config-ref="config"> <sfdc:salesforce-query> <![CDATA[ #["Select Id, Name, BillingCity,Phone,Website,LastModifiedDate from account WHERE LastModifiedDate > " ++ vars.watermark] ]]> </sfdc:salesforce-query> </sfdc:query> <flow-ref name="doYourIntegrationLogic"/> <os:store key="watermark" failIfPresent="false" failOnNullValue="false"objectStore="watermarkStore"> <os:value>#[max(payload map $.LastModifiedDate)]</os:value> </os:store> • Mule 4 • Mule 3
  • 9. Automatic Watermark • File, Ftp, Sftp, Database and Salesforce connectors have this capability of doing automatic watermarking <flow name="onNewInvoice"> <file:listener config-ref="file" directory="invoices" autoDelete="false" watermarkMode="CREATED_TIMESTAMP"> <scheduling-strategy> <fixed-frequency frequency="1000"/> </scheduling-strategy> </file:listener> <flow-ref name="onNewInvoice"/> </flow>
  • 10. Batch componentsMigrate ChoicerouterMigrate Exceptionstrategiesto error handlersMigrate Enricherstoo targetparametersMigrate FiltersMigrate The "For Each" componentMigrate Poll componentMigrate Scatter-GatherRouterMigrate TransformersMigrate Migrate Core components
  • 11. Migrate Connectors Anypoint EnterpriseSecurity (AES) Module AMQP Connector Database Connector Email Connector File Connector FTP and SFTP Connector HTTP Connector JMS Connector Object Store Connector Scripting Module Spring Module Validate Module VM Module Web Service Consumer Module XML Module
  • 12. MuleSoft Connector Migration from 3.x to 4.x MuleSoft connector architectureis completely changed in Mule 4.x. In Mule 3.x. Dev-Kit is used to develop the connector. In Mule 4, it is based on Mule4 SDK. Here each processor displayed as a separate connector in Anypoint Studio Pallet.
  • 13. To Migrate the connector to Mule 4, you can use conversion tool Enable the Connector as Mule 4 extensionin pom file Modify Package element: <packaging> mule-extension </packaging> Modify parent element < parent> <groupId>org.mule.extensions</groupId> <artifactId>mule-modules- parent</artifactId> <version>1.0.0</version> </parent> Modify the Folder structure The typical folder structure for Mule 4 is <Module>/api <Module>/internal UpdateAnnotations and ParamsClasses Delete/Add/UpdateClasses based on Mule 4 SDK (Please refer Java Docs)
  • 14. Your Best Friend in MIGRATION! • https://docs.mulesoft.com/mule- runtime/4.2/migration-process • https://docs.mulesoft.com/mule- runtime/4.2/migration-dataweave • https://docs.mulesoft.com/mule- runtime/4.2/migration-mel Migration Documentation • https://docs.mulesoft.com/mule- runtime/4.2/migration-prep Migration Preparation • https://docs.mulesoft.com/mule- runtime/4.2/migration-cheat-sheet Mule 3 to Mule 4 migration cheat sheet
  • 15. Your Best Friend in MIGRATION! • https://docs.mulesoft.com/mule-runtime/4.2/migration-process • https://docs.mulesoft.com/mule-runtime/4.2/migration- dataweave • https://docs.mulesoft.com/mule-runtime/4.2/migration-mel Migration Documentation • https://docs.mulesoft.com/mule-runtime/4.2/migration-prep Migration Preparation • https://docs.mulesoft.com/mule-runtime/4.2/migration-cheat- sheet Mule 3 to Mule 4 migration cheat sheet