<?xml version="1.0" encoding="UTF-8"?>











<rss version="2.0" xmlns:jf="http://www.jivesoftware.com/xmlns/jiveforums/rss">



<channel>
    <title>Support Forums: Message List - How to send email when CMP transaction is commited?</title>
    <link>http://www.theserverside.com</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    
        <generator>Jive Forums Silver 5.5.30 (www.jivesoftware.com)</generator>
    
    <pubDate>Sat, 25 May 2013 11:55:58 -0400</pubDate>


    <item>

        <title>How to send email when CMP transaction is commited?</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=26855</link>

        

        
            <description><![CDATA[<blockquote>...]]></description>
        

        <pubDate>Thu, 23 Jun 2011 13:33:54 -0400</pubDate>

        

        <jf:creationDate>Thu, 23 Jun 2011 13:33:54 -0400</jf:creationDate>
        <jf:modificationDate>Thu, 23 Jun 2011 13:33:54 -0400</jf:modificationDate>
        <jf:date>Jun 23, 2011</jf:date>
        <jf:author>SirishaChiruvolu</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Let them know about the situation</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=26855</link>

        

        
            <description><![CDATA[<p>This is a complicated situation, indeed. I this you should probably let your clients know that they're going to receive that email after the transaction has been completed. There is also a software, called <a...]]></description>
        

        <pubDate>Fri, 17 Jun 2011 06:38:34 -0400</pubDate>

        

        <jf:creationDate>Fri, 17 Jun 2011 06:38:34 -0400</jf:creationDate>
        <jf:modificationDate>Fri, 17 Jun 2011 06:38:34 -0400</jf:modificationDate>
        <jf:date>Jun 17, 2011</jf:date>
        <jf:author>Noe</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>feasibility?</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=26855</link>

        

        
            <description><![CDATA[I think the way around it would be to not just send an email, but to request a read receipt. Then have a listener listening to these acks, and commit the transaction after it is received.This would work for receiving email servers that are down and for...]]></description>
        

        <pubDate>Mon, 28 Jun 2004 05:34:35 -0400</pubDate>

        

        <jf:creationDate>Mon, 28 Jun 2004 05:34:35 -0400</jf:creationDate>
        <jf:modificationDate>Mon, 28 Jun 2004 05:34:35 -0400</jf:modificationDate>
        <jf:date>Jun 28, 2004</jf:date>
        <jf:author>Kamati Pura</jf:author>
        <jf:replyCount>1</jf:replyCount>
    </item>


    <item>

        <title>XA?</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=26855</link>

        

        
            <description><![CDATA[You dont happen to know of one already written do you?]]></description>
        

        <pubDate>Mon, 28 Jun 2004 03:30:49 -0400</pubDate>

        

        <jf:creationDate>Mon, 28 Jun 2004 03:30:49 -0400</jf:creationDate>
        <jf:modificationDate>Mon, 28 Jun 2004 03:30:49 -0400</jf:modificationDate>
        <jf:date>Jun 28, 2004</jf:date>
        <jf:author>John Miller</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>How to send email when CMP transaction is commited?</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=26855</link>

        

        
            <description><![CDATA[<blockquote>When the java mail api  call retuns -- it it means is that the server has pooled your outbound email.The mail server may not respond with the true status of the outbound email until it has exhauset all possiblities.</blockquote>I understand...]]></description>
        

        <pubDate>Mon, 28 Jun 2004 03:29:51 -0400</pubDate>

        

        <jf:creationDate>Mon, 28 Jun 2004 03:29:51 -0400</jf:creationDate>
        <jf:modificationDate>Mon, 28 Jun 2004 03:29:51 -0400</jf:modificationDate>
        <jf:date>Jun 28, 2004</jf:date>
        <jf:author>John Miller</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>How to send email when CMP transaction is commited?</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=26855</link>

        

        
            <description><![CDATA[&lt;quote &gt;but if sending the email throws an exception I want the transaction to be rolled back.</blockquote>&lt;/quote &gt;<br><br>Your logic wont work and here is why : So even when your java mail api call returns ok, there is no guarantee that the...]]></description>
        

        <pubDate>Sat, 26 Jun 2004 17:43:17 -0400</pubDate>

        

        <jf:creationDate>Sat, 26 Jun 2004 17:43:17 -0400</jf:creationDate>
        <jf:modificationDate>Sat, 26 Jun 2004 17:43:17 -0400</jf:modificationDate>
        <jf:date>Jun 26, 2004</jf:date>
        <jf:author>Manish Sharan</jf:author>
        <jf:replyCount>3</jf:replyCount>
    </item>


    <item>

        <title>XA?</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=26855</link>

        

        
            <description><![CDATA[Sounds like you need to write an XA compliant wrapper around the javamail api ;-)]]></description>
        

        <pubDate>Fri, 25 Jun 2004 19:39:39 -0400</pubDate>

        

        <jf:creationDate>Fri, 25 Jun 2004 19:39:39 -0400</jf:creationDate>
        <jf:modificationDate>Fri, 25 Jun 2004 19:39:39 -0400</jf:modificationDate>
        <jf:date>Jun 25, 2004</jf:date>
        <jf:author>Charles Hudak</jf:author>
        <jf:replyCount>1</jf:replyCount>
    </item>


    <item>

        <title>How to send email when CMP transaction is commited?</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=26855</link>

        

        
            <description><![CDATA[I think I prefer that solution. <br><br>However, my experience of JMS and MDB's isn't great, but I think your suggestion has essentially the same problem as the previous one. If the MDB encounters a problem sending the email, due to the asynchronous...]]></description>
        

        <pubDate>Fri, 25 Jun 2004 09:10:18 -0400</pubDate>

        

        <jf:creationDate>Fri, 25 Jun 2004 09:10:18 -0400</jf:creationDate>
        <jf:modificationDate>Fri, 25 Jun 2004 09:10:18 -0400</jf:modificationDate>
        <jf:date>Jun 25, 2004</jf:date>
        <jf:author>John Miller</jf:author>
        <jf:replyCount>6</jf:replyCount>
    </item>


    <item>

        <title>How to send email when CMP transaction is commited?</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=26855</link>

        

        
            <description><![CDATA[Hi,<br>The java mail Api does not offer transactions. However you can do you stuff and put a message in a transactional queue ina transaction. The consumer of messages from tha quee will be aMDB that sends mails.<br>Best regards, Mircea]]></description>
        

        <pubDate>Fri, 25 Jun 2004 06:49:47 -0400</pubDate>

        

        <jf:creationDate>Fri, 25 Jun 2004 06:49:47 -0400</jf:creationDate>
        <jf:modificationDate>Fri, 25 Jun 2004 06:49:47 -0400</jf:modificationDate>
        <jf:date>Jun 25, 2004</jf:date>
        <jf:author>Mircea Crisan</jf:author>
        <jf:replyCount>7</jf:replyCount>
    </item>


    <item>

        <title>How to send email when CMP transaction is commited?</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=26855</link>

        

        
            <description><![CDATA[That is certainly the most obvious way of handling this scenario. <br><br>However, the problem with splitting it up in that fashion is that if the sending of the email fails, I have no way of rolling back the transaction that originally generated it.]]></description>
        

        <pubDate>Fri, 25 Jun 2004 05:27:42 -0400</pubDate>

        

        <jf:creationDate>Fri, 25 Jun 2004 05:27:42 -0400</jf:creationDate>
        <jf:modificationDate>Fri, 25 Jun 2004 05:27:42 -0400</jf:modificationDate>
        <jf:date>Jun 25, 2004</jf:date>
        <jf:author>John Miller</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>How to send email when CMP transaction is commited?</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=26855</link>

        

        
            <description><![CDATA[I believe the safest way to do this would be to use a store and forward mechanism. Keep identifiers, mailId's of all committed transactions in a table. Send mails later.<br><br>If there is another way, please shoot !]]></description>
        

        <pubDate>Fri, 25 Jun 2004 04:45:39 -0400</pubDate>

        

        <jf:creationDate>Fri, 25 Jun 2004 04:45:39 -0400</jf:creationDate>
        <jf:modificationDate>Fri, 25 Jun 2004 04:45:39 -0400</jf:modificationDate>
        <jf:date>Jun 25, 2004</jf:date>
        <jf:author>Shantanu Upadhyaya</jf:author>
        <jf:replyCount>1</jf:replyCount>
    </item>


    <item>

        <title>How to send email when CMP transaction is commited?</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=26855</link>

        

        
            <description><![CDATA[Hi.<br><br>I have a Session Bean method that as part of its process is sending an email using the javamail api.<br><br>However, as the method is part of a CMP transaction, to ensure that the email is valid, I would like it to be sent only when the...]]></description>
        

        <pubDate>Fri, 25 Jun 2004 03:38:53 -0400</pubDate>

        

        <jf:creationDate>Fri, 25 Jun 2004 03:38:53 -0400</jf:creationDate>
        <jf:modificationDate>Fri, 25 Jun 2004 03:38:53 -0400</jf:modificationDate>
        <jf:date>Jun 25, 2004</jf:date>
        <jf:author>John Miller</jf:author>
        <jf:replyCount>11</jf:replyCount>
    </item>



</channel>
</rss>

