View Source

{panel}{toc}{panel}

h1. Customised tModel

If you wan't to create your own tModel you must define it in tmodel/base-tmodels.xml, but you need

also match the customized tModel key to the *root domain* property define in _dragon.properties_.

Example if you create the following tModel:

&nbsp;&nbsp; &nbsp;<tModel tModelKey="uddi:*ebmwebsourcing.com*:categorization:test">

&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<name>test environment</name>

&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<description xml:lang="en">testing environment</description>

&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<categoryBag>

&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<keyedReference keyName="uddi-org:types:categorization"

&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;keyValue="categorization" tModelKey="uddi:uddi.org:categorization:types" />

&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<keyedReference keyName="uddi-org:types:checked"

&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;keyValue="checked" tModelKey="uddi:uddi.org:categorization:types" />

&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<keyedReference keyName="dragon.org:category:type"

&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;keyValue="businessService" tModelKey="uddi:uddi.org:categorization:general_keywords" />

&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</categoryBag>

&nbsp;&nbsp; &nbsp;</tModel>

The _root.domain_ must match the *ebmwebsourcing.com* value, because the +validity+ of the key is based on this property.

If you don't take in account this issue you can during Petals Master initialization recover the following log message:

_Can't load TModels from location: classpath:tmodel/base-tmodels.xml_