Copyright © Cloud Software Group, Inc. All Rights Reserved |
The example project is a predefined designer project. This section shows how to import the predefined BWSE Designer project to TIBCO Business Studio and change the configuration as necessary.
2. Select File > New > Project from the Menu to open the New Project window.
3. Select TIBCO Designer > TIBCO Designer Project in the Select A Wizard page, and then click the Next button.
Before you create a new TIBCO Designer project, you need to install TIBCO ActiveMatrix BusinessWorks SmartMapper Plug-in or TIBCO ActiveMatrix BusinessWorks SmartMapper Enterprise Server.
4. Select the Create Project Using Existing Designer Project radio button, and then click the Browse button to specify the project location.
5. Click the Finish button.The BWSE Designer project appears in the Project Explorer panel.Complete the following steps to import the existing SmartMapperReference SOA project:
1. Select File > Import from the Menu in TIBCO Business Studio.
2. Select General > Existing Projects Into Workspace, and then click the Next button in the Import dialog.The directory for the SmartMapperReference SOA project is TIBCO_HOME\bwse\plugins\smartmapper\samples.
4. The SmartMapperReference SOA project appears in the Project Explorer panel.
1.
2. Double-click the predefined SmartMapperReference.composite composite to launch the Composite Editor.Figure 7 Composite
4. Select the promoted service named invokeOperationTP and view the binding configuration from the Properties tab.Figure 8 Promoted Service Binding
5. Select the component or composite property to view the property configuration from the Properties view.
Make sure that the path in the Value field points to the BWSE BusinessWorks project.Figure 9 Composite PropertyBefore creating the DAA file, make sure that the information of JDBC-Based SmartMapper Service in the TIBCO BusinessWorks project (BWSE project) is correct.Figure 10 shows a sample screen of the JDBC Settings panel.Figure 10 JDBC Settings
1. Double-click the SmartMapper ER Model.smartmappermodel file in the Project Explorer panel.
2. Double-click the Storage folder.
3.
4. Configure the information in the JDBC Settings tab, such as, JDBC URL String, username, and password.
5. Click the Synch ER Model W/ DB button to synchronize the Entity Relationship (ER) Model.Refer to TIBCO ActiveMatrix BusinessWorks SmartMapper User’s Guide (Chapter 7 SmartMapper ER Model Resources) for details about JDBC-Based SmartMapper Service.
−
− Run the generateManifest.exe generate manifest tool. It is available under TIBCO_HOME\dabs\version_number\tools\generateManifest.
− Start TIBCO Business Studio. Open the command window, change to the TIBCO_HOME\studio\version_number\eclipse directory, then type TIBCOBusinessStudio - clean.
− Click the Test Connection button.Projects developed during design time need to be packaged into a DAA file before you can deploy them in the TIBCO ActiveMatrix environment.
1. Expand the Composite folder in the Project Explorer panel, right-click the composite, and select Create DAA.
2. Select the Deployment Artifacts folder in the Select Archive Location page.
3. Select the Do Not Use A Distribution File radio button in the Select Distribution page, then click the Next button.
4. The SmartMapperReference DAA file is created successfully and stored in the SmartMapperReference\Deployment Artifacts folder in your workspace.Right-click the My Computer icon on your desktop, select Mange > Sevices and Applications > Services, and then select and start the TIBCO EMS Server service.Run the executable named tibcohost.exe located in the configuration directory of TIBCO ActiveMatrix, for example: TIBCO_configuration_Folder\tibcohost\TibcohostInstance_name\host\bin.
If you shut down the EMS server and the TIBCO host (for example, if you reboot your computer) before using TIBCO ActiveMatrix Administrator, you need to restart TIBCO EMS Server and the TIBCO host.
a. Launch a web browser and enter the Administrator URL, for example, http://host_name:8120/amxadministrator/loginForm.jsp, in the address bar to start the TIBCO ActiveMatrix Administrator Server.
b. If TIBCO ActiveMatrix Administrator has not been created, see TIBCO ActiveMatrix BusinessWorks Service Engine Plug-in for SmartMapper Installation for instructions about how to create it.The following steps describe how to add an HTTP Connector resource instance using TIBCO ActiveMatrix Administrator:
2. Select Shared Objects > Resource Templates.
3. Click the New button in the Resource Templates page. The Add Resource Template dialog appears.
−
− Select HTTP Connector from the Type drop-down list.
The name of the HTTP Connector resource must be the same as the binding connector name of the invokeOperationTP promoted service, as shown in Figure 8.Also make sure that the values in the Machine Name and the Port fields are consitent with the Host and the Port fields when creating the concrete WSDL to run the example project, see Running the Example.
− Click the Save button.
5. Select the newly created HTTP Connector resource, then click the New Resource Instances button in the Resource Templates page.
− Select the SystemHost host (the default host).
− Select the DevNode node in the Available Nodes column, then click the button to move the DevNode node to the Selected Nodes column.
− Click the Save And Install button.Figure 11 New Resource InstancesFigure 12 HTTP Connector Resource Instance
2.
a. Enter a name in the Application Name field, for example, SmartMapperReference.
b. Select the Upload A DAA File radio button.
c. Click the Next button.
4. Click the Browse button and select the DAA file created previously in Creating a Distributed Application Archive (DAA).
5. Click the Next button.
6.
You can click the Save and Exit button instead, and then configure and deploy the application in a different way, as shown in step 4 of Setting Up the BWSE Plug-in for SmartMapper Application.Refer to the TIBCO ActiveMatrix Administration documentation for more details. You can access the online help by clicking the Help button on the top-right corner of the Administrator page.
7. Accept the defaults and click the Next button.
9.
10. Select the DevNode node from the drop-down list in the Node Name column, then click the Save And Exit button.
11. Add the Third-Party driver to the DevNode node.
This exmple uses the MySQL database. Refer to TIBCO ActiveMatrix BusinessWorks Service Engine Plug-in for SmartMapper Installation for more information about how to add a Third-Party driver to the node manually.
12. Click the Deploy button.The application is deployed successfully and appears in the Applications table’s Runtime State column as Running, as shown below in Figure 13.Figure 13 Deploy and Run the Service
Copyright © Cloud Software Group, Inc. All Rights Reserved |