This section provides a sample product definition file that shows the elements described in this chapter working together. The sample product.xml
defines elements that would be used when configuring the Motorprise reference application.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE product SYSTEM "http://www.atg.com/dtds/product_1_0.dtd"> <product id="motorprise" extends="commerce"> <title resource-key="MotorpriseCommerceProduct.name">Motorprise</title> <detail resource-key="MotorpriseCommerceProduct.detail">Configure Motorprise</detail> <!-- named datasources --> <named-datasource id="management" modulelist-server-instance- type="management"> <title resource-key="">Versioned CA</title> <jndi>atgpub_ds</jndi> </named-datasource> <named-datasource id="switchingA" modulelist-server-instance- type="production"> <title resource-key="">SwitchingA</title> <jndi>atgcataloga_ds</jndi> </named-datasource> <named-datasource id="switchingB" modulelist-server-instance- type="production"> <title resource-key="">SwitchingB</title> <jndi>atgcatalogb_ds</jndi> </named-datasource> <named-datasource id="nonswitchingCore" modulelist-server-instance- type="production" > <title resource-key="">Core for non-switching</title> <jndi>atgcore_ds</jndi> </named-datasource> <!-- addons --> <product-addon-group id="baseaddon_group"> <product-addon id="customcatalog" xml-combine="remove" /> <product-addon id="merch" xml-combine="remove" /> </product-addon-group> <product-addon-combo id="motorprise-switchingdatasource"> <combo-product-addon id="switchingdatasource"/> <modify-server-instance-type id="management"> <add-named-datasource id="switchingA"/> <add-named-datasource id="switchingB"/> <add-named-datasource id="management"/> </modify-server-instance-type> <modify-server-instance-type id="production"> <add-named-datasource id="switchingA"/> <add-named-datasource id="switchingB"/> </modify-server-instance-type> </product-addon-combo> <product-addon-combo id="motorprise-nonswitchingdatasource"> <combo-product-addon id="nonswitchingdatasource"/> <modify-server-instance-type id="management"> <add-named-datasource id="nonswitchingCore"/> <add-named-datasource id="management"/> </modify-server-instance-type> <modify-server-instance-type id="production"> <add-named-datasource id="nonswitchingCore"/> </modify-server-instance-type> </product-addon-combo> <!-- server instance types --> <server-instance-type id="management"> <title resource-key="MotorpriseCommerceCAServer.name">Motorprise Commerce CA Server</title> <detail resource-key="MotorpriseCommerceCAServer.detail"/> <append-module name="DPS-UI"/> <append-module name="DCS-UI"/> <append-module name="VersionedMotorprise"/> </server-instance-type> <server-instance-type id="production" > <title resource-key="MotorpriseCommerceProductionServer.name">Motorprise Commerce Production Server</title> <append-module name="MotorpriseJSP"/> </server-instance-type> <!-- server instances --> <server-instance id="basic_management" type="management" > <title>Motorprise Merch CA ServerInstance</title> <ear-file-name>motorprise-pub.ear</ear-file-name> <server-instance-name>motorprise-pub</server-instance-name> </server-instance> <server-instance id="basic_production" type="production" > <title>Motorprise Commerce Production</title> <ear-file-name>motorprise.ear</ear-file-name> <server-instance-name>motorprise</server-instance-name> </server-instance> </product>