Deploy an HTML 5 website with Mule ESB

Mule ESB has a Jetty server within so its possible to deploy a JSP and HTML pages through it.


The following example shows how to deploy a HTML 5 page in Mule ESB.

MuleWebsite-config.xml

Github

You can notice 3 important things in line number 16

  • The port parameter: this parameter define the port of your website.
  • The host parameter: this parameter could be the host name or the IP.
  • The directory parameter: in this directory you have to store your website files including WEB-INF directory as usual in all java application servers and servlet containers. The ${app.home} keyword refers to /PROJECT-FOLDER/ directory in Mule ESB standalone and /PROJECT-FOLDER/src/main/app/webapps directory in Mule Studio.

 

Index.jsp

Github

Notice that is an HTML 5 compliant web page wrapped in an JSP file.

 

The Mule Studio project source code is here MuleWebsite.zip or you can find the project on Github

9 comments: On Deploy an HTML 5 website with Mule ESB

Leave a reply:

Your email address will not be published.

Copyright © 2016 Marco Tello.