This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes java mail and transaction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "java mail and transaction" Watch "java mail and transaction" New topic

java mail and transaction

Raf Szczypiorski
Ranch Hand

Joined: Aug 21, 2008
Posts: 383
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?
I agree. Here's the link:
subject: java mail and transaction