![]() |
Copyright © Cloud Software Group, Inc. All Rights Reserved |
1. On the Windows platform, double-click the studio.exe executable.cd ASG_HOME\studio\eclipse
You can start the Studio by following the Windows menu Start > All Programs > TIBCO > TIBCO ENV > TIBCO API Exchange 2.1 > Studiocd ASG_HOME/studio/eclipseA Welcome screen displays when you run the Studio first time. Click the X next to Welcome to close the welcome screen.
4. Click OK.
2.
3. Click Next.
4. On Existing TIBCO BusinessEvents Project Import Wizard, select the values for the following fields:
− Click Browse
−
− Click OK.
b. Select the Copy project into workspace check box.
5. Click Finish.
6. In the Studio Explorer, on the upper left, select the ASG_DefaultImplementation project and expand ASG_DefaultImplementation > DefaultImplementation node to view the channels, rule functions, rules and, other resources in the project.After you import the ASG_DefaultImplementation project in the Studio, you can edit the default project to add the custom rule functions, rules, or any extensions as required to customize the default transaction processing pipeline.
a.
− To save all changes to all resources in a project (since last save), click File > Save All or click Ctrl+Shift+S.
− To save changes in just the currently viewed resource, click File > Save or click Ctrl+S, or click the Save button.
•
• Select a project name, folder name, or a project resource name, and select Project > Validate Project.
1. In the Studio Explorer, highlight the ASG_DefaultImplementation project. From the top menu, select Project > Build Enterprise Archive.If you see a message prompting you to save all project resources, click Yes. This means that an unsaved resource editor is open.
2.
3. Click Apply to save the configuration details. To revert to the version already saved, click Revert.Click OK to build the archive.
Debugging Project in Studio
For example, for the TIBCO API Exchange Gateway Core Engine, the ear file is set as TIBCO_HOME\asg\2.1\bin\asg_core.ear. You can choose to keep the generated Java files, for example, to troubleshoot some problem with an EAR file. To do so, clear the Delete Temporary Files check box, and specify where to store the Java files in the Compilation Directory field. If you clear the Delete Temporary Files check box, specify the directory where you want to save the Java files generated during the process of building the EAR file.This section explains how to debug the ASG_DefaultImplementation project within the Studio.To debug the ASG_DefaultImplementation project in Studio, follow these steps:
1.
2.
3.
4. Open the TIBCO_HOME/be/5.1/bin/be-engine.tra file, go to the end of the file and append the contents of ASG_CONFIG_HOME/asg/asg.properties file.
5. In the TIBCO_HOME/be/5.1/bin/be-engine.tra file, uncomment and set the following property to the project configuration folder.tibco.clientVar.ASG/ConfigRoot=C:/ProgramData/TIBCOASG/tibco/cfgmgmt/asg/defaulttibco.clientVar.ASG/ConfigRoot=C:/ProgramData/TIBCOASG/tibco/cfgmgmt/asg/BookQuery
You must change the value of the tibco.clientVar.ASG/ConfigRoot property to the configuration of the project you are working on.
6.
8. Import the ASG_HOME/projects/ASG_DefaultImplementation project in the Studio. See Loading the Default ASG_DefaultImplementation Project.
9. In Studio Explorer, select the ASG_DefaultImplementation project. From the menu, select Run > Debug Configurations.
10. For local debugging, On the Debug Configurations dialog, select and double-click the TIBCO BusinessEvents Application node on the left. Ensure that the ASG_DefaultImplementation project is selected.
−
− Select the Environment tab and configure the environment variables as needed, to run or debug the project in Studio.
You can add new variables using the Environment tab. You can select and then edit the existing variables. You can append your edited variable to the existing environment variable, or replace the existing environment variable with the specified variable. For example, if a custom function depends on a native library, you can add the path to that library using the PATH, LD_LIBRARY_PATH, SHLIB_PATH, or LIBPATH variable, as appropriate for your operating system.
− Select the Classpath tab and configure the classpath for external libraries or custom functions, as needed.
Table 10: Debug Configuration Parameters Reference Browse to select the ASG_DefaultImplementation project. This appears by default as this project is currently selected in the Studio. Specifies the name of the processing unit (PU) whose values are used for this debug configuration. The drop-down list displays PUs available in the asg_core.cdd file.For example, set this value as asg-caching-core. Browse to select the EAR file to be used for this debug configuration. The EAR file must be generated with the Generate Debug Info option selected on the Project > Build Enterprise Archive. See Editing, Validating, and Building the Default ASG_DefaultImplementation Project to build the EAR file.
11.
12. Click the Debug button to launch the debugger. Verify that the debugger is launched.
1. Switch to the Debug perspective. Select Window > Open Perspective, or click the Open Perspective () button. Then select Other > Debug.
− Select Debug Configurations. From the Debug Configurations dialog, select a debug configuration and click Debug.
![]() |
Copyright © Cloud Software Group, Inc. All Rights Reserved |