In FusionReactor 6.0.0 we have added the ability to name the transaction for each web request. This feature allows for a greater easy of identifying requests, and grouping similar requests together. There are many different ways to name the transaction and FusionReactor will automatically try all options, however there is a priority order.
- Request attribute (fr.transaction.name)
- Supported Framework
- ColdFusion Page Name
- JSP Class Name
- Servlet init parameter (fr.transaction.name)
- Servlet Name
- Filter init parameter (fr.transaction.name)
- Filter Name
- The Default Transaction Name
In the event that FusionReactor is unable to detect the name of the transaction via any of the options above (or if the automatic transaction naming is disabled), it will default to name set as the default. This is set in the FusionReactor -> Settings page (http://docs.intergral.com/display/FR60/Settings).
If you want to override the automatic naming detected by FusionReactor you can set the name for the transaction using request attributes of parameters at different levels (filter and servlet). In all cases the key used is fr.transaction.name.
To set the transaction name used by FusionReactor as a filter init parameter, edit the filter configuration and add the property fr.transaction.name with the value being the name of the transaction. This can be done via the web.xml adding the parameter to the filter definition.
Similar to the filter parameter settings you can set the transaction name for FusionReactor to use as a servlet init parameter. This is also done via the web.xml file.
To set the transaction name with a request attribute simply add the attribute to the request object. FusionReactor will then use this attribute as the transaction name when the request is complete. This approach will only affect the requests where this attribute is set.
To set the transaction name with the FusionReactor API (FRAPI) you simply need to call the appropriate method within your code. This method of setting the transaction name takes precedence over all other methods, however it will only affect the single request where this method is called.
FusionReactor will automatically name transactions using a few different ways, FusionReactor will try all of these methods without needing any additional settings.
In FusionReactor 6.0.0 we have added instrumentation for several Java Frameworks (Spring, Structs2 etc..). If you are using one of these frameworks, then FusionReactor will take the framework level name for the action being taken. For example in Spring a request matching a @RequestMapping annotation will take the name of the method as the transaction name.
If you are not using a framework that is not yet supported by FusionReactor, then FusionReactor will use the name of the page of JSP class as the transaction name.
If you are using servlets to serve your requests and do not use JSP pages or a supported framework. FusionReactor will use the name of the servlet as the transaction name. Unless you have defined the transaction name via the servlet init parameter.
If you are using filters to serve your requests and do not use JSP pages or a supported framework. FusionReactor will use the name of the filter as the transaction name. Unless you have defined the transaction name via the filter init parameter.
|Last Updated:||Today 3:15 PM|
FRS-367: Application Naming