[
https://issues.apache.org/jira/browse/TUSCANY-3024?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12713076#action_12713076
]
Haneef Ali commented on TUSCANY-3024:
-------------------------------------
Hi,
Though this fixes the issue, I think it is not the most elegant way
This is how the flow looks like
1) Create a session
2) Invoke request
3) If response is needed then invoke response. Session is used only
here. No need to unnecessarily create one before request
Correct fix would have been
1) Invoke request
2) If response is needed
Create a session
do processing
close session
> JMS Session is not closed in TransportServiceInterceptor
> --------------------------------------------------------
>
> Key: TUSCANY-3024
> URL: https://issues.apache.org/jira/browse/TUSCANY-3024
> Project: Tuscany
> Issue Type: Bug
> Affects Versions: Java-SCA-1.4
> Environment: All version
> Reporter: Haneef Ali
> Original Estimate: 0.17h
> Remaining Estimate: 0.17h
>
> Hi
> My JMS message doesn't have any replyTo field. After processing more than
> 50K message I used to get OutOfMemoroy error. Debugged the code and found
> that none of the session is closed in the ServiceInterceptor side. This is
> causing memory leak
> Thanks,
> Haneef
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.