Hi, Looks like the FQN created by passing a string and FQN created using Fqn.fromString() are NOT *equal*. Here's a sample program:
package org.myapp; | | import org.jboss.cache.Fqn; | import org.jboss.cache.PropertyConfigurator; | import org.jboss.cache.TreeCache; | | /** | * @author Jaikiran Pai | * | */ | public class TestFQN { | | public static void main(String[] args) { | try { | TreeCache treeCache = new TreeCache(); | PropertyConfigurator config = new PropertyConfigurator(); // configure tree cache. Needs to be in the classpath | config.configure(treeCache, "D:\\SchedulerInJBoss\\local-eviction-service.xml"); | treeCache.start(); | | Fqn fqn = new Fqn("a/b/c"); | Fqn fqnFromString = Fqn.fromString("a/b/c"); | | System.out.println("fqn equals fqnFromString? : " + fqn.equals(fqnFromString)); | | /*treeCache.put("a/b/c",new Integer("1"),"1"); | System.out.println("Exists fqn? (created WITHOUT using fromString) : " + treeCache.exists(new Fqn("a/b/c"))); | System.out.println("Exists fqn? (created using fromString) : " + treeCache.exists(Fqn.fromString("a/b/c"))); | */ | | | | } catch (Exception e) { | e.printStackTrace(); | } | | | } | } This programs returns false when equals method is invoked on the two Fqns. Is this the expected behavior of Fqn? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956115#3956115 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956115 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