Special Considerations for Servlet Virtualization

Document ID:  TEC1099765
Last Modified Date:  08/07/2017
{{active ? 'Hide' : 'Show'}} Technical Document Details

Products

  • CA Continuous Application Insight
  • CA Service Virtualization

Releases

  • CA Continuous Application Insight:Release:10.0
  • CA Continuous Application Insight:Release:8.0.0
  • CA Continuous Application Insight:Release:8.0.1
  • CA Continuous Application Insight:Release:8.0.2
  • CA Continuous Application Insight:Release:8.1
  • CA Continuous Application Insight:Release:8.2
  • CA Continuous Application Insight:Release:8.3
  • CA Continuous Application Insight:Release:8.4
  • CA Continuous Application Insight:Release:8.5
  • CA Continuous Application Insight:Release:9.0
  • CA Continuous Application Insight:Release:9.1
  • CA Continuous Application Insight:Release:9.5
  • CA Continuous Application Insight:Release:9.5.1
  • CA Service Virtualization:Release:10.1.0
  • CA Service Virtualization:Release:10.0
  • CA Service Virtualization:Release:8.0.0
  • CA Service Virtualization:Release:8.0.1
  • CA Service Virtualization:Release:8.0.2
  • CA Service Virtualization:Release:8.1
  • CA Service Virtualization:Release:8.3
  • CA Service Virtualization:Release:8.2
  • CA Service Virtualization:Release:8.4
  • CA Service Virtualization:Release:8.5
  • CA Service Virtualization:Release:9.0
  • CA Service Virtualization:Release:9.1
  • CA Service Virtualization:Release:9.5
  • CA Service Virtualization:Release:9.5.1

Components

  • CA ITKO LISA PATHFINDER:ITKOPF
  • CA ITKO LISA Virtual Services Environment (VSE):ITKOVS
Introduction:

Special considerations must be taken when virtualizing servlets and similar java programs.

Background:

Prerequisite: The DevTest agent must be installed prior to capturing transactions. If you need assistance installing the DevTest agent, please open a support ticket.

Environment:
All supported DevTest platforms.
Instructions:

The topmost servlet class must extend the HttpServlet class and contain at least one method that looks something like this:
public void <method name>(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {

do work

}

Where <method name> is a standard method found in the HttpServlet Class.
Examples: doGet, doPost, doPut, doDelete, etc…
All of these methods have the same structure.
Return: void
Input parameters:
          HttpServletRequest: contains the request information
          HttpServletResponse: a structure that is modified and later processed by a web server like Tomcat.

The work done in these methods will modify the HttpServletResponse. This modified structure is passed back to the calling class and the Web page is rendered or other work performed.

If you attempt to capture this method and build a Virtual Service with the DevTest java agent, you will run into issues and the expected web page will not be rendered. Since the agent knows the web page is rendered elsewhere it will not capture this java call.

Solution:
This call can be captured at the protocol level by using setting the http protocol to “full data” in the portal.
The java calls below this class can be captured using the normal java class/method capture procedures.

Additional Information:

Not applicable.

Please help us improve!

Will this information enable you to resolve your issue?

Please tell us what we can do better.

{{feedbackText.length ? feedbackText.length : '0'}}/255

{{status}}

Not what you were looking for?

Search Again >

Product Information

Support by Product >

Communities

Join a Community >