asynchronous invocation doesn't work

in Help Center
Hi!
I write a service using Icebox.
In my service, I found that when proxies and servants are in the same communicator, the asynchronous invocation don't work.
There is a simple example(Just add some code on demo-icebox).
my Ice version: 3.4.2
os: RedHat 5.0
Linux kernel:2.6.18-8.el5
Attachment not found.
I write a service using Icebox.
In my service, I found that when proxies and servants are in the same communicator, the asynchronous invocation don't work.
There is a simple example(Just add some code on demo-icebox).
my Ice version: 3.4.2
os: RedHat 5.0
Linux kernel:2.6.18-8.el5
Attachment not found.
0
Comments
This is the expected behavior: Ice does not currently support asynchronous proxy invocations on a collocated servant. You will need to disable collocation optimization on any proxy that is used for asynchronous invocations.
Regards,
Mark
Thanks for your early reply!
But there is another problem.
In my application,some is in the same, other is not. If the proxies and servants are not in the same communicator,I will use async invocations. That means I must know whether proxies and servants are the same communicator! Is there any interfaces to do this? Determine whether proxies and servants are in the same communicator.
Another solution is to leave it enabled by default and disable it individually for each proxy that you will use for asynchronous invocations:
Finally, you can trap CollocationOptimizationException and try again:
Regards,
Mark