Hi all, I am using my own distribution policy and its working fine(I have printed "myDistributionPolicy" from the implementation as a proof) but Slice gives me a warning that Distribution Policy is not explicitly set. Could some one throw light?
74 hellojpa INFO [main] openjpa.Runtime - Detected slices "[One, Two]" in configuration. 103 hellojpa WARN [main] openjpa.Runtime - Configuration property "openjpa.slice.DistributionPolicy" is not set explicitly. Setting this value to "random". 103 hellojpa WARN [main] openjpa.Runtime - Configuration property "openjpa.slice.ReplicationPolicy" is not set explicitly. Setting this value to "all". 225 hellojpa INFO [main] openjpa.Runtime - Starting OpenJPA Slice 0.0.0 459 hellojpa INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.MySQLDictionary". 562 hellojpa.One INFO [main] openjpa.Runtime - Connecting to slice "One" at URL "jdbc:mysql://localhost/slice1" 676 hellojpa.One INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.MySQLDictionary". 1054 hellojpa.Two INFO [main] openjpa.Runtime - Connecting to slice "Two" at URL "jdbc:mysql://localhost/slice2" 1054 hellojpa.Two INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.MySQLDictionary". 2274 hellojpa INFO [main] openjpa.Enhance - Creating subclass for "[class hellojpa.Person, class hellojpa.Message, class hellojpa.Address]". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead. 2327 hellojpa INFO [main] openjpa.Enhance - Enhancing type "class hellojpa.Person". 2365 hellojpa WARN [main] openjpa.Enhance - Detected the following possible violations of the restrictions placed on property access persistent types: "hellojpa.Person" uses property access, but its field "name" is accessed directly in method "print" defined in "hellojpa.Person". 2416 hellojpa INFO [main] openjpa.Enhance - Enhancing type "class hellojpa.Message". 2457 hellojpa INFO [main] openjpa.Enhance - Enhancing type "class hellojpa.Address". 2471 hellojpa WARN [main] openjpa.Enhance - Detected the following possible violations of the restrictions placed on property access persistent types: "hellojpa.Address" uses property access, but its field "homeAddress" is accessed directly in method "print" defined in "hellojpa.Address". "hellojpa.Address" uses property access, but its field "officeAddress" is accessed directly in method "print" defined in "hellojpa.Address". Inside MyDistributionPolicy Query created4736 hellojpa INFO [main] openjpa.Runtime - Query "select p from Person p" is excluded temporarily due to "Excluded by user". -- View this message in context: http://n2.nabble.com/Problem-with-distribution-policy-in-Slice-tp2961654p2961654.html Sent from the OpenJPA Users mailing list archive at Nabble.com.
