Skip Headers

# Using Java

Previous

Next

Use Java to configure schema reference. Create a descriptor amendment method (see "Configuring Amendment Methods") that instantiates the appropriate type of `XMLSchemaReference` (`XMLSchemaClassPathReference`, `XMLSchemaFileReference`, or `XMLSchemaURLReference`) and configures the descriptor with it, as follows:

- If you are using `EISDescriptors`, the TopLink runtime does not use the schema reference; no further configuration is required.

- If you are using `XMLDescriptors`, configure the descriptor with the `XMLSchemaReference` using `XMLDescriptor` method `setSchemaReference`.