[jboss-jira] [JBoss JIRA] (JBJCA-1358) Container is not cleaning up container-managed JMSContext

Jiri Ondrusek (JIRA) issues at jboss.org
Thu Nov 9 08:45:00 EST 2017


    [ https://issues.jboss.org/browse/JBJCA-1358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13488134#comment-13488134 ] 

Jiri Ondrusek edited comment on JBJCA-1358 at 11/9/17 8:44 AM:
---------------------------------------------------------------

Problem is happening inironjacamar 1.4.6.Final-redhat-1.

Problem is caused also by CCM. CCM is trying to close unclosed connections in beforeCompletion phase. It should be done in afterCompletion -> at this time is transaction commited or rolled back.


was (Author: jondruse):
Problem is happening inironjacamar 1.4.6.Final-redhat-1.

Problem is caused by CCM. CCM is trying to close unclosed connections in beforeCompletion phase. It should be done in afterCompletion -> at this time is transaction commited or rolled back.

> Container is not cleaning up container-managed JMSContext
> ---------------------------------------------------------
>
>                 Key: JBJCA-1358
>                 URL: https://issues.jboss.org/browse/JBJCA-1358
>             Project: IronJacamar
>          Issue Type: Bug
>    Affects Versions: 	 WildFly/IronJacamar 1.4.3.Final
>         Environment: JBoss-EAP-7.0.0
> JDK 1.8
>            Reporter: Jiri Ondrusek
>            Assignee: Jiri Ondrusek
>
> The container is not cleaning up container managed JMSContext, causing a connection leak.
> The JMS 2.0 API doc[1] states the following :
> <quote>
> Applications running in the Java EE web and EJB containers may alternatively inject a JMSContext into their application using the @Inject annotation. A JMSContext that is created in this way is described as being container-managed. A container-managed JMSContext will be closed automatically by the container. 
> </quote>
> However the JCA's CacheConnectionManager (CCM) complains a connection leak if the application didn't explicitly close the JMSContext, which is not required for container managed JMSContext.
> [1] http://docs.oracle.com/javaee/7/api/javax/jms/JMSContext.html



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list