![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
Setting up Eclipse for TIBCO ActiveMatrix BusinessWorks ActiveAspects Plug-in DevelopmentTo setup Eclipse for the TIBCO ActiveMatrix BusinessWorks ActiveAspects Plug-in development do the following:
2. Click Add External JARs to add all the required JARs contained in the installation to the build path and click Finish.
−
− poa-samplesImpl.jar and poa-bwaa-samplesImpl-src.jar
3. To attach the source to the samplesImpl.jar, right-click on the JAR in the Referenced Libraries in the Eclipse Project Explorer and select properties. In the Java Source Attachment, select External File and browse to samplesImpl-src.jar.
4. To attach the source to the samplesImpl.jar, right-click on the JAR in the Referenced Libraries in the Eclipse Project Explorer and select properties. In the JAVA Source Attachment, select External File and browse to samplesImpl-src.jar.To create a synchronous advice implementation, you have to extend the SyncAdvice class.
− Package - com.bwaa.tutorial
− Name - JMSDocumentLogger
3. Extend the SyncAdvice (for Sync Advice Implementations) class with the required generics.
1. Make sure that Export generated classfiles and resources check box is selected.
2. Click Browse in the JAR file field and select the export destination. For example, C:\tibco_bwaa\bw\plugins\bwaa\lib\bwaaTutorialAdviceImpl.jar.
The export destination must be in the classpath of BWAA. The recommended export location is $TIBCO_HOME\bw\plugins\bwaa\lib.
3. Click Finish.
To run the scenario, you must copy the aspect.jar (in this case, JMSLoggerAspect.jar) file in the bw\plugins\bwaa\aspects folder.<aspect order="1" targetNamespace = "http://example.org/Eight" xmlns = "http://schemas.tibco.com/bw/poa" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation = "http://schemas.tibco.com/bw/poa BWAspect.xsd"><query queryLanguage = "http://schemas.tibco.com/bw/poa/pointCutSelectionLanguage">activity (name = "JMS*")</query>Now validate this XML against the bwaspect.xsd file.Figure 3Aspect JAR Structure
To run the scenario, you must copy the aspect.jar (in this case, JMSLoggerAspect.jar) file in the bw\plugins\bwaa\aspects folder.The following steps provide the detailed information about using TIBCO Designer with this example.
1. Open $TIBCO-HOME\Designer\5.7\bin\designer.tra and append the aspect lib folder to the property tibco.env.CUSTOM_CP_EXT. The default aspect lib folder is $TIBCO-HOME\bw\plugins\bwaa\lib.
2. Create a properties file, for example, C:\test\props.cfg, and add the following properties to it:
− ServiceAgent.poa.serviceagent.Class=com.tibco.bw5.poa.core.runtime.DefaultBw5AspectServiceAgentImpl(Replace the value of the aspectPath property with the appropriate value based on your environment)
4. Go to the Tester tab, click the Start button to start debugging your project and then click the Advanced button to launch the advanced configuration. In the Test Engine User Args field, introduce the following:(Replace the path with the appropriate one based on where you saved the properties file that was created at step #2)
6. At this point, the engine should also execute the aspects that are available in aspectPath. Ensure that all advice implementations as well as their dependent JARs are available in the classpath.<jms1:aEmptyOutputClass xmlns:jms1="http://www.tibco.com/namespaces/tnt/plugins/jms"><jms1:ActivityOutput xmlns:jms1="http://www.tibco.com/namespaces/tnt/plugins/jms">
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |