[
https://issues.apache.org/jira/browse/AMQNET-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
rajesh updated AMQNET-481:
--------------------------
Description:
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;
// Here exception is throwing
this._connection.Start();
this._session = this._connection.CreateSession();
{code}
please help to resolve the issue
was:
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
> 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; // 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)