DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

The software you build is only as secure as the code that powers it. Learn how malicious code creeps into your software supply chain.

Apache Cassandra combines the benefits of major NoSQL databases to support data management needs not covered by traditional RDBMS vendors.

Generative AI has transformed nearly every industry. How can you leverage GenAI to improve your productivity and efficiency?

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workloads.

Related

  • Designing a Java Connector for Software Integrations
  • Kafka JDBC Source Connector for Large Data
  • Make Your Integration Seamless By Using Ballerina Client Connectors
  • How to Integrate a Distributed Database With Event Streaming

Trending

  • Dropwizard vs. Micronaut: Unpacking the Best Framework for Microservices
  • Cosmos DB Disaster Recovery: Multi-Region Write Pitfalls and How to Evade Them
  • DGS GraphQL and Spring Boot
  • Building Resilient Identity Systems: Lessons from Securing Billions of Authentication Requests

What's New in Mule 4

The upcoming Mule version 4 adds useful features like a message transformer, simplified connectors, a Mule API, and more.

By 
Anupam Gogoi user avatar
Anupam Gogoi
·
Jul. 26, 17 · News
Likes (7)
Comment
Save
Tweet
Share
31.8K Views

Join the DZone community and get the full member experience.

Join For Free

Mule is going to release version 4 soon. Here are some of the important features that will ease development, which will be available in Mule 4:

Message Transformer

In Mule 3, when we use DW and transform messages, we need to explicitly convert the message to a Java object so that the output can be used in Router components, For Each, etc. In Mule 4, you don't need to explicitly convert messages to Java objects. Mule 4 will do it automatically for you.

Simplified Connectors

The File, FTP, JMS, and VM connectors have been updated. The connectors have been made operation based to, for example, create directories/files. Mule 4 has a connector named File-Create Directory, to write files and directories.

Error Handling

Error handling has been modified significantly in Mule 4. In Mule 3, Error handling is Java based, but in Mule 4, Java exceptions are optional. The biggest improvement is that one can catch an exception of some specific block of components (TIBCO has this feature) instead of a centralized exception block. And the exceptions can be re-propagated.

As shown in the diagram below, we can handle the exceptions of some component/s in the same main flow:

Image title

Also, exceptions can be chosen from the dropdown list:

Image title

Anypoint Studio 7

The Studio has been improved a lot. The following new features have been added to the Studio:

  • The palettes have new icons.

  • Now one can save their favorite palettes.

  • Deeper Maven integration.

  • One can right click on a palette and go directly to its XML configuration.

  • The flows are collapsible.

Image title

New Tools

Some new dev tools have been added in Mule 4. One of them is Design Center. It is targeted to the less technical Mule users. Design Center is a web based GUI tool which can facilitate the Mule experience for many users who are less technical or who want to have a quick product review of Mule without the hassle of installing the whole Anypoint Studio in their system.

Management

Connector Updates

Connector updates are no longer bound to the Runtime updates. They are no longer stored inside Runtime- instead, they are distributed outside. It makes it easier to get the connector updates. So, one can update the whole Runtime to get all the updates of the connectors/components, or one can update only the specific connector/component. This gives us a lot of flexibility and can decrease the problems that we might have when updating the whole Runtime.

Mule API

In Mule 3, the APIs are not well defined and scattered. In Mule 4 the APIs will be defined in a structured way.

Self-Tuning

In Mule 3, we have to tune the Runtime, manually defining the Threadpool, etc. But in Mule 4, it will be dynamic and self-tuning so that one can get optimum performance. There will be a centralized global place to tweak the threads instead of tweaking every flow separately.

Driver Reuse

Mule API and SDK

DevKit has been replaced by Mule SDK. Now one can easily extend Mule. It's totally annotation based. It's similar to Devkit with some advanced functionalities. Most importantly, it will not generate any code automatically, contrary to DevKit. It will make the custom code (component/connectors) easily manageable and smaller in size.

New Ways to Extend Mule

Apart from using SDK to extend Mule, now one can package a flow that performs certain actions to be reused in the form of a connector using Anypoint Studio 7.

REST Connect

A new feature called REST Connect has been introduced in Mule 4. It can take any API specification, e.g. RAML or Swagger, and based on the specification, it can generate a Connector. That means that once you publish an API in the Anypoint Exchange 2, it will automatically convert the API to a connector.

Dependency Relationships in the Exchange

In Anypoint Exchange 2, the APIs can have dependencies.

Easy Migration

To migrate from 3.x to Mule 4, it will come with the following tools:

  • Application Migration Tool: this tool can migrate Mule 3 application syntax to Mule 4 application syntax.

  • Devkit Migration Tool: this tool can migrate Mule 3 connectors to Mule 4 connectors.

Some Important Changes

Here are some of the important changes that will be available in Mule 4:

Message Structure: Message Structure will be changed in Mule 4. Instead of properties, there will be Attributes, as shown below:

Image title

Connector Configuration: The output of connectors can be stored directly in variables. Look at the HTTP request connector:

Image title

Expression Language: DW language can be used in MEL, also.

Image title

Transformation Inside Connector: Basic DW transformation can be done inside Connector. Please look at this diagram:

Image title

Conclusion

These are a few of the many changes that will come along with Mule 4. I will try to cover more in my next sections.

Connector (mathematics)

Opinions expressed by DZone contributors are their own.

Related

  • Designing a Java Connector for Software Integrations
  • Kafka JDBC Source Connector for Large Data
  • Make Your Integration Seamless By Using Ballerina Client Connectors
  • How to Integrate a Distributed Database With Event Streaming

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: