[ 
https://issues.apache.org/jira/browse/OPENJPA-1447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Richard Zowalla resolved OPENJPA-1447.
--------------------------------------
    Resolution: Won't Fix

Closing as obsolete during backlog cleanup: The Kodo plural syntax was never 
contributed, and the tests that used it stay commented out 
(CacheTest.java:183-193); named multiple caches are now done with 
PartitionedDataCache (openjpa-kernel datacache/PartitionedDataCache.java). 
Please reopen if this still happens with OpenJPA 4.x.

> Plural configuration property processing
> ----------------------------------------
>
>                 Key: OPENJPA-1447
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1447
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: datacache
>    Affects Versions: 1.2.1, 2.0.0-M3
>            Reporter: Kevin W. Sutter
>            Priority: Minor
>
> Two of the tests that I recently enabled via the parent JIRA (openjpa-1443) 
> required a feature of the configuration properties that does not seem to be 
> present in OpenJPA.  After talking with Patrick, it sounds like Kodo has this 
> capability, but it wasn't contributed to OpenJPA.  Or, at least, that's how 
> it looks...
> As an example, CacheTest, TestSJVMCache and TestDataCachePCDataGenerator 
> expected the following configuration to create multiple DataCaches...
> <property name="DataCache" value="true, true(Name=xxx), true(Name=yyy)"/>
> Attempting to run these tests on trunk and 1.2.x resulted in the following 
> error message:
> org.apache.openjpa.persistence.PersistenceException: Instantiation of plugin 
> "DataCache" with value "true, true" caused an error 
> "java.lang.IllegalArgumentException: java.lang.ClassNotFoundException: true, 
> true". The alias or class name may have been misspelled, or the class may not 
> have be available in the class path. Valid aliases for this plugin are: 
> [concurrent, false, true]
> According to Patrick, this plurality capability should be applicable to all 
> plugin configuration properties.  So, when we fix this, we should do a 
> general fix, not specific to the openjpa.DataCache property.
> When this JIRA gets resolved, we should re-enable the sections of test code 
> in CacheTest, TestSJVMCache and TestDataCachePCDataGenerator.  The following 
> comment in these tests highlights the area in setup(), but this plurality 
> feature was used in several locations in these tests...
>         /*
>          * OpenJPA does not seem to support plural configuration properties.  
> (Although it seems
>          * that Kodo does...)  Until OpenJPA is updated to support this 
> multiple configuration
>          * setting, the following configuration item will be disabled...
>          * 
>          * Specifically, this type of configuration is currently not 
> allowed...
>          * <property name="openjpa.DataCache" value="true, true(Name=xxx)"/>
>          */
> Thanks,
> Kevin



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to