5.1 Concepts

The runtime object retrieved is exactly what it was used to be before storing the state to a file. This is a customized implementation on serialization protocol supported in Java. In Java serialization, the output format of the runtime stored objects is binary. Where as, the DSML serialization supported in the LDAP classes allows the objects to be stored in the XML format. The resultant XML is almost more than 95% application data (except the class header and some serialization protocol specific demarcation bytes embedded inside the application data, which has to be there as specified in the serialization protocol.) Hence, it is easier to visualize the data in addition to the benefits provided by the Java serialization protocol. The reason why it is called as default serialization is because the client applications can use the same set of API calls as provided by Java serialization to achieve the functionality provided by Java serialization protocol and yet achieve a friendly XML output structure or file.

5.1.1 Advantages of DSML Serialization

  • The output format is in XML in accordance with the DSML schema. Therefore, it facilitates an LDAP administrator to better administration and visualization of stored data.

  • Version compatibility. Supports reading deprecated versions of LDAP objects.

  • Provides same interface to the client applications as provided by Java serialization protocol.

  • Provides a backup and restore service.

The LDAP Libraries for Java are enhanced to provide support for DSML Serialization.