Skip Headers

# Using Java

Previous

Next

Using Java, you can register descriptors with a session using the following API:

- `Project` API–Read your `project.xml` file (or instantiate your project class) and create your session using `Project` method `createServerSession` or `createDatabaseSession`.

- `Session` API–Add a descriptor or set of descriptors to a session using the `DatabaseSession` API that Table: DatabaseSession API for Registering Descriptors lists. Descriptors should be registered before login, but independent sets of descriptors can be added after login.

DatabaseSession API for Registering Descriptors

Session Method | Description
--- | ---
`addDescriptors(Project)` | Add to the session all the descriptors owned by the passed in `Project`.
`addDescriptors(Vector)` | Add to the session all the descriptors in the passed in `Vector`.
`addDescriptor(Descriptor)` | Add an individual descriptor to the session.