[jboss-dev-forums] [Design of Clustering on JBoss (Clusters/JBoss)] - Using JBossSerialization with HttpSession Replication (JBAS-
hmesha
do-not-reply at jboss.com
Mon Aug 28 15:39:29 EDT 2006
Hi all,
discussion for JBAS-2921
Currenlty, Http Session replication employ JavaSerialization to perfrom object serialization before inserting sessions or attributes in the cache. What we would like to do is provide an additional option to use JBossSerialization. The problem there's no server wide configuration property to toggle between JavaSerialization and JBossSerialization.
Here's the solution that I'm proposing
1. provide a configurable property in jboss-web.xml. Possible values are:
<session-serialization>JBossSerialization</session-serialization>
or
<session-serialization>JavaSerialization</session-serialization> (default value)
or
<NOT EXIST> (default to JavaSerialization)
2. add dependency on JBossRemoting to take advantage of SerializationStreamFactoryMBean where we set and get the serialization manager from the factory.
3. Based on the serialization type specified in step 1 we can invoke the either JBossSerializationManager or JavaSerializationManager (default) to create the needed MarshalledValue to serialize the objects
Thoughts?
-Hany
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967904#3967904
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967904
More information about the jboss-dev-forums
mailing list