[jboss-dev-forums] [Design of JBoss Serialization] - Re: What should I create to frequently ask it for smart clon
clebert.suconic@jboss.com
do-not-reply at jboss.com
Thu Aug 24 00:42:59 EDT 2006
DataContainer was not meant to be ThreadSafe. I've never done any tests reusing the same instance in a MultiThread environment.
I guess you would do that to use DataContainer as a FactoryObject. (Is that correct?)
I double checked DataContainer, and if you use it read-only, it should be thread Safe, as long you don't reuse DataContainerInputs...
So,
If you have a DataContainer, you should always do:
DataContainer source= .... init somehow ...
each Thread...
ObjectInput input = source.getInput(); // don't reuse these inputs.
But again.. I haven't tested this with the exact same scenario you arer using it.
Clebert Suconic
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967140#3967140
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967140
More information about the jboss-dev-forums
mailing list