This document was generated from CDN thread
Created by: David Requena on 05-02-2012 08:19:43 AM
Hi All,
I'm working on a servlet based CSTA monitoring system.
As the j2ee platform is hightly multi-threaded I'm a bit worried about potential synchronization issues. I could not find any reference to thread-safeness at the dev's guide not at javadoc reference but, well, that might mean everything is thread-safe as much as that nothing is. Provided examples do not take any synchronization precautions and freely access CMExxx instances from event handlers, but then these are presented as 'minimal code' samples.
So here is my question: What classes, instances and methods, if any, should I be synchronizing access to?
Pointers to relevant documentation would also be very much welcome.
Thanks in advance.
David
Subject: RE: UCXSI synchronization considerations
Replied by: David Requena on 06-02-2012 07:18:43 AM
Thanks for your reply Raghavendra.
Is that all?
In particular: can I rely on CMEProvider instances being internally synchronized?
Thanks,
David
Subject: RE: UCXSI synchronization considerations
Replied by: Raghavendra Gutty Veeranagappa on 06-02-2012 05:21:34 AM
Hi David,
If the instance of a callback interface implementation class for one address-terminal pair is being reused for another address-terminal pair, make sure that the callback methods in the implementation class are synchronized.
Thanks,
Raghavendra
Subject: RE: UCXSI synchronization considerations
Replied by: Raghavendra Gutty Veeranagappa on 07-02-2012 07:34:26 AM
Hi David,
There are 3 callback interfaces CMECSTAListener, CMEProviderListener and CMEResponseInterface, i think callback methods in these 3 implementation
classes should be synchronized.
Thanks,
Raghavendra