Use the eclipselink.target-server
persistence property to configure the ServerPlatform
that will be used to enable integration with a host container.
Values
Table 5-90 describes this persistence property's values.
Table 5-90 Valid Values for target-server
Value | Description |
---|---|
Defined in the |
Specify your application server:
|
Usage
In addition to the supplied values, you can specify a custom server platform by supply the full class name for the platform.
Specifying a name of the class implementing ExternalTransactionController
sets CustomServerPlatform
with this controller.
Examples
Example 5-95 shows how to use this property in a persistence.xml
file.
Example 5-95 Using target-server in persistence.xml
<property name="eclipselink.target-server" value="OC4J_10_1_3"/>
Example 5-96 shows how to use this property in a property map.
Example 5-96 Using target-server in a Property Map
import org.eclipse.persistence.config.TargetServer; import org.eclipse.persistence.config.PersistenceUnitProperties; propertiesMap.put(PersistenceUnitProperties.TARGET_SERVER, TargetServer.OC4J_10_1_3);
See Also
For more information, see: