Mule is a lightweight Java-based enterprise service bus (ESB) and integration framework developed by MuleSoft. Mule ESB allows developers to connect applications together easily and quickly, enabling them to exchange data.
In this post, we will illustrate how to install JENNIFER java agent on Mule ESB.
Agent Installation and Configurations
To install JENNIFER agent on Mule ESB, we need to add JENNIFER JVM options to the wrapper configuration file. This file is typically located at
- Open the wrapper.conf file with your favorite editor.
- Add JENNIFER agent options to the "wrapper.java.additional.n" properties. Where n is the next consecutive available number.
In general, the configurations should look like the following
Make sure to replace n with the correct number according to your system setup.
In our test, we set the options as follow
Application Start Point
The previous steps install the agent. At this point, you should see the mule instance on JENNIFER dashboard. However, additional configurations are required.
Mule ESB applications are called "flows". In order to see the applications details, we need to setup application start point in JENNIFER. You need to set the execute method of class CommitTransactionInterceptor as the application start point
The following configurations are only applied to Mule Standalone 3.9.0 and above.
Application Name Settings
The last step is to configure JENNIFER to set Mule Flow name as the application name. Open the Application Name Configuration Menu and select the "Rename" tab.
Set the return value of getName method of class AbstractFlowConstruct as the target method to rename the transaction