Adding a Reference Outside of TIBCO Business Studio

Using a WAR file that was not created in TIBCO ActiveMatrix Business Studio, you can add a reference to a WebApp component.

To do this:

Procedure

  1. Ensure that the reference code is added using @Reference annotations and is made available through the CLASSPATH.
  2. Use the command-line or Eclipse to generate the interface JAR files from the WSDL. The WSDL can also be generated using JAXB or XMLBeans.
  3. Place the interface JAR files in the WEB-INF/lib folder.
  4. 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 WEB-INF/lib folder of the WTP or dynamic web project.
  5. Create a WAR file from the dynamic web project.
  6. Using a ZIP utility, remove the JAR files copied in step 4 from the WEB-INF/lib folder of the exported WAR file.
  7. Write the code to invoke the reference.
  8. Follow the procedure documented in the Adding a WebApp Component Using the WAR File section.