Author: areshetnyak
Date: 2009-11-18 11:33:41 -0500 (Wed, 18 Nov 2009)
New Revision: 759
Modified:
jcr/branches/1.12.0-JBC/component/core/src/main/java/org/exoplatform/services/jcr/impl/storage/jbosscache/JDBCCacheLoader.java
jcr/branches/1.12.0-JBC/component/core/src/test/resources/conf/standalone/test-jbosscache-config-jdbcloader.xml
jcr/branches/1.12.0-JBC/component/core/src/test/resources/conf/standalone/test-jcr-config.xml
Log:
EXOJCR-248 : The JDBCCacheLoader was changed.
Modified:
jcr/branches/1.12.0-JBC/component/core/src/main/java/org/exoplatform/services/jcr/impl/storage/jbosscache/JDBCCacheLoader.java
===================================================================
---
jcr/branches/1.12.0-JBC/component/core/src/main/java/org/exoplatform/services/jcr/impl/storage/jbosscache/JDBCCacheLoader.java 2009-11-18
16:29:24 UTC (rev 758)
+++
jcr/branches/1.12.0-JBC/component/core/src/main/java/org/exoplatform/services/jcr/impl/storage/jbosscache/JDBCCacheLoader.java 2009-11-18
16:33:41 UTC (rev 759)
@@ -114,10 +114,15 @@
break;
case PUT_KEY_VALUE :
- if (isUpdate(m, (JDBCStorageConnection) conn))
- doUpdate(m, conn);
- else
- doAdd(m, conn);
+ if (m.getFqn().size() == 2) {
+ if (isUpdate(m, (JDBCStorageConnection) conn)) {
+ doUpdate(m, conn);
+ }
+ else
+ {
+ doAdd(m, conn);
+ }
+ }
break;
case REMOVE_DATA :
Modified:
jcr/branches/1.12.0-JBC/component/core/src/test/resources/conf/standalone/test-jbosscache-config-jdbcloader.xml
===================================================================
---
jcr/branches/1.12.0-JBC/component/core/src/test/resources/conf/standalone/test-jbosscache-config-jdbcloader.xml 2009-11-18
16:29:24 UTC (rev 758)
+++
jcr/branches/1.12.0-JBC/component/core/src/test/resources/conf/standalone/test-jbosscache-config-jdbcloader.xml 2009-11-18
16:33:41 UTC (rev 759)
@@ -9,7 +9,7 @@
<clustering mode="replication">
<jgroupsConfig>
- <UDP discard_incompatible_packets="true"
enable_bundling="false" enable_diagnostics="false"
ip_ttl="2"
+ <!-- UDP discard_incompatible_packets="true"
enable_bundling="false" enable_diagnostics="false"
ip_ttl="2"
loopback="false" max_bundle_size="64000"
max_bundle_timeout="30" mcast_addr="228.10.10.10"
mcast_port="45588" mcast_recv_buf_size="25000000"
mcast_send_buf_size="640000"
oob_thread_pool.enabled="true"
oob_thread_pool.keep_alive_time="10000"
oob_thread_pool.max_threads="4"
@@ -19,16 +19,16 @@
thread_pool.queue_enabled="true"
thread_pool.queue_max_size="10" thread_pool.rejection_policy="Run"
tos="8" ucast_recv_buf_size="20000000"
ucast_send_buf_size="640000" use_concurrent_stack="true"
use_incoming_packet_handler="true" />
- <PING num_initial_members="3" timeout="2000" />
+ <PING num_initial_members="3" timeout="2000" / -->
- <!-- TCP bind_addr="192.168.0.15" start_port="7800"
loopback="true" recv_buf_size="20000000"
send_buf_size="640000" discard_incompatible_packets="true"
+ <TCP bind_addr="192.168.0.15" start_port="7800"
loopback="true" recv_buf_size="20000000"
send_buf_size="640000" discard_incompatible_packets="true"
max_bundle_size="64000" max_bundle_timeout="30"
use_incoming_packet_handler="true" enable_bundling="true"
use_send_queues="false" sock_conn_timeout="300"
skip_suspected_members="true" use_concurrent_stack="true"
thread_pool.enabled="true" thread_pool.min_threads="1"
thread_pool.max_threads="25"
thread_pool.keep_alive_time="5000"
thread_pool.queue_enabled="false" thread_pool.queue_max_size="100"
thread_pool.rejection_policy="run"
oob_thread_pool.enabled="true"
oob_thread_pool.min_threads="1" oob_thread_pool.max_threads="8"
oob_thread_pool.keep_alive_time="5000"
oob_thread_pool.queue_enabled="false"
oob_thread_pool.queue_max_size="100"
oob_thread_pool.rejection_policy="run" />
- <MPING timeout="2000" num_initial_members="3"
mcast_port="34526" bind_addr="192.168.0.15"
mcast_addr="224.0.0.1" /-->
+ <MPING timeout="2000" num_initial_members="3"
mcast_port="34526" bind_addr="192.168.0.15"
mcast_addr="224.0.0.1" />
<MERGE2 max_interval="30000" min_interval="10000"/>
<FD_SOCK/>
Modified:
jcr/branches/1.12.0-JBC/component/core/src/test/resources/conf/standalone/test-jcr-config.xml
===================================================================
---
jcr/branches/1.12.0-JBC/component/core/src/test/resources/conf/standalone/test-jcr-config.xml 2009-11-18
16:29:24 UTC (rev 758)
+++
jcr/branches/1.12.0-JBC/component/core/src/test/resources/conf/standalone/test-jcr-config.xml 2009-11-18
16:33:41 UTC (rev 759)
@@ -30,7 +30,7 @@
<workspaces>
<workspace name="ws">
<!-- for system storage -->
- <container
class="org.exoplatform.services.jcr.impl.storage.jbosscache.JBossCacheWorkspaceDataContainer">
+ <container
class="org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataContainer">
<properties>
<property name="jbosscache-configuration"
value="conf/standalone/test-jbosscache-config-exoloader.xml" />
<property name="source-name" value="jdbcjcr"
/>
Show replies by date