cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dhpatel27 <>
Subject [GitHub] cxf pull request:
Date Thu, 21 Apr 2016 17:06:40 GMT
Github user dhpatel27 commented on the pull request:
    In rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/
    In rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/ on
line 182:
    @cschneider #2 Problem mentioned in CXF Bug CXF-6454, I think we should still try to get
rid of infinite loop problem as well. We are trying to give a feature of maxRetries as well
so that customers can configure on their own as per their needs. Thus, I would still suggest
we put a loop controller with maxRetries as in the original code from @vikash32504. Further
there are 2 problems in addition
    1. If a thread interrupts the loop, you are not cleaning up the resources done in method
deactivate(). It simply is coming out without cleaning up the resources.
    2. We are still not giving control to the customer using this feature to control the maxRetries
and coming out of the loop without interrupting the thread.
    3. Also, in addition to that, Thread.sleep() should be put in try block before deactivate
as done in original commit by @vikash32504 since it does not make sense to retry immediately
the JMS Connection. Thread.sleep will allow a grace period for Queue Mgr to come up and thus,
we should keep Thread.sleep before deactivate and put maxRetries back in loop to come out
of the endless loop

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message