Building Enterprise Mule Apps with Gradle – Part 3


This is the third post on the Gradle Plugin Series, and a lot has happened to the plugin since the first article of the series was published. Today, I’m announcing exciting new features useful for tackling enterprise users’ needs. For more information on how to get started on building apps with gradle, please check the previous blog post and specially the project’s readme file. Now let’s get started.

Handle Errors in your Batch Job… Like a Champ!


Fact: Batch Jobs are tricky to handle when exceptions raise. The problem is the huge amounts of data that these jobs are designed to take. If you’re processing 1 million records you simply can’t log everything. Logs would become huge and unreadable. Not to mention the performance toll it would take. On the other hand, if you log too little then it’s impossible to know what went wrong, and if 30 thousand records failed, not knowing what’s wrong with them can be a royal pain. This is a trade-off not simple to overcome.

We took the feedback we got from the early releases around this issue, and now that Mule 3.5.0 and the Batch Module finally went GA with the May 2014 release, small but significant improvements took place to help you with these errors. Let’s take a look at some simple scenarios.

Intro: Salesforce to Database Anypoint Templates

June 11 2014

0 comments 0

I’d like to announce and introduce you to our second set of Anypoint TemplatesSalesforce to Database. This set leverages the newly improved Database connector which allows you to connect with almost any JDBC relational database, consistently using the same interface for every case. Our first set of templates, Salesforce Org to Org integration, and is a good base for any “Salesforce to X”, or, “X to Salesforce” integrations.

If you are new to our templates, they are essentially Anypoint Studio projects (a.k.a. Mule Applications) that were built with the intention of being configured, customized, extended and reused. They’re built on top of five base data integration patterns:





Business Cases for Salesforce and Database Integration

Below are some of the key use cases that we built this set of templates around. Note that each template can serve as a good base even if you are integrating more than just Salesforce and Databases.

The Entities Graph Inconvenience

June 10 2014

0 comments 0

It seems like everyone is talking about APIs lately.

We can find tons of them out there. More and more cloud based services and on-premises services are exposing themselves to the outside world through APIs. Many of these systems are fairly complex, so they need a complex object model to reach their full potential. By complex I mean deep object graphs and many relations between the objects. While this is easy to achieve in any object oriented programming language, it is not as easy to serialize them or to deal with them afterwards.

For instance we all have to deal, at some point or another, with big XML documents describing an objects graph.

Here is were the API world starts getting a little bit more complicated. How do these services expose such complexity to the open world and at the same time offer an easy enough way of operate with the model?

There are a few issues to deal with, let’s take a look at them.

Hybrid Integration Platforms – What are they? How to use one?

June 6 2014

0 comments 0

Applications, systems, and services used by businesses have evolved over the years, complicating the enterprise ecosystem. With the growing need to connect heterogeneous endpoints in various locations, businesses end up with a divided ecosystem – with systems on-premises needing to communicate with applications in the cloud.

Enabling seamless connectivity between systems and services across the enterprise requires a Hybrid Integration Platform (HIP). An HIP leverages both an Enterprise Service Bus (ESB) and cloud-based integration technology, like an iPaaS solution to support the implementation of applications that leverage cloud and on-premises resources. To accelerate the establishment of an HIP in your organization, Gartner provides best practices that highlight how your organization can best use a hybrid integration platform that supports cloud-to-cloud, cloud-to-ground and on-premises integration.

In this Gartner report, “How to Use Hybrid Integration Platforms Effectively”,  analyst Jess Thompson covers:

  • What is an HIP?
  • How to effectively establish an HIP in your organization
  • Analysis of a large pharmaceutical company’s implementation of an HIP

Download the entire report »

Enabling Transactions in Node.js using Domains – Part 2

June 5 2014

0 comments 0


In the first blog post of this two-part series, we reviewed how our data access layer was built and how multi-tenancy data was passed around using domains. We also hinted at how difficult this was to actually get off the ground.

API Manager – Simple JAVA Client Access Example

June 3 2014

0 comments 0

I recently had a customer wanting to build a simple UI to maintain additional filtering data associated to a defined “Contract” contained within API Manager. This code would have to run outside of the MuleSoft eco-system, as a service, within a JAVA Data Layer container environment.

My goal was to develop a very simple JAVA API Manager Client Access Example, whose concept prototype could be used as a basis to construct a necessary Mashup of API Manager Resources and Custom Client oriented resources. A primary emphasis is to understand the OAUTH2 Authentication exchange requirements.


  • API Manager Account
  • JAVA Development Environment
  • Maven

API Manager

To begin you can review the API Manager Console located at

CONNECT 2014 Recap!

May 30 2014

0 comments 0


That’s a wrap everyone! CONNECT 2014, the integration conference of the year, has come to an end! With speakers from companies like Salesforce, Tesla, Box, Cisco, and Stripe, in addition to our very own MuleSoft experts, there were plenty of great sessions for everyone.

Fun facts:

  • Over 1,200 registrants between CONNECT and its sister event APIcon
  • Attendees from 36 countries
  • Over 300 unique companies represented

Anypoint Platform May 2014 now available!

May 28 2014

0 comments 0

We’re very excited to announce the May 2014 release of Anypoint Platform.  This new release, which includes the GA release of Mule 3.5.0, provides a faster, easier way to deliver data to business applications, whether they are event-driven, real-time data or batch data. The Anypoint Platform May 2014 release also includes templates to solve the most common Salesforce integration challenges and new security certifications for CloudHub, speeding time to market for SaaS integration initiatives.  

Meet a Muley – Max the Mule!

May 27 2014

0 comments 0

It’s been a while since we’ve had a Meet a Muley post, but we thought we’d bring it back this week and introduce you to a very special Muley – Max! Read on to hear more from the integration hero – from his favorite band to what exactly it is that he does here at MuleSoft.

First thought that came to mind when you looked into the mirror today?

  • Silos beware.

Favorite Band?