October 21, 2014
Hot Topics:
RSS RSS feed Download our iPhone app

Mule - The Open Source Enterprise Integration Solution

  • March 26, 2009
  • By Ayyappan Gandhirajan
  • Send Email »
  • More Articles »

Build file

The following build file will help you compile all related classes and bundle them into a jar file. You could run the "ant jar" in a command prompt for deploying the mule component into the mule server (simply copying the jar into correct place in the mule installation). All that you need to do is to configure the "mule.home" property with the correct value.

<?xml version="1.0" ?>
<project name="mulesamples" default="jar">
<property name="mule.home" location="C:\Apps\MuleSource\mule-2.1.2" />
<property name="mule.lib.user.home" location="${mule.home}\lib\user" />
<property name="build.dest" location="build" />
<property name="mule.samples.jar" location="mule-samples.jar" />
<target name="clean">
 <delete file="${mule.samples.jar}"/>
</target>
<target name="jar" depends="clean">
 <jar destfile="${mule.samples.jar}"
       basedir="${build.dest}"
       includes="samples/**"
       excludes="**/Test.class" />  
  <copy todir="${mule.lib.user.home}" flatten="true">
      <resources>
        <file file="${mule.samples.jar}"/>
      </resources>
  </copy>
</target> 
</project>

Running samples

After Mule is installed and ant build is run with the target "jar", you are ready to start the Mule server. When the Mule server is started successfully, you can test it if you can access the WSDL successfully. For example, try accessing http://localhost:7070/services/PortfolioService?wsdl. You can use the following command for running the mule server.

call "%MULE_BASE%\bin\mule.bat" -config conf\mule-config.xml

Summary

Mule is open source ESB that comes with lot of pre-built bindings, adapters and transformers that helps in cutting development and integration cost to a great extent. The existing Java classes and Spring beans can be directly used within Mule without any change, because Mule separates messaging logic completely from the business logic. Exposing the application through different interfaces is really easy. Mule has existed for quite some time. It has improved a lot and become more robust over time.

A large community is available to help you and there is commercial support too. There are plenty of materials such as presentations, articles, tutorials which are available to get you started. It is easy to install, configure and use. It has a number of relevant features out of the box. The users can simply configure, codelessly, in most cases and use the features right out of the box.

References

Disclaimer

The views and opinions expressed in this article are entirely of the author's and do not necessarily represent the views of the company that he works for. The sample code and configuration are given for example purpose only and the author is not responsible for any potential loss of data or other damages. Please use the samples at your discretion.

About the author

Ayyappan Gandhirajan is working as an Architect with Perot Systems, Bangalore, India. He has a Masters degree in Software Systems from BITS, Pilani and a Bachelors degree in Electronics & Communications from MK University, India. He has more than 10 years of profound experience in architecting, designing and implementing multi-tier applications using Service Oriented Architecture (SOA), Web Services, JAVA, JEE, IBM, BEA and Open Source stack of products. He can be reached at G_Ayyapparaj@yahoo .com or Ayyappan .Gandhirajan@ps.net.





Page 4 of 4



Comment and Contribute

 


(Maximum characters: 1200). You have characters left.

 

 


Sitemap | Contact Us

Rocket Fuel