Products | Versions |
---|---|
TIBCO Hawk | - |
Not Applicable | - |
Resolution:
We can create Java thread in the On Startup process for each BW applicaiton. In the Java thread, we can create a custom microagent and implement the methods.
We made a simple BW project to show how it works. Here is the procedure.
1. Creat a sample AMI jar file.
We can modify the Spot.java under
<tibco home>\hawk\samples\ami_api\java foler (add Tibrv.open(); after super("Spot");), and compile the Spot.java and SpotAmi.java file and made a jar file.
2. In Designer, we can create a simple process to invoke this jar file. Please check the attched sample project called amitest.
3. Open amiworkbench from command line.
Please go to <tibco home>\hawk\samples\scripts and then input amiworkbench -rvd_session <service> <network> <daemon>.
4. Run the process in test mode.
We will see the spot application, and will find the Spot microagent appear in AMI WorkBench. But if we close this application, the Spot microagent will disappear. That means we have to keep this process or Jave thread running.