activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Bish (JIRA)" <jira+amq...@apache.org>
Subject [jira] [Closed] (AMQNET-481) ConnectionResumedListener is not working
Date Mon, 14 Jul 2014 13:46:06 GMT

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

Timothy Bish closed AMQNET-481.
-------------------------------

    Resolution: Invalid

Questions should be directed to the user mailing list, not Jira.

> ConnectionResumedListener is not working
> ----------------------------------------
>
>                 Key: AMQNET-481
>                 URL: https://issues.apache.org/jira/browse/AMQNET-481
>             Project: ActiveMQ .Net
>          Issue Type: Bug
>          Components: ActiveMQ, NMS
>    Affects Versions: 1.6.2
>         Environment: .Net Framework4.0,
> Apache.NMS.ActiveMQ 1.6.2.3271
> Apache.NMS 1.6.0.3083
> ActiveMQ 5.9.1
>            Reporter: rajesh
>            Assignee: Jim Gomes
>
> I have stopped the ActiveMQ service and then tried to start the connection
> It is throwing NmsConnectionException was caught for the above environment
> But if try with below environment i am getting ConnectionClosedException
> .Net Framework4.0,
> Apache.NMS.ActiveMQ 1.5.5.2676
> Apache.NMS 1.5.0.2194
> ActiveMQ 5.9.1
> Here, ConnectionResumedListener  event working fine for me after start the ActiveMQ service

> Below is the my sample code
> {code}
> if (this._connectionFactory == null)
>             {
>                 this._connectionFactory = new NMSConnectionFactory(this._brokerCnfg.BrokerUri);
>             }
>             this._connection = this._connectionFactory.CreateConnection(this._brokerCnfg.UserName,
this._brokerCnfg.Password);
>             if (this._isFirstOpen)
>             {
>                 this._connection.ConnectionInterruptedListener += new ConnectionInterruptedListener(this.NMSConnectionInterrupted);
>                 this._connection.ConnectionResumedListener += new ConnectionResumedListener(this.NMSConnectionResumed);
>             }
>             
>             this._connection.ClientId = ClientName + this._brokerCnfg.ClientID; // Here
exception is throwing
>             this._connection.Start();
>             this._session = this._connection.CreateSession();
> {code}
> please help to resolve the issue 



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message