Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 5 Example for Configuring IB Services and Wiring It with JMS : Setting Up the Example

Setting Up the Example
To set up the environment for the example, you need to complete the following tasks:
To create a new SOA project instead of using the pre configured one, proceed with Task D through Task I.
 
Task A Preparing PeopleSoft
For detailed information about preparing PeopleSoft, refer to TIBCO ActiveMatrix Adapter Service Engine for PeopleSoft Configuration and Deployment.
Task B Configuring the Environment for TIBCO ActiveMatrix
For detailed information about configuring the Environment for TIBCO ActiveMatrix, refer to Configuring the Environment for TIBCO ActiveMatrix.
Task C Importing the Adapter Project, SOA Project and TIBCO Designer Project
To import the Adapter project, the SOA project and the TIBCO Designer project into the TIBCO Business Studio, refer to Importing the Projects into TIBCO Business Studio.
The Adapter project PSAdapterIBSample, the SOA project PSAdapterIBSOASample, and the TIBCO Designer project PSAdapterIBBWSample are imported into your workspace for this example.
If you want to create a new SOA project and a new TIBCO Designer project instead of using the pre configured ones, proceed with following tasks.
Task D Creating an SOA Project
To create a new SOA project, follow these steps:
1.
2.
Select File > New > Project... from the Menu to open the New Project dialog.
3.
Expand TIBCO ActiveMatrix > ActiveMatrix SOA Project, and then click the Next button.
4.
Type PSAdapterIBSOASample in the Project name field, and then click the Next button.
5.
Click the Finish button.
Task E Creating a TIBCO Designer Project
To create a TIBCO Designer Project, follow these steps:
1.
Select File > New > Project from the Menu to open the New Project dialog.
2.
Select TIBCO Designer > TIBCO Designer Project in the Select a wizard page, and then click the Next button.
3.
Type PSAdapterIBBWSample in the Project name field, and select the Create new project in the workspace radio button.
1.
Click the Finish button.
Task F Generating the Adapter WSDL
Before performing this task, make sure all the settings for the PSAdapterIBSample project are correct.
To generate the adapter WSDL file, follow these steps:
1.
In the Project Explorer Panel, right-click PeopleSoftAdapterConfiguration.adpsft8model under the imported Adapter project PSAdapterIBSample.
2.
Select Generate Adapter WSDL from the pop-up menu.
3.
In the Target Project dialog, select PSAdapterIBSOASample as the matching resource.
4.
Click the OK button.
Task G Configuring the SOA Project
To configure the SOA project, follow these steps:
1.
In the Project Explorer Panel, select the SOA project PSAdapterIBSOASample, expand the Composites folder, and then double-click PSAdapterIBSOASample.composite to launch the Composite Editor on the right.
2.
a.
Drag the PeoplesoftAdapter component from the Palette to the Components column and name the component PSAdapterIBComponent.
b.
In the Properties view, click the Services tab and then click the Add button to open the Resource Picker dialog. Expand the tree in the left pane and select the adapter endpoints MARKET_RATES_SYNC_VERSION_1, CURRENCY_SYNC_VERSION_1, and COUNTRY_SYNC_VERSION_2 to add them into the Selected Adapter Endpoint pane on the right. Click the OK button, and the added services will appear under the Services tab.
3.
In the Project Explorer Panel, right-click the Shared Resources folder under the PSAdapterIBSOASample project, select New > JMS from the pop-up menu and then click the Finish button.
4.
a.
Double click PSAdapterIBSOASample.composite under the Composite folder.
b.
c.
Click the Shared Resource Profiles tab to add the shared resource.
d.
Click the Save button to save your configuration.
5.
a.
Drag three JMS Services from the Palette to the Services column and name them JMSIBPubService, JMSIBSubService, and JMSIBRpccService.
b.
c.
Click the Target tab and click the radio button next to the target component service.
For JMSIBPubService, click the radio button next to PSAdapterIBComponent->MARKET_RATE_SYNC_VERSION_1.
For JMSIBSubService, click the radio button next to PSAdapterIBComponent->CURRENCY_SYNC_VERSION_1.
For JMSIBRpccService, click the radio button next to PSAdapterIBComponent->COUNTRY_SYNC_VERSION_2.
A wire will be drawn between the JMS service and the PSAdapterIBComponent component.
d.
For JMSIBPubService, type IBPUB.MARKET_RATE in the Target Destination Name field.
For JMSIBSubService, type IBSUB.CURRENCY in the Target Destination Name field.
For JMSIBRpccService, type IBRPCC.COUNTRY in the Target Destination Name field.
Task H Configure the BusinessWorks Processes in the TIBCO Designer Project
To configure the BusinessWorks process in the TIBCO Designer project, follow these steps:
For PSAdapterIBPubProcess
1.
Create a process named PSAdapterIBPubProcess under the TIBCO Designer project PSAdapterIBBWSample.
2.
Double click PSAdapterIBPubProcess.process to open the Editor View pane on the right.
3.
a.
Right-click the Editor View pane and select Add Resource > JMS > JMS Queue Receiver from the pop-up menu. Ensure that the default Start activity has been changed, otherwise, it will not work.
b.
Click the JMS Queue Receiver activity to open the Configuration View panel. Set the JMS Connection to field the JMS connection activity created previously and set the Destination Queue field to IBPUB.MARKET_RATE.
4.
Connect the JMS Queue Receiver and End activities.
5.
Click the Save button to save your configuration.
For PSAdapterIBSubProcess
1.
Create a process named PSAdapterIBSubProcess under the TIBCO Designer project PSAdapterIBBWSample.
2.
Double click PSAdapterIBSubProcess.process to open the Editor View pane on the right.
3.
a.
Right-click the Editor View pane and select Add Resource > JMS > JMS Queue Sender from the pop-up menu. Ensure that the default Start activity has been changed, otherwise, it will not work.
b.
Click the JMS Queue Sender activity to open the Configuration View panel.
c.
In the Configuration tab, type the name of the JMS connection activity which previously created in the JMS Connection field, browse to select IBPUB.CURRENCY in the Destination Queue field, and select XML Text from the Message Type drop-down list.
d.
In the Input Editor tab, click the Add Child button, select XML Element Reference from the Content drop-down list, and select the following schema in the Select Resource dialog: PSAdapterIBBWSample\schema\ae\PeopleSoft8\PeopleSoftAdapterConfiguration\CURRENCY__SYNC__VERSION__1
4.
Connect the Start, JMS Queue Sender, and End activities.
5.
Click the Save button to save your configuration.
For PSAdapterIBRpccProcess
1.
Create a process named PSAdapterIBRpccProcess under the TIBCO Designer project PSAdapterIBBWSample.
2.
Double click PSAdapterIBRpccProcess.process to open the Editor View pane on the right.
3.
a.
Right-click the Editor View pane and select Add Resource > JMS > JMS Queue Receiver from the pop-up menu. Ensure that the default Start activity has been changed, otherwise, it will not work.
b.
Click the JMS Queue Receiver activity to open the Configuration View panel.
c.
Under the Configuration tab, type the name of the JMS connection activity which previously created in the JMS Connection field, browse to select IBRPCC.COUNTRY in the Destination Queue field, and select Text from the Message Type drop-down list.
4.
a.
Right-click the Editor View pane and select Add Resource > JMS > Reply to JMS Message from the pop-up menu.
b.
Click the Reply to JMS Message activity to open the Configuration View panel.
c.
Under the Configuration tab, select JMS Queue Receiver from the Reply To drop-down list and select XML Text from the Message Type drop-down list.
d.
In the Input Editor tab, click the Add Child button, select XML Element Reference from the Content drop-down list, and select the following schema in the Select Resource dialog: PSAdapterIBBWSample\schema\ae\PeopleSoft8\PeopleSoftAdapterConfiguration\__caret_reply_caret_PSOFTRPCCLIENTCOUNTRY__SYNC__VERSION__2_caret_ibEvent
e.
5.
Connect the JMS Queue Receiver, Reply to JMS Message, and End activities.
6.
Click the Save button to save your configuration.
Task I Creating the Service Assembly
To create the service assembly, follow these steps:
1.
In the Project Explorer, select the PSAdapterIBSOASample project.
2.
Right-click the composite file PSAdapterIBSOASample.composite, and then select Service Assembly from the pop-up menu. Save the composite if prompted.
3.
Expand the Deployment Packages folder, right-click PSAdapterIBSOASample.saf, and then select Build Archive from the pop-up menu. Save the file if prompted.
After completing the building process, you will see PSAdapterIBSOASample.zip file which has been created in the Deployment packages folder. This is the SA Project to be deployed to TIBCO ActiveMatrix Administrator.

Copyright © TIBCO Software Inc. All Rights Reserved