Setting Up the Examples
To successfully run the examples, you must perform the following tasks:
- Build the COM Components, as described in Task A.
- If you are using TIBCO Enterprise for JMS, start the JMS server, as described in Task B.
- Start the adapter with one of the following dat files:
RPCCOMService-RV.dat
, if you
are using TIBCO Rendezvous.
RPCCOMService-JMS.dat
, if you are using TIBCO Enterprise for JMS.
For details, see Task C.
- Start TIBCO IntegrationManager with one of the following dat files:
IMExample_JMS.dat
if you are using TIBCO Enterprise for JMS.
IMExample_rv.dat
if you using TIBCO Rendezvous.
For details, see Task D.
- Execute the operations on the business objects. For details, see Task E.
Task A Build the COM Components
- Build the COM Servers. To do so, start Microsoft Visual C++ and build the
ComAdapterService
and ComAdapterSyncOperation
projects from the tibco\adapter\adcom\5.3\examples\TEAKExamples\IntegrationManager\ComAdapterService
directory, using the ComAdapterService.dsw
workspace.
Task B Start TIBCO Enterprise for JMS
- At the command prompt, go to the
<JMS_HOME>
\bin
directory.
- Run the following command to start the TIBCO Enterprise for JMS Server:
tibjmsd.exe
Task C Start the Adapter
- Make sure that the repository URL and configuration URL properties are set in the
adcomService.tra
file.
- The
tibco.repourl
property must point to the RPCCOMService-RV.dat
or the RPCCOMService-JMS.dat
file. For example, if you have installed the adapter on the C: drive and are using RPCCOMService-RV.dat
, the tibco.repourl
property should be set as follows:
- The
tibco.configurl
property should point to the adapter instance:
Adapter for COM/Service Instances/AdComExamplesService
- At the command prompt, go to the
<ADCOM_HOME>
\bin
directory.
- Start the service component of the adapter using the
RPCCOMService-RV.dat
file:
Task D Start TIBCO IntegrationManager
- To start TIBCO IntegrationManager, click Start>Programs>TIBCO>TIBCO Integration Manager 5.0> IM Editor.
- Select one of the following from the Repository Instance drop-down:
IMExample_JMS.dat
, if you are using TIBCO Enterprise for JMS.
IMExample_rv.dat
, if you using TIBCO Rendezvous.
- Click Connect.
- Click
Debug
, then click Start Debug Engine
.
Alternatively, you can start the TIBCO IntegrationManager engine from the command prompt.
- Copy the project file into the
bin
folder of the TIBCO IntegrationManager install directory:
IMExample_JMS.dat
, if you are using TIBCO Enterprise for JMS.
IMExample_rv.dat
, if you using TIBCO Rendezvous.
- Open a command prompt for TIBCO IntegrationManager.
- Navigate to the
bin
folder of the TIBCO IntegrationManager install directory.
- In the command prompt window type
imse -f <filename>.dat
.
This will start the IntegrationManager server and engine.
Task E Executing Operations for Business Objects
- Open
Index.htm
from the <ADCOM_HOME>\
examples\TEAKExamples\IntegrationManager\
Html directory. The TIBCO Adapter for COM Examples page is displayed. The top right panel displays the business objects, and the bottom-left panel displays the operations available for each business object.
- Select a business object and run the operations against it:
For the Get
, Insert-Update
, and Delete
operations, the time out interval is set to 30 seconds. If a request is not received within 30 seconds, the application exits.
TIBCO Adapter™ for COM Examples Guide
Software Release 5.3,
September 2005
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com
|