tag:blogger.com,1999:blog-6026073423954662509.post8407595447198975915..comments2023-04-05T16:46:09.400+02:00Comments on Xavier Padró's Blog: Spring JMS: Processing messages within transactionsAnonymoushttp://www.blogger.com/profile/05830415740156192526noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-6026073423954662509.post-77396361832382772342014-08-14T22:40:52.554+02:002014-08-14T22:40:52.554+02:00Hi,
Nice article. I am working on requirement in...Hi,<br /><br /> Nice article. I am working on requirement in which<br />a. REST service receives data- load will be in the range of 70 TPS and increasing<br />b. Service will pass data to business layer for asynchronous processing <br />c. business layer will send data to another system and also persist data<br /><br />I am contemplating whether to go for HornetQ or go for simpler @Async implementation. Messages should not be lost at any cost and application should be scale-able and performing well.Gangahttps://www.blogger.com/profile/13550899178230221891noreply@blogger.comtag:blogger.com,1999:blog-6026073423954662509.post-30048714728438986392014-08-08T14:49:09.206+02:002014-08-08T14:49:09.206+02:00Haven't used the hibernate transaction manager...Haven't used the hibernate transaction manager in this case, so I'm not sure. I guess messages will also be redelivered, since the hibernate local transaction will be wrapped by the JMS transaction. This S.O. answer may help you:<br /><br />http://stackoverflow.com/questions/10799711/spring-synchronising-hibernate-and-jms-transactionsAnonymoushttps://www.blogger.com/profile/05830415740156192526noreply@blogger.comtag:blogger.com,1999:blog-6026073423954662509.post-52353163098646095052014-08-08T07:28:43.088+02:002014-08-08T07:28:43.088+02:00Nice article. Does this mean if you use @Transacti...Nice article. Does this mean if you use @Transactional with HibernateTransactionManager it will affect JDBC resource. and anything goes wrong processing message will be rolled back and broker needs to resend message depending on re-delivery count.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6026073423954662509.post-60066829629262210172014-06-27T14:56:16.312+02:002014-06-27T14:56:16.312+02:00Thanks! In that case a single resource would be af...Thanks! In that case a single resource would be affected so it could be handled by a local transaction.Anonymoushttps://www.blogger.com/profile/05830415740156192526noreply@blogger.comtag:blogger.com,1999:blog-6026073423954662509.post-91149941828529519692014-06-22T14:29:34.515+02:002014-06-22T14:29:34.515+02:00Great article. One question ...Instead of DB if th...Great article. One question ...Instead of DB if there is another JMS queue where a transformed message is placed. In that case do we still need a XA transaction?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6026073423954662509.post-5510130461411949882014-04-23T10:07:29.632+02:002014-04-23T10:07:29.632+02:00@Transactional will only be bound to a specified t...@Transactional will only be bound to a specified transaction manager, which in case of local transactions will affect a single resource (JMS or JDBC).Anonymoushttps://www.blogger.com/profile/05830415740156192526noreply@blogger.comtag:blogger.com,1999:blog-6026073423954662509.post-38645134170946946862014-04-22T13:53:05.326+02:002014-04-22T13:53:05.326+02:00Instead of distributed trasactions (which would be...Instead of distributed trasactions (which would be the best way to do it), isn't it possible to have 2 "local" transaccions (1 JMS and 1 JDBC) and make them both rollback in case of failure? (ie adding @Transactional)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6026073423954662509.post-66655137422791895252014-04-16T08:50:14.614+02:002014-04-16T08:50:14.614+02:00Fantastic, If the post helped you then it accompli...Fantastic, If the post helped you then it accomplished its target :)Anonymoushttps://www.blogger.com/profile/05830415740156192526noreply@blogger.comtag:blogger.com,1999:blog-6026073423954662509.post-3819108371926540012014-04-14T22:26:20.418+02:002014-04-14T22:26:20.418+02:00Thanks for a great article. Helped me understand l...Thanks for a great article. Helped me understand local transactions better.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6026073423954662509.post-58179187598635867472014-01-21T21:26:07.991+01:002014-01-21T21:26:07.991+01:00Thank you! I appreciate your kind words, and I'...Thank you! I appreciate your kind words, and I'm glad you found this article interesting.Anonymoushttps://www.blogger.com/profile/05830415740156192526noreply@blogger.comtag:blogger.com,1999:blog-6026073423954662509.post-19077216453086926002013-11-26T15:20:38.151+01:002013-11-26T15:20:38.151+01:00The NotificationProcessor is responsible of storin...The NotificationProcessor is responsible of storing messages into the DB (check section 3). Regarding the lose of messages, it depends on the acknowledgement mode.Anonymoushttps://www.blogger.com/profile/05830415740156192526noreply@blogger.comtag:blogger.com,1999:blog-6026073423954662509.post-63630752806677580192013-11-18T04:48:17.845+01:002013-11-18T04:48:17.845+01:00How does the messages gets stored into DB? if ther...How does the messages gets stored into DB? if there is any JVM crash, how the messages that were present in the queue would be persisted? can you help.Anonymoushttps://www.blogger.com/profile/13309959186767193220noreply@blogger.com