Development tools : Multi-project development : Access to shared components : Sharing components and resources
  
Sharing components and resources
There are two ways to share different UDTT components and resources on a multi-project environment.
Method 1: Import the definitions into the global definition files
In this case, these components appear in the Project Explorer in the common folders and there is no difference between those that are defined in the current project or those that are defined in a different project. In the reference selection panel, when setting a value for a refId field, these components appear in the Global folder.
<?xml version="1.0" encoding="UTF-8"?>
<data.xml>
  <import file="jar:///definitions/business1_data.xml"/>
</data.xml>
This graphic is described in the surrounding text.
Method 2: Set in the btt.xml files which are the projects that are going to share their content as part of a multi-project environment
The UDTT components in these projects (self-defined transactions elements and global web resources), when being referenced, are internally identified by adding a prefix to their given Id. In some cases (remote self defined operations and flows, global operations) the prefix is also shown in the UDTT perspective, so the functional developer can easily understand that they are defined in another project and identify the project in the workspace. The prefix that identifies each of the projects is set in the btt.xml file and is configured by the technical developer. The following example shows the definition in the btt.xml file of the projects that share their components with the local project being defined and the id associated to each one of them, that is used as prefix (the project CW_CommFlowWeb uses prefix CommFlow).
<kColl id="remoteProjectURL">
  <field id="CommFlow"
         value="http://localhost:9080/CW_CommFlowWeb/"
         description="CW_CommFlowWeb"/>
  <field id="GW_ResourceWeb"
         value="http://localhost:9080/GW_ResourceWeb/"
         description="GW_ResourceWeb"/>
  <field id="GJ_Definitions" value=" "
         description="GJ_Definitions">
  </field>
<field id="GJ_Business1Data" value=" "
         description="GJ_Business1Data">
</field>
<field id="GJ_TellerData" value=" "
         description="GJ_TellerData">
</field>
<field id="CJ_OperationComms" value=" "
         description="CJ_OperationComms">
</field>
</kColl>
Go up to
Access to shared components