You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by rf...@apache.org on 2010/04/20 20:53:37 UTC

svn commit: r936026 - /tuscany/sca-java-2.x/trunk/modules/endpoint-hazelcast/src/main/java/org/apache/tuscany/sca/endpoint/hazelcast/HazelcastEndpointRegistry.java

Author: rfeng
Date: Tue Apr 20 18:53:37 2010
New Revision: 936026

URL: http://svn.apache.org/viewvc?rev=936026&view=rev
Log:
Use string values to avoid OSGi access violation

Modified:
    tuscany/sca-java-2.x/trunk/modules/endpoint-hazelcast/src/main/java/org/apache/tuscany/sca/endpoint/hazelcast/HazelcastEndpointRegistry.java

Modified: tuscany/sca-java-2.x/trunk/modules/endpoint-hazelcast/src/main/java/org/apache/tuscany/sca/endpoint/hazelcast/HazelcastEndpointRegistry.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/endpoint-hazelcast/src/main/java/org/apache/tuscany/sca/endpoint/hazelcast/HazelcastEndpointRegistry.java?rev=936026&r1=936025&r2=936026&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/endpoint-hazelcast/src/main/java/org/apache/tuscany/sca/endpoint/hazelcast/HazelcastEndpointRegistry.java (original)
+++ tuscany/sca-java-2.x/trunk/modules/endpoint-hazelcast/src/main/java/org/apache/tuscany/sca/endpoint/hazelcast/HazelcastEndpointRegistry.java Tue Apr 20 18:53:37 2010
@@ -54,7 +54,6 @@ import com.hazelcast.core.MembershipEven
 import com.hazelcast.core.MembershipListener;
 import com.hazelcast.core.MultiMap;
 import com.hazelcast.core.Transaction;
-import com.hazelcast.impl.GroupProperties;
 import com.hazelcast.nio.Address;
 
 /**
@@ -157,11 +156,15 @@ public class HazelcastEndpointRegistry e
         config.getMapConfig("default").setNearCacheConfig(new NearCacheConfig(0, 0, "NONE", 0, true));
 
         // Disable the Hazelcast shutdown hook as Tuscany has its own and with both there are race conditions
-        config.setProperty(GroupProperties.PROP_SHUTDOWNHOOK_ENABLED, "false");
+        config.setProperty("hazelcast.shutdownhook.enabled",
+                           // GroupProperties.PROP_SHUTDOWNHOOK_ENABLED, 
+                           "false");
         
         // By default this is 5 seconds, not sure what the implications are but dropping it down to 1 makes 
         // things like the samples look much faster
-        config.setProperty(GroupProperties.PROP_WAIT_SECONDS_BEFORE_JOIN, "1");
+        config.setProperty("hazelcast.wait.seconds.before.join",
+                           // GroupProperties.PROP_WAIT_SECONDS_BEFORE_JOIN, 
+                           "1");
 
         this.hazelcastInstance = Hazelcast.newHazelcastInstance(config);
     }