Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java mail and transaction

 
Raf Szczypiorski
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. Can Java Mail participate in a Transaction when used in the container? I mean, I send a message, then I try to store sth in the db, and it fails, and the message is never sent. Is this possible? If yes, how can one make Java Mail Session be part of a transaction?
Cheers.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic