Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 2 Publication 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 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 SBLAdapterPubSample, the SOA project SBLAdapterPubSOASample, and the TIBCO Designer project SBLAdapterPubBWSample 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 SiebelAdapterPubSOASample 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 SiebelAdapterPubBWSample 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 SiebelAdapterPubSample 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 SiebelAdapterPubSample.
2.
Select Generate Adapter WSDL from the pop-up menu.
3.
In the Target Project dialog, select SiebelAdapterPubSOASample 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 SiebelAdapterPubSOASample 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 SiebelAdapterPubSOASample, expand the Composites folder, and then double-click SiebelAdapterPubSOASample.composite to launch the Composite Editor on the right.
2.
Drag the SiebelAdapter component from the Palette to the Components column and enter SiebelAdapter 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 SBLAdapterPubSample are as follows:
pubBusComp — Siebel Business Components
pubIntComp — Siebel Integration Components
pubIntObj — Siebel Complete Integration Object
pubNSBusComp — Non Siebel Business Components
4.
Publication of Siebel Business Components
a.
Drag the BusinessWorks component from the Palette to the Components column and enter BWComponent as the component name.
Click the Implementation tab and click the Browse button next to the BW Project field to select the SiebelAdapterPubBWSample.
Click the Reference tab in the Properties view.
Click Add to open the Add Partner Dialog. Expand the SiebelAdapterPubBWSample tree and select the pubBusComp under SiebelAdapterConfiguration.wsdl. Click Finish to add it.
Click the radio button next to SiebelAdapter->PubBusComp to draw a wire between the BWComponent component and the SiebelAdapter component.
A BusinessWorks process SiebelAdapterConfiguration_pubBusComp.process is automatically created under the TIBCO Designer project SiebelAdapterPubBWSample.
Publication of Siebel Integration Components
a.
In the Project Explorer Panel, right-click the Shared Resources folder under the SiebelAdapterPubSOASample project, select New > EMS from the pop-up menu and then click the Finish button.
b.
Double click SiebelAdapterPubSOASample.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 PubIntCompJMSService.
Click the Target tab and click the radio button next to SiebelAdapter->pubIntComp to draw a wire between the PubIntCompJMSService service and the SiebelAdapter component.
Click the Binding tab to add the shared resource profile in the Endpoint pane.
Publication of Siebel Complete Integration Object
a.
In the Project Explorer Panel, right-click the Shared Resources folder under the SiebelAdapterPubSOASample project, select New > EMS from the pop-up menu and then click the Finish button.
b.
Double click SiebelAdapterPubSOASample.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 PubIntObjJMSService.
Click the Target tab and click the radio button next to SiebelAdapter->pubIntObj to draw a wire between the PubIntObjJMSService service and the SiebelAdapter component.
Click the Binding tab to add the shared resource profile in the Endpoint pane.
Publication of Non Siebel Business Components
a.
In the Project Explorer Panel, right-click the Shared Resources folder under the SiebelAdapterPubSOASample project, select New > EMS from the pop-up menu and then click the Finish button.
b.
Double click SiebelAdapterPubSOASample.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 PubNSBusCompJMSService.
Click the Target tab and click the radio button next to SiebelAdapter->pubNSBusComp to draw a wire between the PubNSBusCompJMSService service and the SiebelAdapter component.
Click the Binding tab to add the shared resource profile in the Endpoint pane.
Task H Configure the BusinessWorks Process in the TIBCO Designer Project
For different publication types, proceed with the following steps.
Publication of Siebel Business Components
In Task F, the BusinessWorks process, SiebelAdapterConfiguration_pubBusComp.process, was generated in the TIBCO Designer project.
To configure the BusinessWorks process, follow these steps:
1.
Double-click SiebelAdapterConfiguration_pubBusComp.process to open the Editor View on the right pane.
2.
Change the Start activity to the Receive Partner Notification activity.
a.
Right-click the Editor View pane and select Add Resource > Service > Receive Partner Notification from the pop-up menu. Ensure that the default Start activity has been changed, otherwise, it will not work.
b.
Click the Receive Partner Notification activity to open the Configuration View panel. Configure Partner and Operation in this panel.
3.
a.
Drag a Write File activity from the Palettes panel into the process.
b.
Configure Input in this panel.
4.
Connect the Receive Partner Notification, Write File and End activities.
Publication of Siebel Integration Components
1.
Create a process JMS_pubIntComp.process under the TIBCO Designer project SiebelAdapterPubBWSample.
2.
Double click JMS_pubIntComp.process. Change the start activity to JMS Queue Receiver and connect it to the End activity.
3.
Click the JMS Queue Receiver activity to open the Configuration View panel. Configure JMS Connection and Destination Queue in this panel.
4.
Click the Save button to save your configuration.
Publication of Siebel Complete Integration Object
1.
Create a process JMS_pubIntObj.process under the TIBCO Designer project SiebelAdapterPubBWSample.
2.
Double click JMS_pubIntObj.process. Change the start activity to JMS Queue Receiver and connect it to the End activity.
3.
Click the JMS Queue Receiver activity to open the Configuration View panel. Configure JMS Connection and Destination Queue in this panel.
4.
Click the Save button to save your configuration.
Publication of Non Siebel Business Components
1.
Create a process JMS_pubNBBusComp.process under the TIBCO Designer project SiebelAdapterPubBWSample.
2.
Double click JMS_pubNBBusComp.process. Change the start activity to JMS Queue Receiver and connect it to the End activity.
3.
Click the JMS Queue Receiver activity to open the Configuration View panel. Configure JMS Connection and Destination Queue in this panel.
4.
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 SiebelAdapterPubSOASample project.
2.
Right-click the composite file SiebelAdapterPubSOASample.composite, and then select Service Assembly from the pop-up menu. Save the composite if prompted.
3.
Expand the Deployment Packages folder, right-click SiebelAdapterPubSOASample.saf, and then select Build Archive from the pop-up menu. Save the file if prompted.
After completing the building process, you can see a SiebelAdapterPubSOASample.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