I want to restrict no of elements in a Region. As far as I know we can only control no of nodes in one region ( Am I missing some thing here?)
So am planning to keep each element as separate node to control element count like LRUPolicyTest.java: String rootStr = "/test/testdata"; for (int i = 0; i < 10; i++) { String str = rootStr + i; Fqn fqn = Fqn.fromString(str); try { cache_.put(fqn, str, str); } catch (Exception e) { fail("Failed to insert data" + e); e.printStackTrace(); } } Am not sure whether this is the right approach to restrict the elements count? Can someone please verify this approach? Whats the performance overhead involved in this approach? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3945614#3945614 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3945614 ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user