vert-x3 / vertx-service-proxy

EventBus Proxy generation
Apache License 2.0
67 stars 58 forks source link

How do I generate RX-ified service proxy? #62

Closed pyctam closed 7 years ago

pyctam commented 7 years ago

like for this one https://github.com/vert-x3/vertx-examples/blob/master/service-proxy-examples/service-provider/src/main/generated/io/vertx/rxjava/examples/service/ProcessorService.java

Wasn't able to see any mention of that in docs.

BillyYccc commented 7 years ago

You can take a look at my demo, the interface is like this to generate RX-ified service proxy, hope this may help you.

vietj commented 7 years ago

thanks @BillyYccc

vietj commented 7 years ago

@BillyYccc how about adding your demo to the vertx awesome page ?

BillyYccc commented 7 years ago

@vietj I'm very glad to do this, after some optimization I will make a PR.

UkonnRa commented 6 years ago

No I don't think you get @pyctam's point... https://github.com/vert-x3/vertx-service-proxy/issues/11 is actually what he want... @BillyYccc But unfortunately, it has not been implemented yet.

BillyYccc commented 6 years ago

😄It seems that streaming on eventBus may be supported in the next version as the roadmap shows in https://docs.google.com/presentation/d/1jIFJ3Z9APPdjU4LXPxQU8nLp8mugFYqeeZAWfVkHaAU/edit#slide=id.g32cfd27ea7_0_14. @CasterKKK

barbarosalp commented 5 years ago

@BillyYccc I have checked your interface and everything looks similar but rx-ified proxy was not generated. Do you have any idea what could it be?

BillyYccc commented 5 years ago

@barbarosalp can you give more details? a reproducer project may be better

barbarosalp commented 5 years ago

@BillyYccc can you please check the referenced issue above?

BillyYccc commented 5 years ago

@barbarosalp looks like you're missing rx-java2-gen dependency. Can you give a try adding

    <dependency>
      <groupId>io.vertx</groupId>
      <artifactId>vertx-rx-java2-gen</artifactId>
    </dependency>
barbarosalp commented 5 years ago

Oh, I really did miss that. It works now, thanks for your help!

BillyYccc commented 5 years ago

:smiley: actually documentation on how to genarate rx-ified service proxy is in planning, see https://github.com/vert-x3/issues/issues/341.

zortx233 commented 5 years ago

Thank you, I just spent the past 2 hours trying to figure out why my rx'ified service proxies weren't generating anymore when moving from Vert.x 3.5.4 to 3.7.1. This helped me figure it out.

I find it odd that I have the explicitly specify the version of vertx-rx-java2-gen because it is missing from the vertx-stack-depchain bom

rolintoucour commented 3 years ago

You saved my mind after few days... Thank you so much