You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Timothy A. Bish (Jira)" <ji...@apache.org> on 2022/04/28 20:26:00 UTC

[jira] [Commented] (AMQCPP-712) ActiveMQConnection Start() hangs forever/not connecting with Broker

    [ https://issues.apache.org/jira/browse/AMQCPP-712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17529629#comment-17529629 ] 

Timothy A. Bish commented on AMQCPP-712:
----------------------------------------

For any of the openwire clients the start method would block if the client has not connected yet and failover transport is in use.  The client's also block there is a socket level connection is made but the broker is having an issue and doesn't respond with the needed openwire performative to fully open the connection. This is normal behavior.

> ActiveMQConnection Start() hangs forever/not connecting with Broker
> -------------------------------------------------------------------
>
>                 Key: AMQCPP-712
>                 URL: https://issues.apache.org/jira/browse/AMQCPP-712
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: CMS Impl
>    Affects Versions: 3.9.5
>         Environment: Windows server 2012 R2
>            Reporter: Sthala Narasimhan
>            Assignee: Timothy A. Bish
>            Priority: Major
>
> My Client application uses CMS Library 3.9.5 with failover protocol.. When I invoke Start() function to connect to broker it hangs/ not connecting, though broker is configured correctly
> std::string brokerURI = "failover:(tcp://host1:61400,tcp://host2:61400)&maxReconnectAttempts=1;
>  ActiveMQConnection* conn = 0;
> ActiveMQConnectionFactory *amqfactory = new ActiveMQConnectionFactory(brokerURI);
> conn = amqfactory->createConnection();
> delete amqfactory;
> amqfactory = NULL;
> //Hangs here forever or timeout.  
> conn->start();
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)