[jboss-user] [JBossCache] - Re: Updating the data model for a distributed cache

jorgemoralespou do-not-reply at jboss.com
Wed Nov 29 10:55:20 EST 2006


I´ll extend further on my question.

I have a class:


  | public class User implements Serializable{
  |   private static final long serialVersionUID = 1L;
  |   private String name;
  |   private String password;
  |   ...
  |   // getters and setters ommited
  | } 
  | 

This class is in my clustered cache.

Now I want to update my class to this:

  | public class User implements Serializable{
  |   private static final long serialVersionUID = 2L;
  |   private String name;
  |   private String password;
  |   private String email;
  |   ...
  |   // getters and setters ommited
  | } 
  | 

Which is not compatible with my previous class.

Now, I want to do the update in such a way that my clustered app don´t loose service, so I shutdown node A, update class, start node A. Shutdown node B, update class, start node B.

My question is, what can happen if I do this, because of the incompatible classes? 

Can I inactivate region where this classes are stored. To the updates and activate the region again? Then if there are updates in the cache while any of the nodes is down, what will it happen?

Thanks,

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

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




More information about the jboss-user mailing list