This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Transaction Management with Spring JMS

 
Palash Sahu
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am not confident how DefaultMessageListenerContainer use TransactionManager to work upon MessageDrivenPOJO. If I configure JtaTransactionManger with DefaultMessageListenerContainer. Does DefaultMessageListenerContainer perform actions like ( commit , rollback etc.)
internally ?
Does Spring provide any solution for bulk message commit. ( Consider a scenario if commit action is to be performed after receving 50 messages and processing those messages.) ?

Can I write custom MessageDrivenPOJO using MessageListenerAdapter and
inject TansactionManger into it ?

Could some one please provide me sample code how to use TransactionManager with MessageDrivenPOJo ??
Any help will be highly appreciated.

Regards,
Sabyasachi
 
L zhong
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hope below helps:
http://java-x.blogspot.com/2006/12/implementing-jms-with-spring-message.html for reference.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic