Loading
Java Persistence API (JPA) Extensions Reference for EclipseLink, Release 2.4
  Go To Table Of Contents
Contents
 Search
Other Searches
 PDF
PDF
Comments
Comments


partitioning

Use eclipselink.partitioning to set the default PartitioningPolicy for a persistence unit. The value must be the name of an existing, defined PartitioningPolicy.


Values

Table 5-74 describes this persistence property's values.

Table 5-74 Valid Values for partitioning

Value Description

name

An existing, defined PartitioningPolicy.



Usage

Use this property to partition data for a class across multiple difference databases or across a database cluster such as Oracle RAC. Partitioning may provide improved scalability by allowing multiple database machines to service requests.

If multiple partitions are used to process a single transaction, use JTA (Java Transcription API) for proper XA transaction support.


Examples

Example 5-74 Using partitioning in persistence.xml

<property name="eclipselink.partitioning" value="Replicate" />


See Also

For more information, see:

Comments powered by Disqus