-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Q: How to create a blocking wait for messages programmatically ? #162
Comments
I am not sure if I understand correctly but if you are trying to implement logic in which the publisher and handler run in the same thread context then this is hard to do with async messages. Definitely requires custom synchronization logic. One direction would be to provide Mbassador with the |
Hi Benjamin and thanks for taking care (with my apologies for the late reply due to heavy work load) The problem is that I'm bound to some framework. I start my servlet with a Callable/Runnable like this:
What I want:
OR:
I agree with your remark that the latter is bad design, lets call it ugly. Problem is that a handler can only be defined on class level. Thanks for your work on 'mbassador'. Gerry |
Hi all,
this sounds a bit weird, but I need something like a blocking calls that waits for a message to arrive. Just like the plain JAVA concurrent queues, but with all the PROs of mbassador.
Background is that my msg receiver must run in a specific (thread) environment, that must be the same from one handler call to the other. I have no influence on that enviroment.
Thanks for any hint.
Regards
Gerry
The text was updated successfully, but these errors were encountered: