I can't seem to get this to work persistence.xml
<?xml version="1.0" encoding="UTF-8"?> <persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> <persistence-unit name="slice" transaction-type="JTA"> <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider> <class>s.jpa.entity.Customer</class> <properties> <property name="openjpa.BrokerFactory" value="slice"/> <property name="openjpa.slice.Names" value="One"/> <property name="openjpa.slice.One.ConnectionFactoryName" value="jdbc/brisbane"/> <property name="openjpa.slice.DistributionPolicy" value="s.jpa.distribution.MyDistributionClass"/> </properties> </persistence-unit> </persistence> ---------------------------------- package s.jpa.distribution; import java.util.List; import org.apache.openjpa.slice.DistributionPolicy; import s.jpa.entity.Customer; /** * * @author Aubrey Price */ public class MyDistClass implements DistributionPolicy { public String distribute(Object pc, List<String> slices, Object context) { return "One"; } } -- View this message in context: http://openjpa.208410.n2.nabble.com/DistributionPolicy-help-tp7583302p7583303.html Sent from the OpenJPA Users mailing list archive at Nabble.com.