Cross domain REST calls using CORS

motif

To fight XSS attacks, the web browser imposes the same origin policy for HTTP requests made by JavaScript code:

But there are a lot of use cases where this kind of cross domain HTTP request is desired, so developers came up with some workarounds:

  • Server side proxy: the idea is to avoid cross domain requests in the browser by doing them on the server:To do that in Mule you can use the HTTP proxy pattern as explained in this post.

Automate your deployments with the Jenkins API

types of apis

The Jenkins build systemhas an open API which means we can do stuff with it. Today we’re going to automate the deployment of an application with a specific stable version.  Jenkins has a great UI, it’s very flexible indeed, but sometimes is not enough. For instance, for CloudHub we deploy a Jenkins build to our QA environment, according the period in our development cycle, and we also need to execute automated tests.

Mule Studio Beta Milestone 2 is here

motif

Testing AJAX: Selenium’s ElementNotFoundException

motif

com.thoughtworks.selenium.SeleniumException: ERROR: Element bla bla bla not found

Ok. Face the music. Let’s debug.

Check list:

  • Is locator well defined? Yes. √
  • The element is rendered? Yes.√
  • Do I have any error when I execute code step by step? No.χ
  • Am I crazy? Perhaps. But the problem continues to be there and I have no clue why!!!

What is happening here?

Building Rich Browser-based Apps with Mule Cloud Connect

January 19 2011

0 comments
motif

We’ve seen a great response to Mule Cloud Connect from users and partners. Many folks want to see it in action so we thought it would be good to put together a webinar with a live demo.

One of the drivers for Mule Cloud Connect was that we are seeing that traditional three-tiered application architecture is outmoded – Web applications today require integrating multiple data-sources and services, both in the cloud and behind the firewall,

Walk this Way: Building AJAX apps with Mule

October 13 2010

5 comments
motif

There are some cool new features in Mule 3 for building AJAX applications. I figured I’d take you through a tour of the GPS Walker, an small example that demonstrates how to use AJAX to communicate from a Mule Service to the browser. This example uses other new features in Mule 3 including automatic JSON bindings, the @Schedule annotation and Flow.

Turbo charging front-end development with user-created RESTful resources

motif

In this article, I will show you how RESTx – an open source project for the creation of RESTful web services and RESTful resources – allows front-end developers to quickly and easily make their own data resources, without having to rely on the back-end server team for every new requirement.

Mule 3.0-M2 and beyond

motif

I’m pleased to announce that Mule team has just released 3.0 Milestone 2. Before we get into the features coming in Mule 3.0, I’d like to talk about the theme for this release.
The overall theme for Mule 3.0 is simplicity. We are looking at every part of Mule to see what we can do to make things even easier. Mule is a powerful platform, but we realise not everyone wants or needs all that power.