Adding a Context Parameter to an Implementation of Type WAR

Prerequisites

For more information about context parameters, see the "Context Parameters" section of the TIBCO ActiveMatrix® Service Grid Java Component Development Guide. Steps specific to a WebApp component (with implementation type of WAR) are listed in this section.

Procedure

  1. Add a context parameter to the servlet class as follows:
    @Context public ComponentContext componentContext;
  2. For a WAR file that uses the @Context annotation, copy com.tibco.amf.platform.common_1.4.0.001.jar and com.tibco.amf.platform.runtime.extension_1.6.0.004.jar from <TIBCO_HOME>/component/shared/1.0.0/plugins to the system's %temp%/.SDSWAR-<WAR filename>/WEB-INF/lib folder.
  3. Clean the SOA WebApp project using Project > Clean and rebuild it.