Bug 45629 - TopicConnection is not closed
Summary: TopicConnection is not closed
Status: NEW
Alias: None
Product: Log4j - Now in Jira
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: PC Windows 2000
: P2 normal
Target Milestone: ---
Assignee: log4j-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-13 17:56 UTC by Hao Zhong
Modified: 2008-08-13 17:56 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hao Zhong 2008-08-13 17:56:20 UTC
In the code snippet [1], public JMSSink( String tcfBindingName, String topicBindingName, String username, String password) creates a TopicConnection but does not close it in any situation. JMSSink needs to implement a close method to deal with the resource, doesn't it? 

[1]http://svn.apache.org/viewvc/logging/log4j/trunk/src/main/java/org/apache/log4j/net/JMSSink.java?revision=565523&view=markup