[jboss-dev-forums] [Design of JBossCache] - Re: Document where non-String FQN do not work, JBCACHE-838

manik.surtani@jboss.com do-not-reply at jboss.com
Wed Nov 8 08:31:31 EST 2006


anonymous wrote : 
  | 
  | For now, can we think of a way to use a String as a substitute for the Region Fqn in the partial state transfer call? E.g. restrict the components of a Region Fqn to String/Number/Enum, all of which can be fairly safely converted to a String. Or hopefully something more elegant than that :-)
  | 
  | 

Well, the problem here is that writing an Integer or Enum as a String is alll nice and easy, but re-serializing is tougher.

Basically, Fqns containing {"test", "1"} will look the same as {"test", new Integer(1)} if serialized to Strings.  How do you know which to deserialize to, to identify the region to apply the partial state to?  What if they both exist in the same tree?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984132#3984132

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984132



More information about the jboss-dev-forums mailing list