Archived
Asynchronous Programming
Hi,
I read about the asynchronous programming features on the homepage and I'm wondering how to accomplish this.
Is this available since a specific version?
I'm generating my Java-interfaces by slice2java, but I don't get any 'Async'-methods generated... I'm using Ice 3.6.4.
Best Regards Klaus
Comments
-
Hi Klaus,
The Async methods have been introduced with the new Java8 mapping in Ice 3.7.0, see:
- https://doc.zeroc.com/display/Ice37/New+Features+in+Ice+3.7#NewFeaturesinIce3.7-NewJavaMapping
- https://doc.zeroc.com/display/Ice37/Asynchronous+Method+Invocation+(AMI)+in+Java
For new projects, I recommend using Ice 3.7.0 with this new Java mapping.
You can still find the Ice 3.6 documentation at the following link: https://doc.zeroc.com/display/Ice36/
Cheers,
Benoit.0 -
Hi,
thanks for your message.
Ok, is it correct, that I can use the asynchronous-functions with earlier versions with the 'begin' and 'end'-methods?
'begin' for asynchronous method invocation. If I don't care about when the peer has finished, I don't have to call the corresponding 'end'-method right?
BR Klaus
0 -
Hi Klaus,
Correct, you don't have to call the end method if you don't care about the response.
Cheers,
Benoit0