Hello Claus,

Thanks for your reply.
I didn't think it was a bit abusive, as the component description states "...as 
a client to connect to existing an WebSocket".
This statement made me thought that it was intended to send and receive 
messages from a remote server (like an ActiveMQ).

Nicolas



-----Message d'origine-----
De : Claus Ibsen <claus.ib...@gmail.com> 
Envoyé : mardi 12 janvier 2021 10:26
À : users@camel.apache.org
Objet : Re: camel-vertx-websocket

Hi

I dont think this is implemented/supported. Its intended to be a local server 
when using consumer (from).

Not sure what it would take to support this (and if possible). As there are 
some other ramifications.
Also it seems a bit abusive use-case you are doing.

Instead look at the stomp component.
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcamel.apache.org%2Fcomponents%2Flatest%2Fstomp-component.html&amp;data=04%7C01%7Cnicolas.casaux%40soprasteria.com%7Cd05416a8cfe84895940f08d8b6dc25cb%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C637460403928058029%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=v2bZTbREyaia5Rq3js4mg6TTIG9Mw8AhXKAYwMd%2BEEw%3D&amp;reserved=0

On Tue, Jan 12, 2021 at 10:19 AM CASAUX Nicolas 
<nicolas.cas...@soprasteria.com> wrote:
>
> Hello again :)
>
> Could someone confirm that it is not possible to receive message from a 
> remote websocket server with this "camel-vertx-websocket" component ? Or 
> pointing out what I'm doing wrong ?
> As far as I understand, currently it seems only possible to send message to a 
> remote server.
>
> Thanks!
>
> Nicolas
>
>
>
> De : CASAUX Nicolas
> Envoyé : mercredi 16 décembre 2020 21:45 À : users@camel.apache.org 
> Objet : camel-vertx-websocket
>
> Hello !
>
> I'm currenty trying to use camel-vertx-websocket component to connect to a 
> remote ActiveMQ through a "Stomp over Websocket" connection.
> Since version 3.7.0 of Camel released today, I can successfully set the 
> subprotocol in URI like this, and it works:
>
> .to("vertxWebsocket://remoteActiveMQHost:61614/?clientSubProtocols=v12
> .stomp"))
>
> My issue is I can't figure out how I'm supposed to receive the message which 
> are sent by the ActiveMQ to my client.
> Indeed, when I try to start another route with:
>
> from("vertx-websocket://remoteActiveMQHost:61614/?clientSubProtocols=v
> 12.stomp ")
>
> Vertx seems to try to start local server (and fails).
> I tried to setup a VertxWebsocketEndpoint, with a specific 
> VertxWebsocketConfiguration, but it always ends up by Vertx trying to start a 
> server.
>
> How could I write a route in such way I could receive messages from a remote 
> Websocket endpoint ?
>
> Thanks in advance!
>
> Nicolas



--
Claus Ibsen
-----------------
https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdavsclaus.com%2F&amp;data=04%7C01%7Cnicolas.casaux%40soprasteria.com%7Cd05416a8cfe84895940f08d8b6dc25cb%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C637460403928058029%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=RkC9gnJzKQwGowkK072gvNjMT3wyurd%2FNDcWHz4qQkE%3D&amp;reserved=0
 @davsclaus Camel in Action 2: 
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.manning.com%2Fibsen2&amp;data=04%7C01%7Cnicolas.casaux%40soprasteria.com%7Cd05416a8cfe84895940f08d8b6dc25cb%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C637460403928058029%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=qmOZ2oGOIMst4LDYxFGFNAS3sJq%2BocFuO1EeyMu1YG4%3D&amp;reserved=0

Reply via email to