The interceptor works fine on both ServerA and ServerB, and getTotal returns 
the correct value. The problem I was having was in ClientB - In the client, the 
interceptor sees that the object is not connected to the cache (The private 
field is transient, so in the client it is null), and returns the in-memory 
field, which is 0.
I overcame this problem by implementing the writeObject method. I wrote into 
the out stream the results of getTotal(), and not the total field. This way the 
serialization in the server wrote the correct values, and my client sees the 
right number.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973797
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to