Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 3 Subscription Service Example : 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 C through Task I.
 
Task A 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 B 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 SBLAdapterSubSample, the SOA project SBLAdapterSubSOASample, and the TIBCO Designer project SBLAdapterSubBWSample must be 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 the following tasks.
Task C 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 SiebelAdapterSubSOASample in the Project name field, and then click the Next button.
5.
Click the Finish button.
Task D 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 SiebelAdapterSubBWSample in the Project name field, and select the Create new project in the workspace radio button.
1.
Click the Finish button.
Task E Generating the Adapter WSDL
Before performing this task, make sure all the settings for the SiebelAdapterSubSample project are correct.
To generate the adapter WSDL file, follow these steps:
1.
In the Project Explorer Panel, right-click SiebelAdapterConfiguration.adsblmodel under the imported Adapter project SiebelAdapterSubSample.
2.
Select Generate Adapter WSDL from the pop-up menu.
3.
In the Target Project dialog, select SiebelAdapterSubSOASample as the matching resource.
4.
Click the OK button.
Task F Importing Resources to the TIBCO Designer Project
To import resources to the newly created TIBCO Designer Project, follow these steps:
1.
2.
Select File > Import... from the Menu to open the Import dialog.
3.
Expand the General folder and select File System, and then click the Next button.
4.
Click the Browse button to locate the SOA project SiebelAdapterSubSOASample in the From directory drop-down list, and check the schema checkbox in the left pane.
5.
Click the Finish 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 SiebelAdapterSubSOASample, expand the Composites folder, and then double-click SiebelAdapterSubSOASample.composite to launch the Composite Editor on the right.
2.
Drag the SiebelAdapter component from the Palette to the Components column and enter SiebelAdapterComp as the component name.
3.
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 to select the appropriate adapter endpoint, and then click the Add button to add it into the Selected Adapter Endpoint pane on the right. Click the OK button and the added service will appear under the Services tab. The services pre-configured in the Adapter project SBLAdapterSubSample are as follows:
sub_buscomp — Siebel Business Components
sub_intcomp — Siebel Integration Components
sub_workflow — Invoke Siebel Workflow
sub_businessService — Invoke Siebel Business Service
4.
Subscription of Siebel Business Components
a.
Drag the BusinessWorks component from the Palette to the Components column and enter BWComp as the component name.
Click the Implementation tab and click Browse next to the BW Project field to select the SiebelAdapterSubBWSample.
Click the Reference tab in the Properties view.
Click Add to open the Add Partner Dialog. Expand the SiebelAdapterSubBWSample tree and select the sub_buscomp under SiebelAdapterConfiguration.wsdl. Click Finish to add it.
Click the radio button next to SiebelAdapterComp->sub_buscomp to draw a wire between the BWComponent component and the SiebelAdapterComp component.
A BusinessWorks process SiebelAdapterConfiguration_sub_buscomp.process is automatically created under the TIBCO Designer project SiebelAdapterSubBWSample.
Subscription of Siebel Integration Components
a.
In the Project Explorer Panel, right-click the Shared Resources folder under the SiebelAdapterSubSOASample project, select New > EMS from the pop-up menu and then click the Finish button.
b.
Double click SiebelAdapterSubSOASample.composite under the Composite folder.
Click the Shared Resource Profiles tab to add the shared resource.
Click the Save button to save your configuration.
c.
Drag a JMS Service from the Palette to the Services column and name it JMS_sub_intcomp.
Click the Target tab and click the radio button next to SiebelAdapterComp->sub_intcomp to draw a wire between the JMS_sub_intcomp service and the SiebelAdapterComp component.
Click the Binding tab to add the shared resource profile in the Endpoint pane.
Subscription of Siebel Workflow
a.
In the Project Explorer Panel, right-click the Shared Resources folder under the SiebelAdapterSubSOASample project, select New > EMS from the pop-up menu and then click the Finish button.
b.
Double click SiebelAdapterSubSOASample.composite under the Composite folder.
Click the Shared Resource Profiles tab to add the shared resource.
Click the Save button to save your configuration.
c.
Drag a JMS Service from the Palette to the Services column and name it JMS_sub_workflow.
Click the Target tab and click the radio button next to SiebelAdapterComp->sub_workflow to draw a wire between the JMS_sub_workflow service and the SiebelAdapterComp component.
Click the Binding tab to add the shared resource profile in the Endpoint pane.
Subscription of Siebel Business Service
a.
In the Project Explorer Panel, right-click the Shared Resources folder under the SiebelAdapterSubSOASample project, select New > EMS from the pop-up menu and then click the Finish button.
b.
Double click SiebelAdapterSubSOASample.composite under the Composite folder.
Click the Shared Resource Profiles tab to add the shared resource.
Click the Save button to save your configuration.
c.
Drag a JMS Service from the Palette to the Services column and name it sub_businessService.
Click the Target tab and click the radio button next to SiebelAdapterComp->sub_businessService to draw a wire between the sub_businessService service and the SiebelAdapterComp component.
Click the Binding tab to add the shared resource profile in the Endpoint pane.
Task H Configuring the BusinessWorks Process in the TIBCO Designer Project
For Subscription of different components, proceed with the following steps.
Subscription of Siebel Business Components
In Task F, the BusinessWorks process, SiebelAdapterConfiguration_sub_buscomp.process, was generated in the TIBCO Designer project.
To configure the BusinessWorks process, follow these steps:
1.
Double-click SiebelAdapterConfiguration_sub_buscomp.process to open the Editor View on the right pane.
2.
Change the Start activity to the HTTP Receiver activity.
a.
Create an HTTP Connection and configure Port in the Configuration Panel.
b.
Right-click the Editor View pane and select Add Resource > Service > HTTP Receiver from the pop-up menu. Ensure that the default Start activity has been changed, otherwise, it will not work.
c.
Click the HTTP Receiver activity to open the Configuration View panel. Configure HTTP Connection, name and location for Parameters in this panel.
3.
a.
Drag a Invoke Partner activity from the Palettes panel into the process.
b.
Configure Partner and Operation in this panel.
4.
Connect the HTTP Receive, Invoke Partner, and End activities.
Subscription of Siebel Integration Components
1.
Create a process JMS_sub_intcomp.process under the TIBCO Designer project SiebelAdapterSubBWSample.
2.
Double click JMS_sub_intcomp.process and create a JMS Queue Sender activity for the process.
3.
Click the JMS Queue Sender activity to open the Configuration View panel. Configure JMS Connection and Destination Queue in this panel.
4.
Connect the Start, JMS Queue Sender, and End activities.
Subscription of Siebel Workflow
1.
Create a process JMS_sub_workflow.process under the TIBCO Designer project SiebelAdapterSubBWSample.
2.
Double click JMS_sub_workflow.process and create a JMS Queue Sender activity for the process.
3.
Click the JMS Queue Sender activity to open the Configuration View panel. Configure JMS Connection and Destination Queue in this panel.
4.
Connect the Start, JMS Queue Sender, and End activities.
Subscription of Siebel Business Service
1.
Create a process JMS_sub_businessService.process under the TIBCO Designer project SiebelAdapterSubBWSample.
2.
Double click JMS_sub_businessService.process and create a JMS Queue Sender activity for the process.
3.
Click the JMS Queue Sender activity to open the Configuration View panel. Configure JMS Connection and Destination Queue in this panel.
4.
Connect the Start, JMS Queue Sender, and End activities.
Task I Creating the Service Assembly
To create the service assembly, follow these steps:
1.
In the Project Explorer, select the SiebelAdapterSubSOASample project.
2.
Right-click the composite file SiebelAdapterSubSOASample.composite, and then select Service Assembly from the pop-up menu. Save the composite if prompted.
3.
Expand the Deployment Packages folder, right-click SiebelAdapterSubSOASample.saf, and then select Build Archive from the pop-up menu. Save the file if prompted.
After completing the building process, you can see an SiebelAdapterSubSOASample.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