Re: camel-jpa and PersistenceException

2017-04-25 Thread jamest
I opened a JIRA an attached a patch CAMEL-11197 I couldn't come up with a way to unit test this change without introducing integration tests with various connection pool providers but I am using this patch in my project already. No more probl

Re: camel-jpa and PersistenceException

2017-03-21 Thread jamest
Anyone have feedback on the patched version? Manual testing with the patched version in our product was successful, basically just starting/stopping the database and observing that the component was always able to reconnect. Without this change it continues to throw the exception first reported

Re: camel-jpa and PersistenceException

2017-03-15 Thread jamest
It doesn't look very clean perhaps but adding the try/catch around the whole transactionTemplate.execute() block worked for us. https://github.com/jamesET/camel/blob/master/components/camel-jpa/src/main/java/org/apache/camel/component/jpa/JpaConsumer.java As the stack trace confirms, persiste

Re: camel-jpa and PersistenceException

2017-03-09 Thread Claus Ibsen
Hi You could try to patch the code yourself and run with a camel-jpa JAR with your code changes to see what you can get working for you, and then come back here with the code changes for further discussion and see what we can do for camel-jpa. On Thu, Mar 9, 2017 at 7:42 PM, jamest wrote: > I am