Skip Headers

# Loading project.xml or sessions.xml Files

Previous

Next

Most TopLink-enabled applications read in `project.xml` and `sessions.xml` files directly. Grant permissions to the specific files or file locations as Example: Permissions for Loading Deployment XML Files shows. This example assumes that both `project.xml` and `sessions.xml` files are located in the same directory (given by application-specific system property `deployment.xml.home`). Alternatively, you can specify a separate `FilePermission` for each file.

Permissions for Loading Deployment XML Files

    permission java.io.FilePermission "${deployment.xml.home}/*.xml", "read";

For information on `FilePermission` settings for J2EE applications, see "J2EE Application Deployment".