Contact Free trial Login

Using Mule with Spring

Mule leverages the Spring framework for developing Java applications. M

Supported Spring Versions

  • Mule 3.8: Spring 4.1.9 and Spring Security 4.0.4

  • Mule 3.7.5: Spring 4.1.9 and Spring Security 4.0.4

  • Mule 3.7.0 - 3.7.4: Spring 4.1.6 and Spring Security 4.0.1

  • Mule 3.6 and earlier: Spring 3.2 and Spring Security 3.0

Mule App XML Configuration File

The most common way to configure Mule is with Spring XML files that use custom Mule namespaces.

Use one of the two namespaces in your spring framework schema in Mule:



Spring Application Contexts

Mule offers several options for creating and managing Spring application contexts for your application.

  • Single application context

  • Multiple application context

  • Existing application context

  • Existing application context as parent

Build Spring beans to define component behaviors which Mule applications can reference.

Spring Bean Definition Profiles

Mule’s configuration file takes advantage of Spring 4.1’s ability to create bean definition profiles. You can use Spring bean definition profiles to register different beans for different target environments, instead of using one bean for all target environments. Refer to Spring’s blog posting for more information about bean definition profiles.

We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used and to tailor advertising. You can read more and make your cookie choices here. By continuing to use this site you are giving us your consent to do this.