[jboss-jira] [JBoss JIRA] Created: (EJBTHREE-1901) StatefulTreeCache should get it's region Fqn from the region

Brian Stansberry (JIRA) jira-events at lists.jboss.org
Thu Aug 20 17:00:23 EDT 2009


StatefulTreeCache should get it's region Fqn from the region
------------------------------------------------------------

                 Key: EJBTHREE-1901
                 URL: https://jira.jboss.org/jira/browse/EJBTHREE-1901
             Project: EJB 3.0
          Issue Type: Task
            Reporter: Brian Stansberry
            Assignee: Brian Stansberry
            Priority: Minor


Possible minor optimization. In StatefulTreeCache.start()

      cacheNode = new Fqn(new Object[] { SFSB, this.ejbContainer.getDeploymentPropertyListString() });
      
      ......

      Node regionRoot = cache.getNode(cacheNode);
      if (regionRoot == null)
      {
         regionRoot = cache.getRoot().addChild(cacheNode);
      }
      regionRoot.setResident(true);
      
  
We should follow this with

      cacheNode = regionRoot.getFqn();

Result is the base Fqn we use to create session Fqns is made up of the same initial elements as what's in the JBC tree. Result is equals checks on those elements become ==.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list