camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-9665) camel-ahc-ws Consumer does not connect
Date Sun, 06 Mar 2016 11:35:40 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-9665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen updated CAMEL-9665:
-------------------------------
    Fix Version/s: 2.17.0
                   2.16.3

> camel-ahc-ws Consumer does not connect
> --------------------------------------
>
>                 Key: CAMEL-9665
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9665
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-ahc-ws
>    Affects Versions: 2.16.1
>            Reporter: Thomas G√ľnter
>            Assignee: Claus Ibsen
>             Fix For: 2.16.3, 2.17.0
>
>
> WsEndpoint.connect(WsConsumer) should connect to the WebSocket server in case this is
not already done. 
> The test case (WsProducerConsumerTest.java) only works, since the producer is connecting
first and the consumer is using the same connection. If no producer is used, then no connection
is created and the consumer will not receive any messages.
> Suggestion:
> {code}
>   void connect(final WsConsumer wsConsumer)
>   {
>     this.consumers.add(wsConsumer);
>     if (this.websocket == null || !this.websocket.isOpen())
>     {
>       this.connect();
>     }
>   }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message