Dynamic model: adding new properties to virtual member manager built-in entities at deployment time

Virtual member manager is configured to use the dynamic model. You can create new property types and add them to existing virtual member manager built-in entity types at deployment.

You need to add new property types to virtual member manager built-in entity types at deployment.
  1. Stop the virtual member manager service.
  2. Open wimxmlextension.xml under the VMM_HOME\model directory. If this file does not exist, create a new one with the same name.
    Note: VMM_HOME is the directory where the virtual member manager files are located. This location is set to either the system property wim.home or user.install.root/config/cells/local.cell/wim.
  3. Edit wimxmlextension.xml and add the definitions of the new property types and the entity types they apply to. Ensure that the XML is well-formed and conforms to the schema defined in wimschema.xsd.
    For example, the following sample defines a new property type called “postOfficeBox” and adds this property type to the virtual member manager built-in entity type “Person”:
    <?xml version="1.0" encoding="UTF-8"?>
    <sdo:datagraph xmlns:sdo="commonj.sdo"
        xmlns:wim="http://www.ibm.com/websphere/wim">
        <wim:propertySchema dataType="STRING" multiValued="true" propertyName="postOfficeBox"
            valueLength="40">
          <wim:applicableEntityTypeNames>Person</wim:applicableEntityTypeNames>
        </wim:propertySchema>
      </wim:schema>
    </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.
  4. Manually add the new property types to each repository adapter.
    LDAP adapter
    Add the mapping of the new property types to LDAP attributes to the wimconfig.xml configuration file.
    DB adapter
    Add the definition of the new property types to the property XML file of DB Adapter (wimDBProperties.xml) and run DB property loader.
  5. Restart the virtual member manager service.
Terms of use | Feedback
(C) Copyright IBM Corporation 2005. All Rights Reserved.
IBM virtual member manager 6.1