SlideShare a Scribd company logo
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!

More Related Content

What's hot

What's hot (20)

Custom policies in mule 4 and a circuit breaker example
Custom policies in mule 4 and a circuit breaker exampleCustom policies in mule 4 and a circuit breaker example
Custom policies in mule 4 and a circuit breaker example
 
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
 
Solace PubSub+ MuleSoft Connector for Mule 4
Solace PubSub+ MuleSoft Connector for Mule 4Solace PubSub+ MuleSoft Connector for Mule 4
Solace PubSub+ MuleSoft Connector for Mule 4
 
MuleSoft Deployment Strategies (RTF vs Hybrid vs CloudHub)
MuleSoft Deployment Strategies (RTF vs Hybrid vs CloudHub)MuleSoft Deployment Strategies (RTF vs Hybrid vs CloudHub)
MuleSoft Deployment Strategies (RTF vs Hybrid vs CloudHub)
 
Rtf v2 ingress muleSoft meetup self managed kubernetes
Rtf v2 ingress muleSoft meetup self managed kubernetesRtf v2 ingress muleSoft meetup self managed kubernetes
Rtf v2 ingress muleSoft meetup self managed kubernetes
 
Custom Connector development using Mule SDK
Custom Connector development using Mule SDKCustom Connector development using Mule SDK
Custom Connector development using Mule SDK
 
Clustering, Server setup and Hybrid deployment setup using Anypoint Runtime M...
Clustering, Server setup and Hybrid deployment setup using Anypoint Runtime M...Clustering, Server setup and Hybrid deployment setup using Anypoint Runtime M...
Clustering, Server setup and Hybrid deployment setup using Anypoint Runtime M...
 
Benefits of integration with the Mulesoft Anypoint Platform
Benefits of integration with the Mulesoft Anypoint PlatformBenefits of integration with the Mulesoft Anypoint Platform
Benefits of integration with the Mulesoft Anypoint Platform
 
Cloudhub 2.0
Cloudhub 2.0Cloudhub 2.0
Cloudhub 2.0
 
#6 Calicut MuleSoft Meetup : Demystyfying Custom Policies in Mule
#6 Calicut MuleSoft Meetup : Demystyfying Custom Policies in Mule #6 Calicut MuleSoft Meetup : Demystyfying Custom Policies in Mule
#6 Calicut MuleSoft Meetup : Demystyfying Custom Policies in Mule
 
Dataweave Libraries and ObjectStore
Dataweave Libraries and ObjectStoreDataweave Libraries and ObjectStore
Dataweave Libraries and ObjectStore
 
Sprinting with Anypoint Runtime Fabric
Sprinting with Anypoint Runtime FabricSprinting with Anypoint Runtime Fabric
Sprinting with Anypoint Runtime Fabric
 
Error Handling in Mulesoft
Error Handling in MulesoftError Handling in Mulesoft
Error Handling in Mulesoft
 
Mulesoft corporate template final
Mulesoft corporate template  final Mulesoft corporate template  final
Mulesoft corporate template final
 
Mumbai MuleSoft Meetup:Batch Processing, Anypoint Messaging Queue and Custom ...
Mumbai MuleSoft Meetup:Batch Processing, Anypoint Messaging Queue and Custom ...Mumbai MuleSoft Meetup:Batch Processing, Anypoint Messaging Queue and Custom ...
Mumbai MuleSoft Meetup:Batch Processing, Anypoint Messaging Queue and Custom ...
 
Vanrish Mulesoft Integration architect ppt
Vanrish Mulesoft Integration architect pptVanrish Mulesoft Integration architect ppt
Vanrish Mulesoft Integration architect ppt
 
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.
 
Frequently asked MuleSoft Interview Questions and Answers from Techlightning
Frequently asked MuleSoft Interview Questions and Answers from TechlightningFrequently asked MuleSoft Interview Questions and Answers from Techlightning
Frequently asked MuleSoft Interview Questions and Answers from Techlightning
 
Designing and building Mule applications
Designing and building Mule applicationsDesigning and building Mule applications
Designing and building Mule applications
 
Mule Runtime: Performance Tuning
Mule Runtime: Performance Tuning Mule Runtime: Performance Tuning
Mule Runtime: Performance Tuning
 

Similar to Migrating to mule 4 - Are you ready for This.

Crm success with offshore outsourcing
Crm success with offshore outsourcingCrm success with offshore outsourcing
Crm success with offshore outsourcing
CRM Vision
 

Similar to 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
 

Recently uploaded

The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
Avinash Rai
 
Accounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdfAccounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdf
YibeltalNibretu
 

Recently uploaded (20)

How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
B.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdfB.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdf
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Accounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdfAccounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdf
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
Benefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational ResourcesBenefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational Resources
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
NLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptxNLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptx
 

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