The wimxmlextension.xml file

The wimxmlextension.xml file is used to store the schema of the custom entity types and property types in XML format.

The schema of this XML file is defined in wimschema.xsd.

When exploiters call the virtual member manager create API to create new property and entity types at run time, the schema of these new types is written to the wimxmlextension.xml file in XML form. When virtual member manager starts up, after loading the schema from XSD files, virtual member manager reads this XML file and dynamically adds the schema defined in this file to the ECore model in memory.

You can also directly add new schema to this XML file at deployment time.

The following extensions can be defined in the wimxmlextension.xml file:
The following is a sample wimxmlextension.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<sdo:datagraph xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns:sdo="commonj.sdo" 
               xmlns:wim="http://www.ibm.com/websphere/wim">
<!-- Define a new entity type called ContactPerson in a different namespace -->
      <wim:entitySchema nsPrefix="myprefix" 
                        nsURI="http://www.yourco.com/yournamespace" 
                        entityName="ContactPerson" 
                        parentEntityName="PersonAccount">
        <wim:propertyNames>facsimileTelephoneNumber</wim:propertyNames>
      </wim:entitySchema>

<!-- Define a new property type called cellPhone and add it to both ContactPerson and PersonAccount.-->
      <wim:propertySchema dataType="STRING" 
                          multiValued="true" 
                          propertyName="cellPhone" 
                          valueLength="256">
        <wim:applicableEntityTypeNames>ContactPerson</wim:applicableEntityTypeNames>
		<wim:applicableEntityTypeNames>PersonAccount</wim:applicableEntityTypeNames>
        <wim:metaData name="repositoryPropertyName" 
                      value="cellularTelephoneNumber"/>
      </wim:propertySchema>
</sdo:datagraph>
Note: The propertySchema data object is used to create a new property type and add it to an existing virtual member manager entity type at runtime. The new property is added to the wimxmlextension.xml file. However, if you also want to extend the database schema of the property extension repository, you must use the extensionPropertySchema data object. This will add the new property to the existing entity type in wimxmlextension.xml file as well as store the property in the property extension database. The property extension repository must be configured before you can use extensionPropertySchema. For more information, read about Configuring a property extension repository in a federated repository configuration in the WebSphere Application Server information center.
Terms of use | Feedback
(C) Copyright IBM Corporation 2005. All Rights Reserved.
IBM virtual member manager 6.1