Adding a Reference Outside of TIBCO Business Studio - BPM Edition
Using a WAR file that was not created in TIBCO Business Studio - BPM Edition, you can add a reference to a WebApp component.
To do this:
- Procedure
- Ensure that the reference code is added using
@Reference
annotations and is made available through theCLASSPATH
. - 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.
- Place the interface JAR files in the WEB-INF/lib folder.
- Copy
com.tibco.amf.platform.common_1.4.0.001.jar
andcom.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. - Create a WAR file from the dynamic web project.
- Using a ZIP utility, remove the JAR files copied in step 4 from the WEB-INF/lib folder of the exported WAR file.
- Write the code to invoke the reference.
- Follow the procedure documented in the Adding a WebApp Component Using the WAR File section.