GitHub user blove319 opened a pull request:

    https://github.com/apache/camel/pull/1565

    Prj keep alive

    Problem:
    When using failover in queue consumption, if a connection is bumped to 
another broker then the session in SjmsBatchConsumer becomes invalid and an 
IllegalStateException is thrown, which causes the route (and possibly the 
application) to exit.
    
    Solution:
    Introduce a new URI param that allows the SjmsBatchConsumer to create a new 
session when this situation occurs, but default the param to a value that 
preserves the original behavior so nobody gets a nasty surprise.
    
    I Know the mock classes I created to support the test are less than ideal, 
but that's an area of inexperience for me, and they do work as intended.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/blove319/camel prjKeepAlive

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/1565.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1565
    
----

----


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to