[
https://issues.apache.org/jira/browse/AMQNET-378?page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel\#worklog-{worklog.getId()}
]
Jim Gomes logged work on AMQNET-378:
------------------------------------
Author: Jim Gomes
Created on: 11/Apr/12 00:57
Start Date: 11/Apr/12 00:57
Worklog Time Spent: 1h
Work Description: Implemented fix, and added new test case.
Issue Time Tracking
-------------------
Worklog Id: (was: 13234)
Time Spent: 1h
Remaining Estimate: 0h (was: 1h)
> Collection modified exception in Connection.Close() when using temp
> destinations.
> ---------------------------------------------------------------------------------
>
> Key: AMQNET-378
> URL: https://issues.apache.org/jira/browse/AMQNET-378
> Project: ActiveMQ .Net
> Issue Type: Bug
> Affects Versions: 1.5.3
> Reporter: Tom
> Assignee: Jim Gomes
> Fix For: 1.5.4
>
> Original Estimate: 1h
> Time Spent: 1h
> Remaining Estimate: 0h
>
> Collection Connection.tempDests is modified during enumeration and results in
> an exception and a failure to close connections.
> In Connection Close()
> {code}
> foreach(ActiveMQTempDestination dest in this.tempDests.Values)
> {
> dest.Delete();
> }{code}
> In ActiveMQTempDestination..
> {code}public void Delete()
> {
> if(this.connection != null)
> {
> this.connection.DeleteTemporaryDestination(this);
> }
> }{code}
> Connection.DeleteTemporaryDestination..
> {code}public void DeleteTemporaryDestination(IDestination
> destination)
> {
> CheckClosedOrFailed();
> ActiveMQTempDestination temp = destination as
> ActiveMQTempDestination;
> foreach(Session session in this.sessions)
> {
> if(session.IsInUse(temp))
> {
> throw new NMSException("A consumer is consuming from the
> temporary destination");
> }
> }
> this.tempDests.Remove(destination as ActiveMQTempDestination);
> this.DeleteDestination(destination);
> }{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira