Duplicate Emails from the JVMs

Hello Experts,
We support an application where the mails are triggered everyday to the group alias.It seems for the past one month, we are receing two mails triggered from both the JVms of this appliaction.
We tried using "for update" in the SQL query to stop one jvm from accessing the table and there by preventing the two mails . This seems to work fine in Testing environment but fails in production environment.
Can anyone please throw some lights on this issue.
This issue is similar to the thread
http://forums.sun.com/thread.jspa?threadID=5234670
Please help!!

Well, now you know "for update" isn't the solution for your problem as, apparently, it does not work in production environment. So, you should really thinking of alternate solutions.
Shalinisel wrote:
So , anyway to prevent this? Instead "Nowait" setting time wud work?Now, I wouldn't suggest this at all. Firstly, I personally don't like to create some race conditions among applications. If at all I have to create a race condition, then I definitely would not like to do a race condition with locking system. Because, I feel this is not a fool-proof solution. What if, somebody kicks off "send email process" other than the time you have locks of the table. And, also, locking mechanism should only be used sparingly.
Having said that, I suggest you have a new table with date column, at the least. Your "send email process" kick off, checks the date in this new table. If the date is not sysdate then it would send emails and update the date in the new table to sysdate (current date). On the other hand, if the "send email process" process finds that the date in the new table is sysdate (current date) then it would avoid sending emails. This new table will only have one row with the date when the email were sent.
I only think this kind of solution will benefit you in resolving this issue and having control on the application rather than application having control with the locking mechanism. Of course, the new table I suggested could be property file or a normal file and need not be a database table. But, I, generally, avoid creating a new property file since, again, anyone could easily go in and change it.

