Open cazacugmihai opened 7 years ago
It was moved here because of this comment.
Are there any progress on this one?
I have seen that it was mentioned in 3.5.0-Release-Notes.
Thank you!
@cazacugmihai there is a workaround for your problem. Proxy class and handler are generated using handlergen.templ and proxygen.templ files in service-proxy module. You could modify them so that proxy sets message headers using io.vertx.core.Context.get
and handler puts received headers again using Context
class. No recompilation of codegen or service-proxy modules required. Just add modified template files to your classpath during compilation.
@diliuskh: Thanks, I did'n know that! It would be wise to have this provided by default in the API.
Close as inactive, reopen if you need it
@slinkydeveloper The solution given by @diliuskh wont work with 4.0 right? Seems like the gen logic is hardcoded into classes now. Is there a work around for this?
@slinkydeveloper @vietj Any workaround for this ^
Not that I'm aware of, It seems like nobody was interested in this feature anymore... are you willing to contribute to this feature?
@slinkydeveloper
I can try with some guidance. I believe these we would pass a key from the caller, then the proxy picks the data from local context and adds it to deliveryoptions as a header, then the passed header gets set into the local context back again on the service side? Or maybe the headers can be explicitly passed?
Do you have any suggestion on the header name?
@vVv-AA that sounds a bit complicated... I do wonder, why you need message headers? Why not just passing a map in the signature of the proxy interface?
This is a feature that I really need. Is anyone working on this ticket? I could help
@ddcprg afaik nobody is working on this, do you want to give it a try?
Sure thing @slinkydeveloper
Allow writing and reading headers for EventBusService.
E.g.: