JiBX is designed to be usable by multiple threads, so long as the 
separate threads use different marshalling/unmarshalling contexts. 
There's always the possibility of some bug creeping in with this, but I 
don't know of any problems in this area. Are there any get/set methods 
being used by the binding that aren't threadsafe, or extension code 
being called?

  - Dennis

Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



X Y wrote:
> Hi all,
>  
> I've got question about concurrent access to JiBX. Does JiBX is secure 
> for such access? I've encountered a problem. I've got binding for one 
> schema and use it from multiple threads. Each thread gets 
> BindingDirectory for a class which corresponds to root of the xml and 
> creates marshaling/unmarshaling context. But this causes the bound 
> classes receive some weird data. On the other hand, everything is ok 
> if I synchronize access to JiBX.
>  
> So can I use JiBX from multiple threads?
>  
> Thanks,
> Jrx
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ------------------------------------------------------------------------
>
> _______________________________________________
> jibx-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>   

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to