« Back to Technical Questions

UCXSI synchronization considerations

Combination View Flat View Tree View
Threads [ Previous | Next ]
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

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

RE: UCXSI synchronization considerations
Answer
2/6/12 1:20 PM as a reply to Raghavendra Gutty Veeranagappa.
 
Thanks for your reply Raghavendra.
 
Is that all?
In particular: can I rely on CMEProvider instances being internally synchronized?
 
Thanks,
David

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