Similar Messages

  • Remove Duplicate Emails from the server

    Several users have multiple copies of the same message in their inbox. Collecting External Mail and then copying the same email. Is there a way to look for duplicate messages and then delete them?

    I am running 6.1
    Its not disk space but several users have collected or copied old mail boxes several times so now their message counts are in the 10 of thousands with half to three quarters of their messages being duplicates. I was just wondering if there was a server mechanism that would allow a scan of a mailbox and a removal of duplicates. I know that there are programs that will run on a windows client that do this but I was hoping to fix this without going that route.
    Any words of wisdom are appreciated.

  • Thunderbird email is receiving many duplicates of emails from the yahoo server

    During the last few months my Thunderbird email account has been receiving many duplicates of emails from the yahoo (AT&T) server. This happens only when I receive e-mails that have large attachments like multiple photos. My spouse has the same problem on her email account. Frequently I receive 25 duplicates of the same email in my inbox.
    I'm on Thunderbird release 31.5.0.
    My server setting is = pop.att.yahoo.com port = 995
    My Outgoing server name is = smtp.att.yahoo.com

    ''hkraus07 [[#question-1051641|said]]''
    <blockquote>
    During the last few months my Thunderbird email account has been receiving many duplicates of emails from the yahoo (AT&T) server. This happens only when I receive e-mails that have large attachments like multiple photos. My spouse has the same problem on her email account. Frequently I receive 25 duplicates of the same email in my inbox.
    I'm on Thunderbird release 31.5.0.
    My server setting is = pop.att.yahoo.com port = 995
    My Outgoing server name is = smtp.att.yahoo.com
    </blockquote>
    Antivirus Program = Microsoft Security Essentials
    Other system info:
    Thunderbird 31.5.0 with Yahoo (AT&T) webmail.
    TB Server Name = pop.att.yahoo.com, port = 995, SSL/TLS.
    Outgoing Server (SMTP) settings = smtp.att.yahoo.com, port 465, SSL/TLS.
    Leave messages on server is UNCHECKED.
    Windows XP, Version 2002 SP3.
    Pentium 4, 2.66 GHz CPU, 2.5 GB RAM.
    TB Email used to work perfectly for many years with these settings and equipment. A few months ago me & my wife's TB email accounts began to receive over thirty duplicates of any emails in our inbox that have large attachments like photos.

  • Getting duplicate emails from SharePoint Report Library subscription.

    Getting duplicate emails from SharePoint Report Library subscription.
    Users are subscribed for each item in Report Library and it is scheduled to send email at 3 PM every day.
    But, intermittently users are getting duplicate emails.
    Please let me know on how to troubleshoot...

    If you have Exchange, you can track the email from there to see if that yields any value. You can also turn up the diagnostic logging in Central Admin -> Monitoring -> Configure diagnostic logging -> SQL Server Reporting Services, and selecting:
    Report Server Email Extension
    Report Server Schedule
    Report Server Subscription
    Turn them up to Verbose in the Trace log, then monitor the ULS log when you identify a user who has received duplicate emails.
    Trevor Seward, MCC
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • My emails from the last five years have disappeared and trying to receive new emails generates an error message

    My antivirus scan secured a FakeAlert threat. Now, all emails from the past five years are no longer visible in my Inbox and are not in the Deleted Items folder. Any time I try to receive a new email I receive the following message:
    "There was an error downloading the following message:
    From: <sender>
    Subject: <subject>
    This message may contain a virus or there is not enough disk space. Skip this message?"
    Enter No:
    "Unable to write the email to the mailbox. Make sure the file system allows you write privileges, and you have enough disk space to copy the mailbox."
    I have write privileges and 184 GB of free disk space. I recently deleted many emails and compacted my inbox. I cannot restore any files that the scan deleted because there are none visible.
    I have contacted my antivirus software providers and they concluded that the problem lies with my email software. Can you please help?

    REmove all emails from the Inbox to other folders.
    When it is empty do the next stage.
    If you are using a POP mail account and have some emails in the webmail view that are missing in Thunderbird, you could get everything currently on the server downloaded again.
    Make hidden files and folders visible:
    * http://kb.mozillazine.org/Show_hidden_files_and_folders
    In Thunderbird
    * Help > Troubleshooting Information
    * click on 'Show Folder' button
    * '''close Thunderbird now - this is important. '''
    * clickon 'Mail' folder
    * click on mail account name
    * Locate and delete these files: '''Inbox and Inbox.msf'''
    * locate and delete this file: '''popstate.dat'''
    * close the window - top right X
    * restart Thunderbird
    A new Inbox will be created.
    A new popstate.dat file will be created.
    It keeps a record of everything downloaded, as it is new and empty, TB will believe everything currently in server Inbox needs to be downloaded.
    This will get everything currently in server Inbox back in Thunderbird. As you already have some emails, you may get some duplicates, but only the once.
    I would not expect any emails are recoverable from the Inbox in Thunderbird because they may have been corrupted by either an unknown reason or by the antivirus program doing something with the file to make emails lose information, it is possible that when you compacted the file emails were lost. Compacting removes 'marked as deleted' emails, but if it didi not know where a marked as deleted email ended, good emails could have been removed due to the corruption.
    In future, compacting should be done on a regular basis, but never compact a file/folder that you think may be corrupted. Getting the error message saying the file may be corrupted was a good hint that somethig was wrong.
    Report back on results.

  • How to remove duplicate emails from mac mail

    i have moved my email message from outlook for mac 2011 and downloaded all the mails form 3 accounts of google app for business.
    now my mail box shows 60000 emails and is occupying more then 40GB. 50% of the mails in my mail box must be duplicate. I want to know how to remove the duplicate emails from my account.

    Apologies, this was posted here in error. Please find updated post here: https://discussions.apple.com/message/27261965#27261965

  • Mail downoading old emails from the server

    I have a SBC/Yahoo/ATT/?? account that has been working fine. It was updated to their new secruity and pop server settings a couple of months ago. Since then, I have been prompted several times to re-enter the password when doing send/receive. That was ok, just annoying at times.
    This weekend I opened up mail and it downloaded every email from the server (as if they were new)! I had certain emails set to redirect to my office, and so my office email got filled with redirected messages. It did not delete my messages from the server, but now I have duplicate/triplicate emails on my desktop. What happened and how do I prevent this from occuring again?!
    Please help.

    This is a POP account, right? What are your Preferences > Accounts > Advanced > Remove copy from server settings?

  • Receiving duplicate emails from all last year!

    I have been receiving duplicate emails from November 2011 all morning, and they were long since received and deleted.  The total will be 14,955, and after five hours, we're only up to June.  What's going on, and how can this happen?  I can't get my current emails until this is finished!

    I'd like to get an answer for this as well.
    A couple of days ago, I updated from os 10.4x to os 10.5x. Since then, there have been a handful of e-mails which have been plaguing my system. Roughly 10 times a day, the e-mail will show up as a new e-mail. When I use "mail2web.com" to double check that there are no messages on my server, it shows that they are no longer there. Still, every hour or two, these handful of messages show up again as if they are new, and this has been happening for 2 days now.
    Feel free to e-mail me if you have any suggestions. The suggestions already listed didn't work for me.
    Thanks in advance! All input is appreciated.

  • Cannot recieve emails from the yahoo POP server in linux

    I am sure POP was activated in yahoo settings because I just checked.

    ''hkraus07 [[#question-1051641|said]]''
    <blockquote>
    During the last few months my Thunderbird email account has been receiving many duplicates of emails from the yahoo (AT&T) server. This happens only when I receive e-mails that have large attachments like multiple photos. My spouse has the same problem on her email account. Frequently I receive 25 duplicates of the same email in my inbox.
    I'm on Thunderbird release 31.5.0.
    My server setting is = pop.att.yahoo.com port = 995
    My Outgoing server name is = smtp.att.yahoo.com
    </blockquote>
    Antivirus Program = Microsoft Security Essentials
    Other system info:
    Thunderbird 31.5.0 with Yahoo (AT&T) webmail.
    TB Server Name = pop.att.yahoo.com, port = 995, SSL/TLS.
    Outgoing Server (SMTP) settings = smtp.att.yahoo.com, port 465, SSL/TLS.
    Leave messages on server is UNCHECKED.
    Windows XP, Version 2002 SP3.
    Pentium 4, 2.66 GHz CPU, 2.5 GB RAM.
    TB Email used to work perfectly for many years with these settings and equipment. A few months ago me & my wife's TB email accounts began to receive over thirty duplicates of any emails in our inbox that have large attachments like photos.

  • Some external Users are getting Duplicate Emails from our domain

    Some external Users are getting Duplicate Emails from our domain. I have Exchange 2013 and is properly configured. A user reported me that, I sent one email to the other domain's user, and it was delivered twice after 1 or 2 hours.  I checked the Message
    track log on exchange servers and email was resubmitted and sent from the edge server after 2 hours.
    I have no idea why this is happening? can you please help me on this issue.

    Hi Aleem,
    Maybe some hidden rules cause this, I suggest use MFCMapi tool to double check whether there is any hidden rules exist.
    Thanks
    Mavis
    Mavis Huang
    TechNet Community Support

  • We purchased a new iPad2 and registered it using a 'new' iCloud email/ID. We are unable to send email from the iPad and iPhone. The error is: Cannot send mail. The user name or password for iCloud is incorrect.

    We purchased a new iPad2 and registered it using a 'new' iCloud email/ID. We are unable to send email from the iPad and iPhone. The error is:>> Cannot send mail. The user name or password for iCloud is incorrect.

    About ~20 hours later, this ended up solving itself. We can send email using the '.icloud' email from both the iPad and iPhone.  Advise would be 'wait' before you start seeking alteranatives like yahoo, hotmail, etc.  This definitely is a convenient way to keep all your 'cloud' information in a centralized place, including the common email...

  • TS3276 I cannot connect to my outgoing email server on my macBook pro, yet I can, for the same email account on my iPad. Also I can send emails from the other email account I have on my MacBook...really confused can anyone help?

    I cannot connect to my outgoing email server on my macBook pro, yet I can, for the same email account on my iPad. Also I can send emails from the other email account I have on my MacBook...really confused can anyone help?

    Sometimes deleting the account and then re-creating it can solve this issue
    Write down all the information in accounts before doing this
    Highlight the account on the left and click the minus button
    Then click the plus button to add the new account and follow the prompts

  • Send email from the server

    I need to send email from the database.
    Two ways that I am familiar with -
    1. using VB/ODBC controls;
    2. dbms_pipe
    Anyone knows a more 'direct' solution?
    Regards
    Anatoliy Smirnov
    null

    by the way how can u send attchments with mails from database.
    chetan
    try this...(thanks for the subject line help)
    the first message line will be read by non MIME compliant readers, the second message line with be in the body of the note, the nest 2 (third and fourth) will come in as attachments ( text ). Change the Content-type for things like word docs or other 8bit docs (Content-type: application/msword) and write_raw_data for the 8Bit parts
    CREATE OR REPLACE PROCEDURE send_mail_test (sender IN VARCHAR2,
    recipient IN VARCHAR2, subject IN VARCHAR2,
    message IN VARCHAR2)
    IS
    mailhost VARCHAR2(30) := 'smtp.naxs.net';
    mail_conn utl_smtp.connection;
    cv_cCRLF VARCHAR2(10) := UTL_TCP.CRLF;
    lv_message varchar2(4000);
    BEGIN
    mail_conn := utl_smtp.open_connection(mailhost, 25);
    utl_smtp.helo(mail_conn, mailhost);
    utl_smtp.mail(mail_conn, sender);
    utl_smtp.rcpt(mail_conn, recipient);
    utl_smtp.open_data(mail_conn);
    utl_smtp.write_data(mail_conn,'From: ' | | sender | | cv_cCRLF);
    utl_smtp.write_data(mail_conn,'To: ' | | recipient | | cv_cCRLF);
    utl_smtp.write_data(mail_conn,'Subject:' | | subject | | cv_cCRLF);
    utl_smtp.write_data(mail_conn,'MIME-Version: 1.0' | | cv_cCRLF);
    utl_smtp.write_data(mail_conn,'Content-Type: multipart/mixed; ');
    utl_smtp.write_data(mail_conn,'boundary="NextPart_000_01C002D3.EB460626"' | | cv_cCRLF);
    utl_smtp.write_data(mail_conn, cv_cCRLF | | message| |' first mess part'| | cv_cCRLF);
    utl_smtp.write_data(mail_conn,'--NextPart_000_01C002D3.EB460626' | | cv_cCRLF);
    utl_smtp.write_data(mail_conn, cv_cCRLF | | message| | ' second mess part'| | cv_cCRLF);
    utl_smtp.write_data(mail_conn,'--NextPart_000_01C002D3.EB460626' | | cv_cCRLF);
    utl_smtp.write_data(mail_conn,'Content-Type: text/plain; charset=us-ascii'| | cv_cCRLF);
    utl_smtp.write_data(mail_conn, cv_cCRLF | | message| | ' third mess part'| |cv_cCRLF);
    utl_smtp.write_data(mail_conn,'--NextPart_000_01C002D3.EB460626' | | cv_cCRLF);
    utl_smtp.write_data(mail_conn,'Content-Type: text/plain; charset=us-ascii'| | cv_cCRLF);
    utl_smtp.write_data(mail_conn, cv_cCRLF | | message| | ' fourth mess part'| |cv_cCRLF);
    utl_smtp.write_data(mail_conn,'--NextPart_000_01C002D3.EB460626--' | | cv_cCRLF);
    utl_smtp.close_data(mail_conn);
    -- utl_smtp.data(mail_conn, message);
    utl_smtp.quit(mail_conn);
    EXCEPTION
    WHEN OTHERS
    THEN
    DECLARE
    error_code NUMBER := SQLCODE;
    error_msg VARCHAR2(2000) := SQLERRM;
    error_info VARCHAR2(30);
    BEGIN
    DBMS_OUTPUT.PUT_LINE('We have an error: '| |error_code| |' '| |error_msg);
    END;
    END;
    show errors;
    null

  • On my iPad I have installed the update ios 7.0.4 and now I can't send emails from the mail app is it just me or a problem with the update?

    On my iPad I have updated the software to iOS 7.0.4 and now I can't send any emails from the mail app.  Is this me or the update?

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    Server does not allow relaying email error, fix
    http://appletoolbox.com/2012/01/server-does-not-allow-relaying-email-error-fix/
    Why Does My iPad Say "Cannot Connect to Server"?
    http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
    iOS: 'Mailbox Locked', account is in use on another device, or prompt to re-enter POP3 password
    http://support.apple.com/kb/ts2621
    The iPad's Mail app has no provisions for creating groups. However, you can use a third party app that many users recommend.
    MailShot -  https://itunes.apple.com/us/app/mailshot-pro-group-email-done/id445996226?mt=8
    Group Email  -  https://itunes.apple.com/us/app/group-email!-mail-client-attachments/id380690305 ?mt=8
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Configuration problems with IMAP e-mail on iOS with a non-standard SSL port.
    http://colinrobbins.me/2013/02/09/configuration-problems-with-imap-e-mail-on-ios -with-a-non-standard-ssl-port/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom

  • TS3899 When sending email from the Mail App or through other Apps, my default From: address will change when I enter a To: address.  This sometimes leads me to send the email from the wrong outgoing email account.  It is frustrating and poor design.

    When sending email from the Mail App or through other Apps on my iPad, my default From: address will change when I enter a To: address.  This sometimes leads me to send the email from the wrong outgoing email account.  It is frustrating and poor design, especially since I had already checked the From: address.
    iPad 4 running iOS 8.1.3

    3rd party email addresses have to be deleted on every synmced mac product, although I have 1and1.co.uk and my imac updatetes the mails in that account from mac mail.
    Yahoo etc is a 2 step deleting process but good to get your emails pushed when on the go.
    LJ
    http://www.facebook.com/The.Cowboy.Party

Maybe you are looking for

  • Adobe creative cloud set up to install on a mac with parallels windows 8

    Unfortunately it is not possible to install the program it always displays an error message. how can you loess the problem? error message: This application can not be run from a network drive-. copy it to a local folder and strarten it again.

  • Aggravated: Unable to Erase Authorization, Here's what I've already tried...

    I need to test out Epub files I create before sending them to market, so I downloaded Adobe Digital Editions for Mac from here: Download | Adobe Digital Editions I followed installation setup I logged in with my existing Adobe ID I downloaded a few b

  • Open link in a new window

    Hi, Can we open a link which is generated during runtime in a new window? Thanks in advance. Divya.

  • Create a snowflake dimension

    Hi, how could I create a snowflake dimension based over more levels? In AWM there is the appropriate option in the mapping window but in OWB I can't find a similar solution, the creating dimension wizard just create a single table for my dimension...

  • HT1473 songs take too long to import from cd

    i just got a new laptop and it  is super fast except when I export my cds!  It is taking a half hour for 5 songs!! HELP.  The cd is clean (new) I have never had this issue with abny other computer?? help I need to import 67 cds!!