Re: ActiveMQ Embedded with Tomcat missing messages while restart

2017-06-02 Thread rsahadevan
HI Justin, What you understood is correct. Consumer is writing to database. I tried with rollback and is not happening. Commit is failing in the DB and not happening rollback into activemq_msgs. This is the reason I was thinking about this approach . Please let me know anything I am missing in co

Re: ActiveMQ Embedded with Tomcat missing messages while restart

2017-06-02 Thread rsahadevan
HI All, Identified the issue. JMS Listener fires before Hibernate is setup on Server startup. Could you some one help on below points 1) How I can delay jms:listener-container for 3 minutes to start. This will solve the issue. By the time hibernate session will be ready.

Re: ActiveMQ Embedded with Tomcat missing messages while restart

2017-06-01 Thread rsahadevan
Please find the error log also t3.gz . After restarting tomcat embedded ActiveMQ is started immediately and sending persisted messages to database. First few records are getting skipped because of Nullpointer Exception. Seems the Issu

Re: ActiveMQ Embedded with Tomcat missing messages while restart

2017-06-01 Thread rsahadevan
HI Tim, Please find the attached spring resources.xml resource.xml and grails datasource below dataSource { dialect = "org.hibernate.dialect.PostgreSQLDialect" driverClassName = "org.postgresql.Driver" username = d

ActiveMQ Embedded with Tomcat missing messages while restart

2017-05-31 Thread rsahadevan
Hi All, Thanks in Advance. We have an ActiveMQ embedded running Tomcat with spring configuration. After Tomcat server restarts few records from the persisted queue are getting missed out. Below is my spring config. It seems the issue may be ActiveMQ embedded starting faster than tomcat and is not