[seam-commits] Seam SVN: r13647 - in branches/community/Seam_2_2: src/remoting/org/jboss/seam/remoting/messaging and 1 other directory.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Fri Aug 27 09:26:13 EDT 2010
Author: shane.bryzak at jboss.com
Date: 2010-08-27 09:26:12 -0400 (Fri, 27 Aug 2010)
New Revision: 13647
Modified:
branches/community/Seam_2_2/build/remoting.pom.xml
branches/community/Seam_2_2/src/remoting/org/jboss/seam/remoting/messaging/UserTokens.java
Log:
don't use ConcurrentHashSet from JBoss cache
Modified: branches/community/Seam_2_2/build/remoting.pom.xml
===================================================================
--- branches/community/Seam_2_2/build/remoting.pom.xml 2010-08-27 11:23:01 UTC (rev 13646)
+++ branches/community/Seam_2_2/build/remoting.pom.xml 2010-08-27 13:26:12 UTC (rev 13647)
@@ -38,12 +38,6 @@
<optional>true</optional>
</dependency>
- <dependency>
- <groupId>org.jboss.cache</groupId>
- <artifactId>jbosscache-core</artifactId>
- <optional>true</optional>
- </dependency>
-
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
@@ -59,4 +53,4 @@
</dependencies>
-</project>
\ No newline at end of file
+</project>
Modified: branches/community/Seam_2_2/src/remoting/org/jboss/seam/remoting/messaging/UserTokens.java
===================================================================
--- branches/community/Seam_2_2/src/remoting/org/jboss/seam/remoting/messaging/UserTokens.java 2010-08-27 11:23:01 UTC (rev 13646)
+++ branches/community/Seam_2_2/src/remoting/org/jboss/seam/remoting/messaging/UserTokens.java 2010-08-27 13:26:12 UTC (rev 13647)
@@ -1,9 +1,10 @@
package org.jboss.seam.remoting.messaging;
import java.io.Serializable;
+import java.util.Collections;
+import java.util.HashSet;
import java.util.Set;
-import org.jboss.cache.util.concurrent.ConcurrentHashSet;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Destroy;
import org.jboss.seam.annotations.Name;
@@ -13,7 +14,7 @@
@Scope(ScopeType.SESSION)
public class UserTokens implements Serializable
{
- Set<String> tokens = new ConcurrentHashSet<String>();
+ Set<String> tokens = Collections.synchronizedSet(new HashSet<String>());
public void add(String token) {
tokens.add(token);
More information about the seam-commits
mailing list