Duplicate Messages Recieved by Consumer of a Topic

Hi ,
I am using an application which is a consumer to a particular topic . I am not using any user defined transaction and relying on Session.Acknowledge. Sometimes very very rarerly , I get Duplicate messages. Since it is a very critical application , it is causing a problem. Does Session.Acknowledge guarantee that there will be no duplicate messages delivered
Edited by: gurpreetbhalla on Mar 10, 2009 2:24 AM

no. there is no browser mechanism for topics and messages are typically accessed per consumer not for the topic as a whole.
_sjz.                                                                                                                                                                                                                                                                           

Similar Messages

  • Distributed topic - JMS adapter consuming duplicate messages

    We have distributed topic thats consumed by a composite (JMSadpter in mediator).
    We see for every one message sent the composite consumes the message twice. (With forwarding policy set to partitioned)
    Is this an expected behavior? and how do we make the consumer (JMS adapter) consume only once per message
    Thanks
    Vijay

    From the documentation (provided here: http://download.oracle.com/docs/cd/E21764_01/integration.1111/e10231/adptr_jms.htm)
    The JMS API specifies three types of acknowledgments that can be sent by the JMS publisher:
    - DUPS_OK_ACKNOWLEDGE, for consumers that are not concerned about duplicate messages
    - AUTO_ACKNOWLEDGE, in which the session automatically acknowledges the receipt of a message
    - CLIENT_ACKNOWLEDGE, in which the client acknowledges the message by calling the message's acknowledge method
    Could you check in the weblogic-ra.xml what acknowledge mode has been configured:
    <property>
        <name>AcknowledgeMode</name>
        <value>AUTO_ACKNOWLEDGE</value>
    </property>
    ...Note that when DUPS_OK_ACKNOWLEDGE is used it can happen that a message is consumed more than once.
    Are you also sure that the message is not produced twice?
    Seminar on Cloud Computing - http://middlewaremagic.com/weblogic/?p=7387

  • Duplicate message handling using Co-relation set

    I have orchestion published as service(request-response port).
    The service consumer will send duplicate request if no response is received with in time out(configured at application end not biztalk and for example say 2 minutes).
    I designed my orchestration to have receive shape first(with corelation initialized) and my some process logic and listen shape(receive with follow co-relation & delay)
    All works good when my process logic is successfully executing. But when any failure or delay in processing and duplicate message is received before listen shape, then orchestration supends with error
    Request-response operation Operation on port Port is already in progress.
    One more contraint is that i need to send response to latest request and there should not be any zombies created.
    Plese advice a solution

    what you can try is as follows:
    Have a receive shape which will initialize a correlation set based on the message properties
    then have a parallel shape where in one branch you would do all the processing while in the other you will have another receive shape (following the correlation).
    if the request-repeat message is received set an orchestration variable indicating this event (e.g.: duplicate_request = true)
    after the parallel shape have a decision based on duplicate request to handle your response. So if you have received the duplicate then respond accordingly otherwise respond to the original request.
    What you'd have just done is a set a convoy which will handle duplicate requests without triggering a new orchestration instance.
    Regards.

  • Duplicate Messages sent

    Hi there,
    I am trying to figure out why I receive duplicate messages from my message queue. We have our Entity Beans send out messages when their state changes. When the beans are deployed first, and their state changes, only a single message is sent out, but if the state of the bean is changed again, then multiple messages are sent out. I guess the message queue does not get flushed after the delivery of the messages. Can any one shed some light on this issue?
    Here is my client code, which is gui.
    try {
    TopicConnectionFactory factory = serviceLocator.getTopicConnectionFactory("jms/TopicConnectionFactory");
    Topic topic = serviceLocator.getTopic("jms/jtTopic");
    TopicConnection connect = factory.createTopicConnection();
    TopicSession session = connect.createTopicSession(false, Session.CLIENT_ACKNOWLEDGE);
    TopicSubscriber subscriber = session.createSubscriber(topic);
    subscriber.setMessageListener(this);
    System.out.println("Listening for messages on topic/rhythm-employee...");
    // calls onMessage();
    connect.start();
    } catch (NamingException ne) {
    ne.printStackTrace();
    } catch (JMSException jme) {
    jme.printStackTrace();
    } catch (Exception e) {
    e.printStackTrace();
    And here is the onMessage code:
    public synchronized void onMessage(Message message) {
    try {
    ObjectMessage oMsg = (ObjectMessage) message;
    String jobName = oMsg.getStringProperty("jobName");
    String scnName = oMsg.getStringProperty("scnName");
    if (oMsg.getStringProperty("actionType").equals("scene")) {
    SceneTO sceneTO = (SceneTO) oMsg.getObject();
    System.out.println("Scene Name: " + sceneTO.getSceneName());
    final Object obj = oMsg.getObject();
    Hashtable hash;
    if (obj instanceof SceneTO) {
    JTBase.jobLock.lock();
    hash = (Hashtable) JTBase.Jobs.get(jobName);
    if (!hash.containsKey(scnName)) {
    hash.put(scnName,new Hashtable());
    hash = (Hashtable) hash.get(scnName);
    if (!hash.containsKey("Scene Info")) {
    hash.put("Scene Info",new Hashtable());
    hash = (Hashtable) hash.get("Scene Info");
    if (hash.containsKey("data")) {
    hash.remove("data");
    hash.put("data",obj);
    JTBase.jobLock.releaseLock();
    // Refresh if needed
    if(JTBase.jobName.equals(jobName) && JTBase.scnName.equals(scnName)) {
    SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    updateHeader(obj);
    if (JTBase.tabName.equals("Scene Info")) {
    updateMain("Refresh");
    oMsg.clearBody();
    message.acknowledge();
    } catch(JMSException jmsE) {
    JTBase.jobLock.releaseLock();
    jmsE.printStackTrace();
    Thanks in advance
    -r

    Hi,
    <rhajikhani1>
    When the beans are deployed first, and their state changes, only a single message is sent out, but if the state of the bean is changed again, then multiple messages are sent out
    </rhajikhani1>
    Does this not sound like a problem at the sending-side (your Entity Bean) rather than the receiving-side (the GUI code you have below).
    You say that when the Entity Bean is deployed it sends one message which (I assume) is handled OK by the GUI code. Then, when the Entitiy Bean changes it starts sending multiple messages, isn't this a problem with the Entity Bean message sending code?
    Anyway, if you are sure it is the receiver side I suggest placing a try catch (Throwable) around the code in the onMessage and printing the stack trace. At the moment you only catch JMSExceptions. The reason I say this is that maybe the message.acknowledge line is not being called which has resulted in a redelivery for some reason.
    I can see several points in your code where a NullPointerException could be raised which would result in the message not being acknowledged. For example if the message does not contain the property "scnName" then a NullPointerException will be thrown by the call to hash.containsKey(scnName). If you were to catch Throwables then you can tell if there is a problem with the onMessage method (or the messages it is receiving).
    Hope this helps,
    Tom Jenkinson
    Arjuna Technologies Limited

  • Getting duplicate messages

              Hi,
              I have created a topic publisher and subscriber.
              When an event is generated I am getting duplicate messages
              for the same event.
              I need them to be excatly one. I think they are generating messages as atleast
              one.
              can you please help.
              thanks
              Padmaja
              

    If you are receiving 5 messages with 5 different message ids, then you are
              likely doing that yourself. When we redeliver messages (for any reason),
              the message ids stay the same. Message ids are assigned as part of the send
              call and nowhere else in the entire code base. So it sure sounds like you
              are doign multiple sends. Println goes a long way here. Instrument your
              code before every send/publish call and then print out the message id
              immediately after the call. maybe even do a new
              Exception("DEBUG").printStackTrace(), so you can see where you are doing
              it.
              _sjz.
              "Padmaja Ragavendra" <[email protected]> wrote in message
              news:[email protected]...
              >
              > No I am not using recover or rollback.
              > The message ids are different but of the same event.
              > From a session bean everytime an object(EB) changes state
              > a trasmit is called.
              > on a single state change 5 messages are being generated with different
              ids.
              > I am using publish(message).
              > I tried using delivery mode etc but still is giving the same result.
              > thanks for the reply.
              > Padmaja
              >
              >
              > "Zach" <[email protected]> wrote:
              > >are you using transactions? are you calling recover or rollback? are
              > >the
              > >message ids identical?
              > >_sjz.
              > >
              > >"Padmaja Ragavendra" <[email protected]> wrote in message
              > >news:[email protected]...
              > >>
              > >> Hi,
              > >> I have created a topic publisher and subscriber.
              > >> When an event is generated I am getting duplicate messages
              > >> for the same event.
              > >> I need them to be excatly one. I think they are generating messages
              > >as
              > >atleast
              > >> one.
              > >> can you please help.
              > >>
              > >> thanks
              > >> Padmaja
              > >
              > >
              >
              

  • Duplicate messages in sender mail adapter

    Hi,
    We are using the sender mail adapter to retrieve messages from an IMAP mail server. Messages are being picked up correctly, but when we have large messages (with e.g. PDF attachments) things go wrong.
    The time it takes to retrieve the mail message is longer than the poll time. In this case the adapter logs in again in the mail server to retrieve the first new message from the inbox. However the first adapter threat is already retrieving that message. This results in a duplicate message in XI. (messages are set to be deleted when read).
    We have tried all kind of settings in the adapter but without any results. The adapter works fine with very small messages.
    Does anyone recognize this problem? 
    PS. please do not post links to sap help or the mail adapter FAQ. Useful answers will be rewarded.
    Thanks,
    Christiaan Schaake

    Hi Christiaan !
    I understand your problem. Could you set your IMAP account to avoid multiple simultaneous sessions?? maybe if there is only one session allowed per user or per time, then parallel XI threads will not be able to start downloading the messages.
    If you cannot use a longer poll interval, then you could develop an adapter module for the Mail sender adapter that could be used to verify if the current mail is just being downloaded by other thread. This adapter module could check the unique mail data (date/time + subject + etc.) against a local table.
    Regards,
    Matias.
    PD: please award points if helpful.
    Message was edited by:
            Matias Denker

  • TS2755 I have 2 phones on my apple id acct. And when I text message that person I am getting a duplicate message to myself. How do I stop this from happening

    I have 2 phones attached to my apple ID account and when I text message that person, I am getting a duplicate message sent back to me.  How do I stop this from happening?

    Make 3 different iCloud accounts and use ONLY for iMessage.   That will permanently fix your issue.

  • How can I Delete a MobileMe Email Account and Kill Duplicate Messages?

    When I select "All Inboxes" on my iPhone 4s, I see duplicates of each and every message I receive. Furthermore, the duplicate can't be deleted and I get an error message informing so! I suspect this phenomenon is occurring because I have both an iCloud and a MobileMe account. I want to cancel the MobileMe one.
    Here's the deal:
    My iPhone 4s lists three email accounts, including a "MobileMe" one that I want to delete because I believe it is delivering duplicate messages. However, I can't seem to figure out how to delete the MobileMe's email account or, for that matter, MobileMe itself. Apple support screens refer to cancelling a MobileMe account but are not clear on how to actually do it.
    1. On the iPhone 4s, I click on the "Mail" icon at the bottom of the screen
    2. On a screen under the heading "Mailboxes," under "Inboxes," there are two that read exactly the same (I think one is iCloud and the other MobileMe).
    3. On the same screen, under "Accounts," I see an iCloud account logo, a Bellsouth/Yahoo account logo and a MobileMe account logo.
    4. I want to keep the iCloud and Bellsouth/Yahoo accounts but delete the MobileMe one but I can find no way on this screen or any other iPhone 4s screen to do so. Nor do I see any path to do so in iTunes. And the MobileMe account doesn't even show up in the Apple email app on the laptop to which I sync my iPhone.
    If I go to www.me.com and log into my MobileMe account, there is no apparent way to disable, delete or otherwise cancel it. Why?
    I am convinced that the simultaneous presence of both iCloud and MobileMe accounts is responsible for the double email messages when I select to view "All inboxes" on my iPhone. (A workaround is to simply select just one of the accounts, say, the iCloud one. Then I see only one copy of each message. That's OK but surely there is some way to kill off this redundant MobileMe account AND the duplicate messages, yes???

    First, thanks for the reply. And, I believe you are exactly right that the names are the same. However, when I go (on my iPhone) as you suggest to "Settings," "Mail, Contacts, Calendars," only two accounts are showing; my Mac account and my Bellsouth one. If I select either, I get an option to delete but the duplicate "MobileMe" account does not appear. It only shows up, as described above, if I:
    1. On the iPhone 4s, I click on the "Mail" icon at the bottom of the screen
    2. On a screen under the heading "Mailboxes," under "Inboxes," there are two that read exactly the same (I think one is iCloud and the other MobileMe).
    3. On the same screen, under "Accounts," I see an iCloud account logo, a Bellsouth/Yahoo account logo and a MobileMe account logo.
    It's nutso, I admit, but true. Any other suggestions would be most welcome.

  • When using Message Filters on an IMAP account I often get duplicate messages in my local folder where important messages are put. How can I stop this?

    Since switching to IMAP and using message filters, I often get duplicate messages in my local folders. I think this is a bug.
    That is my guess as to what is happening.
    When the IMAP part starts syncing with the server to fill in the inbox, the message filter system starts working before it is done syncing. I appears that the filters runs too quickly because as the filter moves a msg to a local folder, the sync thread think it need to download it again from the server. If the sync with the remote server takes a long time, I could end up with 5 or more copies of the exact same email.
    This has always happened for years now but I figured someone would have noticed it and fix it by now. Now I am wondering it it has something to do with my filters or my settings.
    Has anyone run into this before?

    Toys,
    I was just doing a search to see if anyone else was feeling this way! I am also at a university and I don't really like see thousands of unread messages in mail. (Fortunately, with Leopard you can select the dock icon to show only the messages in your inbox but I still don't like having the public folder in there).
    Please let me know if you find out anything and I will do the same for you. If I have time later I am going to run by our IT office later and ask them.

  • How can I prevent Mail from applying actions (moving/copying/flagging/marking read) to duplicate messages?

    I use Mail to check multiple accounts. When I receive the same e-mail in multiple accounts, actions applied to an e-mail in one account often (though not always) affect duplicate messages in other accounts.
    Example 1
    Someone sends an e-mail to both me and my wife. Mail is set up to check both accounts. If I open the message in my Inbox, it marks it as read in my Inbox as well as in my wife's Inbox.
    Example 2
    For historical reasons, I have chosen to have all my e-mail forwarded (by the server) to a second account, to be used essentially as an un-touched archive of all incoming mail. If I manually move a message from my main account Inbox to another mailbox, the destination mailbox will end up with 2 copies, one from my main account Inbox and the other from the "un-touched archive" Inbox (which has obviously now been altered unintentionally).
    Does anyone know of a way to prevent this behavior. I can manage my own duplicates. I don't want Mail to do it for me.
    (Btw, I already have the "AlwaysShowDuplicates" option set using "defaults delete com.apple.mail AlwaysShowDuplicates")

    There are certainly many ways of organizing things so that Mail never has to deal with multiple accounts and duplicate messages (separate user accounts, separate computers, separate mail clients, etc., etc). That's just not what I was asking. I'd like to know how to fix Mail's behavior when it does have to deal with multiple accounts and duplicate messages.
    I was hoping there might be another hidden preference or something (and by the way my original post should have said "defaults write com.apple.mail AlwaysShowDuplicates -bool true", instead of the "defaults delete ...")

  • How to remove duplicate messages from Mail in Mavericks (POP)

    Hello
    I'm having some significant problems with Apple Mail, and despite having researched widely, I haven't been able to find a solution yet. Here is my tale of woe...
    My set up is that I use Mail with 5 separate accounts, downloading all messages using POP. I keep all my mail so that I have a permanent record of all conversations, going back more than 10 years - this is about 250,000 emails. I'm running the latest version of Mavericks on a 2010 MBP. I have no intention of moving to IMAP - I need to keep a local archive of all my mail.
    A few months ago I was having problems with Mail being very slow to load and search emails. I decided to rebuild the mailboxes, but afterwards discovered that thousands of messages in the inbox of one of my accounts (and some of the sub-folders) had disappeared. Once I realised I tried to go back to a recent Time Machine back up, but, for whatever reason, that part of the back up hadn't worked properly and I was unable to recover the previous status. Ileft it while I decided what to do, and had time to deal with it.
    The last 2 years worth of emails on that account were still archived on gmail, so last week I decided to try redownloading the whole lot (something like 72,000 messages), and then uplanned to use one of the scripts I was aware of to remove the duplicates to the trash, and then remove any duplicates in the trash forever. That ought to mean I at least had an archive of the last two years of missing messages, even if I had no record of which ones had been flagged or replied to, etc.
    The downloading took about 24 hours to complete, and I now have almost 70,000 messages in the inbox of that account. However, I hadn't figured on two things:
    1. Mail 'hides' duplicate messages, meaning that all of the messages I've downloaded are showing as unread, and I can't differentiate the ones I already had in my Inbox, and the new downloads. When I click on those apparently unread messages I can see if they have been replied to or forwarded, etc, but there's no obvious way for me to remove the ones I have already dealt with to the trash, without going through them all manually, which is clearly impossible.
    2. The scripts I'd found for removing duplicates don't work. Andreas Amann's Remove Duplicates script doesn't work under Mavericks, and he has abandoned the project. I've also tried the remove-duplicate-messages.scpt made by Jolly Roger (http://jollyroger.kicks-***.org/software/), and while it *sometimes* works on individual subfolders on my Mac (but as far as I can tell removes the duplicate in that folder, rather than the newly downloaded version), mostly it doesn't work at all - it creates a 'Remove Duplicate Messages' folder on my desktop, a log inside it and a folder for removed messages, but nothing appears in the duplicates folder.
    So, I'm left in a position where I have 70,000 apparently unread messages in my Inbox, a massively bloated Mail library (which has pretty much doubled in size), a slow and unresponsive Mail program. I figure I have a number of options. Either I could abandon the last week's efforts and revert to the version of

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

  • Duplicate Message ID issue in case of Multi mapping (without BPM)

    Hi Experts,
    I am doing one sample Example for my requirement of converting the single source message data into the multiple Target messages.
    for example, when sender system is sending the 5 sale order details into a single message in PI then my Inbound proxy class of ECC R/3 receiver system must get this sale orders separately, that means inbound proxy class method must be triggered separately for 5 sale orders from sender system. for achieving this, I have used the Multi mapping concept in ESR (without BPM).
    This scenario is in Asynchronous mode.
    The below screen shots give the details on what I have configures so far.
    IN ESR
    IN ID
    IN SXMB_MONI of PI
    IN SXMB_MONI of ECC R/3 Receiver system (Error in Processing)
    due to this error, inbound Proxy class method is not being triggered for the single Sale order details as well,
    please let me know how to tackle this duplicate message ID issue when we have multiple payloads to process in a single message.
    please also let me know if is there any other workaround to fulfil this requirement.
    Thank you,
    Regards,
    Jagesh

    Hi Nunu,
    Check the below blog for restrictions.
    Multi-Mapping without BPM - Yes, it’s possible!
    Restrictions
    Messages that result from the split in a mapping-based message split are sent using one AE. So only adapters running on the AE are supported. In particular, this means that target IDOC message splits are not supported since the IDOC adapter is not part of the AE.
    Regards,
    Praveen.

  • Duplicate messages in Inbox

    In Macbook Pro, in Mail, I receive a duplicate message in the Inbox. Under the inbox file is another file labeled with my e-mail address. I only receive the one message in it. How do I stop getting duplicate messages in My Inbox?

    Hi - in case there is anyone out there who has the same problem - mine got miraculously cured with the recent update of Mail. I only wish I hadn't spent upwards of 8 hours trying to fix something that was a software fault all along. Had I known this Apple, I wouldn't have wasted lots and lots my time trying to fix it...doh.

  • Duplicate messages in Snow Leopard Mail

    Is there a quick way to find/delete duplicate messages in Snow Leopard Mail?
    Thanks,
    Don

    neighbour had this problem, found RSS icon was above inbox within the program.  When RSS was move downward below the trash, program  rebuilt/closed and reopened,  this issue disappeared.

  • How to disable detection of duplicate messages in Lion Mail?

    When Mail in Lion detects duplicate messages in a mailbox, it groups them together and shows the link in the header "x Duplicates", where x is the number of duplicate messages found. When that link is clicked the duplicate messages show in the mailbox separately. But I'd like Mail to stop grouping them together to begin with.
    Running OS X 10.7.3 and Mail 5.1

    To disable automatic grouping of duplicate messages, quit Mail then run this command in Terminal:
         defaults write com.apple.mail AlwaysShowDuplicates -bool true
    To revert to the default setting, run this command:
         defaults write com.apple.mail AlwaysShowDuplicates -bool false
    or simply delete the setting altogether with this command:
         defaults delete com.apple.mail AlwaysShowDuplicates
    If you want to see how Mail behaves with this setting enabled, but without modifying your preference file, start Mail from Terminal with this command:
         /Applications/Mail.app/Contents/MacOS/Mail -AlwaysShowDuplicates YES
    I learned of Mail's modifiability (is that a word?) from here:
         http://hints.macworld.com/article.php?story=2004101603285984
    and here:
         http://erikslab.com/2007/07/16/os-x-mailapp-logging/
    I found the AlwaysShowDuplicates option by looking for interesting words similar to 'duplicates' in the Mail executable like this:
              strings /Applications/Mail.app/Contents/MacOS/Mail | grep -i duplicat

Maybe you are looking for

  • Issue in Calender Back up using NSeries and Nokia ...

    I am using facing issue in backuping the calender entries of my Nokia N81-8 Gb using Nokia PC Suite 6.85.14.1 as well as Content Copier of NSeries PC SUite 1.6. Nokia PC Suite version 6.85.14.1 Content Copier version 3.0 NSeries PC Suite version 1.6

  • MRP PR - As per Quota

    Dear All : We are runing MRP , want to generate PR as per source list  , quota arr. I defined source list  , quota arrangement , source list activated in mm master. Auto PO indicator in vendor master activated. PR getting generated. my question is :

  • Using Parameters in SQL-Query not only in where clauses

    Hi, I try to use Publisher parameters in the SQL Query from a Data Set. All of them have default values. So far, this is no problem, unless I try to use such a parameter value as an ordinary attribute value: > select      case when (:pv_Group = 'no')

  • Buying iMac 27'' (from resale perspective)

    Hello all, I want to buy a new iMac 27'' and would like to keep it for atleast 5 years. Keeping aside what I would be using it for and talking only about resale value, which of the following hard disk configuration would be better Fusion 1TB Fusion 3

  • Adding non-Adobe file formats metadata

    I'm guessing this might be tough, if not impossible. While it's great to be able to add labels to formats which are critical to my workflow, such as .max, file sequences (.tif, .tga, .png, .rpf, .rla), and others, the ability to really track projects