You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "rajesh (JIRA)" <ji...@apache.org> on 2014/07/14 14:38:05 UTC
[jira] [Created] (AMQNET-481) ConnectionResumedListener is not
working
rajesh created AMQNET-481:
-----------------------------
Summary: 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
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;
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)