Tag: JavaScript

At Mulesoft we have software deep in our DNA: Our core product source code is on github. We have hundreds of public projects there as well, and we have contributed to many open source projects including Node.js itself. We’re excited about Node.js and have several large, sophisticated Node.js projects in development. Our use of cutting edge Node.js features has resulted in both a lot of knowledge gained and, no surprise, a lot of pain experienced.

It’s been a long time coming, but we’re glad it’s here. Oracle just announced the arrival of Java 8 – a long-anticipated update which includes the addition of lambda expressions and support for functional programming. Here’s a look at some of the new features and why they are important to engineering at MuleSoft.

Functional Support

Lambda expressions bring functional programming to the language. Lambdas enable you to treat functionality as a method argument, or code as data and express instances of single-method interfaces more compactly. We experiment in different languages here all the time and functional programming has made a big comeback in the past few years with more developers moving to , Scala and Clojure due to their expressiveness and ease of use. It’s great to see Lamba support in Java and acknowledgement that sometimes there are simpler ways to do things.

alberto.pose on Wednesday, September 25, 2013

Introducing the NPM Maven Plugin



Suppose that you have a Maven project and you want to download modules previously uploaded to NPM. One way of doing that without running is by using the npm-maven-plugin. It allows the user to download the required Node modules without running node.js: It is completely implemented on the JVM.

Getting Started

First of all you will need to add the Mule Maven repo to you pom.xml file:

After doing that, you will need to add the following to the build->plugin section of your pom.xml file:

When you come from a class based programming language, doing objects in feels weird: Where is the class keyword? How can I do inheritance?

As we are going to see, JavaScript is actually pretty simple. It supports class like definition of objects and single-inheritance out of the box.

But first, a small tip to change your reading experience. By using your browser JavaScript console, you can play with the examples without leaving this page:

  • Chrome: MacOSX Cmd-Alt-J / Windows Ctrl-Shift-J
  • Firefox: MacOSX Cmd-Alt-K / Windows Ctrl-Alt-K
  • Safari: Cmd-Alt-C (only if you enable the Develop menu on Advanced Settings)

If you’ve evaluated RESTx, our brand new platform for building RESTful web services, you’ve certainly noticed its Python- hybrid nature. Indeed, besides its vocation of being the simplest way to create RESTful web services, has been designed with the idea of letting programmers use their favorite JVM language when creating resource components.

So far, we naturally had Python, with which the RESTx core has been written, and Java, the default language of the JVM. We’re happy to announce that, since version 0.9.4it is now possible to write RESTx components with !

By adding support for JavaScript in RESTx, our goal was to open the door of web services and application integration to web developers. To be sure, the need for integrating systems and applications is not the preserve of enterprise developers anymore, especially with the advent of SaaS and cloud computing. With RESTx, web developers can now accomplish such a complex task within the comfort of their favorite language.

Version 0.9.4 of RESTx – the fastest way to create RESTful web services – has just been released. The main features introduced by this version are the ability to write components in server-side , the addition of a client library and much improved handling of content types for input and output. You can download it now.

I am very excited to announce that MuleSoft has launched a new open source integration product called iBeans (short for Integration Beans). provide a way to dramatically simplify common integration tasks for Web application developers.

Why did we create iBeans?