By the way if you think the documentation should be improved or the component needs different stuff, open an issue and help by sending a Pull Request.
Thanks. Il giorno gio 23 gen 2020 alle ore 08:37 Andrea Cosentino <anco...@gmail.com> ha scritto: > We have this example based on Spring DSL and Pulsar. > > > https://github.com/apache/camel/blob/master/examples/camel-example-spring-pulsar/src/main/resources/camel-client.xml > > Il giorno gio 23 gen 2020 alle ore 08:32 Andreas Findert < > andreas.find...@web.de> ha scritto: > >> thx Andrea, >> >> but if this is the only way to set up a pulsar client via the >> camel-pulsar component, it makes >> it difficult to use it via the the Spring DSL: >> >> - setting up a client bean doesn't work, because the "factory-method" >> can't be directly applied to the client builder call in fluent style >> - even if you write some Java code and wrap the call to the builder in a >> "getClient" method and use this as "factory-method", you get >> a type mismatch, since the "pulsarClient" option is of type >> "PulsarClient" (a Java interface), where as the >> instantiated bean will an object of the implementing class >> ==> Is there a way to loosen the type check in Spring to circumvent >> this? >> >> Any other ideas how to use camel-pulsar via Spring DSL? >> >> (btw: the "pulsarClient" option is marked as "advanced", it should be >> "common", if its the only way to set up a pulsar client) >> >> --Andreas >> >> On 21.01.20 12:46, Andrea Cosentino wrote: >> > You need to create your own pulsarClient component option and set it on >> > your component >> > >> > PulsarClient client = PulsarClient.builder() >> > >> > .serviceUrl("pulsar://localhost:6650,localhost:6651,localhost:6652") >> > .build(); >> > >> > Then you can add this to your component configuration. >> > >> > Il giorno mar 21 gen 2020 alle ore 12:37 Andreas Findert < >> > andreas.find...@web.de> ha scritto: >> > >> >> how to configure the broker URL for the pulsar client instantiated by >> >> the camel-pulsar component? >> >> >> >> >> >> >> >