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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...