Choosing an Injection Method
If you are uncertain which procedure to use to inject the agent into your web pages, follow these guidelines in the given order:
- If you cannot use automatic injection, and you can edit the source code of your web application, use one of the kinds of assisted injection. See Using Injection Rules (Java Only) or Assisted Injection-Using Attribute Injection.
Manual injection is supported on all platforms and frameworks. To set up a manually injected page:
Assisted injection is available in two variants. In both cases, some of the work is done manually by you and some of the work is done by the server-side Java or .Net app agent.
Assisted Injection Using Injection Rules (Java Only)
For detailed information on using this form of assisted injection, see Assisted Injection.
Assisted Injection Using Attribute Injection
In this type of assisted injection, you copy small code snippets appropriate to your framework into your page templates or other code that creates your pages. This snippet contains the two variables
JS_FOOTER, which the app agent replaces with the appropriate information in the response object at runtime.
For detailed information on using this form of assisted injection, see Using Attribute Injection.
If you are using Nginx or Apache as a web container or as a reverse proxy in front of your web container, you can use directives to inject the agent into the response object. See Injection Using Nginx or Injection Using Apache for more information.