Beehive
  1. Beehive
  2. BEEHIVE-1112

Make NameSevice implement Serializable

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.1, 1.0.2
    • Fix Version/s: 1.0.2
    • Component/s: NetUI
    • Labels:
      None

      Description

      The NetUI org.apache.beehive.netui.pageflow.requeststate.NameService instance() method creates an instance of itself and adds it to the session. However the class is not Serializable and this is an issue for containers that support clustering where the session is serialized in the replication. I don't thik it should be a problem to make it Serializable.

        Activity

        Hide
        Carlin Rogers added a comment -

        fixed with revision 409088...
        http://svn.apache.org/viewvc?rev=409088&view=rev

        The change makes NameService Serializable and includes a minor mod so after a session serialization a page refresh will allow the named INameable object to be put back into the NameService. BVT pass including div panel and tree with XHR tests.

        Show
        Carlin Rogers added a comment - fixed with revision 409088... http://svn.apache.org/viewvc?rev=409088&view=rev The change makes NameService Serializable and includes a minor mod so after a session serialization a page refresh will allow the named INameable object to be put back into the NameService. BVT pass including div panel and tree with XHR tests.
        Hide
        Carlin Rogers added a comment -

        Additional change 409270...
        http://svn.apache.org/viewvc?rev=409270&view=rev

        Implemented readObject() so that when the NameService is de-serialized, the _nameMap will not be null. I've also updated the NameService junit test to test the serlialize/de-serialize.

        Show
        Carlin Rogers added a comment - Additional change 409270... http://svn.apache.org/viewvc?rev=409270&view=rev Implemented readObject() so that when the NameService is de-serialized, the _nameMap will not be null. I've also updated the NameService junit test to test the serlialize/de-serialize.
        Hide
        Russ Baker added a comment -

        Verified that the 'org.apache.beehive.netui.pageflow.requeststate.NameService' class implements java.io.Serializable. Verified against SVN 549584. I recommend that this bug be closed.

        Show
        Russ Baker added a comment - Verified that the 'org.apache.beehive.netui.pageflow.requeststate.NameService' class implements java.io.Serializable. Verified against SVN 549584. I recommend that this bug be closed.
        Hide
        Julie Zhuo added a comment -

        Based on Russ' verification, close this out.

        Show
        Julie Zhuo added a comment - Based on Russ' verification, close this out.

          People

          • Assignee:
            Julie Zhuo
            Reporter:
            Carlin Rogers
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development