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.

Similar Messages

  • Duplicate message handling in the sender file adapter

    Hi,
    I enabled duplicate file handling check in the sender file adapter so that whenever there is a duplicate file it should send me an alert also it should disable the channel so that i do not get that duplicate file alert message again and again.
    My question is will it activate the channel again as soon as a new file arrives or do i need to manually do that.
    Michal's PI tips: Duplicate handling in file adapter - 7.31

    Hi Hema,
    You will have to activate the channel manually. The idea behind the 'disable' functionality is to avoid further file processing through that channel which can only start once the channel is activated again manually.
    Regards,
    Abhishek

  • Error message when using Spry Data set with XML

    Hi,
    I have what i see as a big problem, might just be me being
    dumm, but here we go.
    When I try to use the feature of spry XML Data Set and insert
    spry table I get error message when trying it in IE 7.
    There are even a problem when I use fireworks automated slide
    show function, where you can choose to use the Spry/XML gallery
    feature.
    The error message I get everytime (incl the auto gallery in
    fireworks) is:
    The tag: "html" doesn't have an attribute: "xmlns:spry" in
    currently active versions.[XHTML 1.0 transitional]
    The tag: "div" doesn't have an attribute: "spry:region" in
    currently active versions.[XHTML 1.0 transitional]
    The tag: "th" doesn't have an attribute: "spry:sort" in
    currently active versions.[XHTML 1.0 transitional]
    and so on.
    What´s wrong?!

    Hello barvid,
    Ok, let's take each problem step by step:
    1. The first error you see in the browser: " Exception while
    loading ..." normally appears when you try to load files that are
    not permitted by the browser security model. This means the XML
    file you try to load is located on a different server than your
    HTML which is not allowed. The browser is not permitting to load
    any files that are not in the same domain as the current page
    because of the complex security risks. You'll have to either get
    the XML file from its original location and save it in your website
    or use a proxy on your web server that should request that file
    from the external server and send it to the browser as an XML from
    the same domain as the HTML origin.
    1.2 The "Exception while loading ..." error you see is a
    generic error and my previous advise is based on my experience. In
    case this is not your scenario you'll have to open the SpryData.js
    and around line 112 you'll see the following code:
    Spry.Debug.reportError("Exception caught while loading " +
    url + ": " + e);
    Please change this line with the following line of code:
    Spry.Debug.reportError("Exception caught while loading " +
    url + ": " + (e.message?e.message:e));
    to obtain a more verbose error message that may clarify the
    reasons of your errors.
    2. The problems you describe are not browser errors but they
    are w3c validation errors. At this point the XHTML standard allows
    every application that define custom namespace attributes to also
    link a DTD to the page so the page to continue to be valid.
    Unfortunately at this point this feature is not correctly supported
    by the FF and IE so we wrote an articles about how you should
    link
    the Spry DTD to your page so the validator understand the
    custom attributes Spry use. You'll find inside the full description
    of the problems and all the technical details you'll need to know
    to solve this issue.
    Regards,
    Cristian

  • Duplicate file handling using Module

    Hi All
    The Scenario is like this------
    XI is picking a files from FTP location.
    Duplicate files are also getting picked by XI.
    To handle this i have written a module using NWDS which is finding it out wheather the file is duplicate or not. If the file is not duplicate then it is getting processed.
    Now the problem i am facing is
    I dont want to process the file if it is found duplicate, then what code i should write.
    What are the ways i can stop the processing of duplicate file.
    Regards
    Dheeraj Kumar

    Hi
    I have implemented a module in which i can find out wheather the file is duplicate or not. If the file is not duplicate process the file.
    now the problem is --- if file is duplicate then i dont want to process the file.
    How can i achieve this?
    Regards
    Dheeraj Kumar
    Edited by: Dheeraj Kumar on Nov 30, 2009 3:21 PM

  • Duplicate File Handling using Adapter Module

    Hi All
    The Scenario is like this------
    XI is picking a files from FTP location.
    Duplicate files are also getting picked by XI.
    To handle this i have written a module which is finding it out wheather the file is duplicate or not. If the file is not duplicate then it is getting processed.
    Now the problem i am facing is -
    I dont want to process the file if it is found duplicate, then what code i should write.
    What are the ways i can stop the processing of duplicate file. 
    Regards
    Dheeraj Kumar

    Hi
    I have implemented a module in which i can find out wheather the file is duplicate or not. If the file is not duplicate process the file.
    now the problem is --- if file is duplicate then i dont want to process the file.
    How can i achieve this?
    Regards
    Dheeraj Kumar
    Edited by: Dheeraj Kumar on Nov 30, 2009 3:21 PM

  • How to handle duplicate messages in J2SE File scenario

    Hi,
    Is there any way to handle processing of duplicate messages in J2SE File adapter scenario?
    Here is the scenario ,
    Steps :
    1. Engine picks up a message and checks the size of it.
    2. Before reaching the checking interval , the adapter(file) was terminated unfortunately.
    3. J2SE engine was restarted.
    4. Previous file was again picked up and sent as the first time with one msgID.
    5. After sometime, same file was picked up with a new msgID
    6. System gets only ONE configrmation that file has been successfully transfered.
    So we find two messages containing the same file.
    I have checked in J2SE doc, there is a parameter called "db.exactlyOnceErrorInPendingState" which is related to DB.
    Is there any similar parameter to handle the duplicate messages in FIle Adapter scenarios of J2SE Engine.
    Please help me in this regard as it seems to be a new thing in J2SE AE.
    Regards,
    Soorya.

    Hi swarup,
    But using OS command how can we rename /archive that file?
    Module means any Custom Module or wat?
    Following are the channel configurations used in File To File scenario.
    File Sender :
    version=30
    mode=XMB2FILE
    XI.httpPort=58201
    XI.httpService=/test
    XI.ReceiverAdapterForService=test_rcv
    file.numberOfMessageTypes=1
    XI.Interface=MI_test_out
    XI.InterfaceNamespace=http://nestle.com/test
    file.type=BIN
    file.targetDir=/test_inb
    file.targetFilename=unusedbutreq
    file.writeMode=fromHeader.ext
    file.createDir=0
    file.nestleName=initial
    file.writeMode=fromHeader.ext
    file.nestleEXT=test
    file.nestleFileOverwrite=False
    File Receiver :
    version=30
    mode=FILE2XMB
    XI.TargetURL=http://localhost:58201/test
    XI.NestleTargetURL=http://localhost:58201/test
    file.type=BIN
    file.checkFileModificationInterval=300000
    file.pollInterval=300
    file.processingMode=archiveWithTimestamp
    file.archiveDir=/test_out/arc
    XI.QualityOfService=EO
    file.numberOfMessageTypes=1
    file.messageAttributes=name
    XI.SenderService=test_snd
    XI.Interface=MI_test_out
    XI.InterfaceNamespace=http://nestle.com/test
    XI.ReceiverService=test_rcv
    file.nestleBadMsgDir=/test_out/bad
    file.sourceDir=/test_out
    file.sourceFilename=.
    Do the needful help asap.
    Regards,
    Prakash.

  • File, Send link doesn't open a new email. Using Firefox 11.0. Outlook 2010 is the Mailto default and W7 default email program. On the About:config page network.protocol-handler.external.mailto is set to regular font (not bold) "default Boolean true".

    File, Send link doesn’t open a new email. Running Firefox 11.0. Outlook 2010 is the Mailto default and the W7 default email program. On the About:config page, network.protocol-handler.external.mailto is set to regular font (not bold) “default Boolean true”.

    I assume you have tried toggling the setting in Firefox between Outlook and, say, Gmail:
    orange Firefox button ''or'' classic Tools menu > Options > Applications
    In the search box, type or paste '''mailto''' and pause for the list to filter.
    Change the setting and OK to save it, then return to the dialog, change back, and OK again.
    You also might want to toggle the setting at the OS level between Microsoft Outlook and the native Windows Mail client in a similar fashion. In Windows XP you could use IE's Options dialog, Programs tab, for this, but I'm not sure in Windows 7.
    Since one possibility is a problem in your Firefox settings (including the possibility of interfering add-ons), and another is a problem at the Windows level (e.g., Registry settings), it would be useful to try to identify which one it is. One quick way to distinguish is to create a new Firefox profile. It will start up with all factory settings. You can switch back to your existing profile after testing.
    First, I recommend backing up your Firefox settings in case something goes wrong. See [https://support.mozilla.com/en-US/kb/Backing+up+your+information Backing up your information]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)
    After closing Firefox, start up again in the Profile Manager as described in this article: [http://support.mozilla.com/kb/Managing+profiles Managing profiles].
    With the new profile, can Firefox successfully create a message in Outlook?

  • Duplicate messages in search results (when using Smart Mailboxes, etc)

    I've recently started using Search Folders more and more in Mail.app
    I've encountered this very annoying bug/feature, where duplicate messages show up in a search (inside Mail). The duplicate messages are showing up multiple times (once, for each Smart Mailbox they reside in) as well as their physical Mailbox, as well as "All Mail".
    The lowdown:
    Mac OS X Leopard (10.5.4 Build 9E17)
    Dual 1.25 GHz PowerPC G4 -----(shut up! it still rocks w/my multiple 23'' apple displays)
    2GB RAM
    Mail.app Version 3.3 (926.1/926)
    This feature/bug makes it VERY difficult to find things when I'm forced to sift through at least 3 copies of any message that appears in Smart Mailboxes.
    Should I stop using Smart Mailboxes because this is a deliberate feature?
    Any suggestions or thoughts would be GREATLY appreciated.
    In a search, I think that a better way to display the multiple locations (through Smart Mailboxes, etc) that a mailbox "appears" would be to add something to the header section of a message, below everything else, or off to the right, which would indicate the Original (physical) folder a message exists in, as well as it's locations via Search Folders. This would at least eliminate the problem where they're showing up as two, three, or more COPIES within a search.
    Thanks,
    Jackson

    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

  • [svn] 4290: Bug: BLZ-288 - Consumer is only receiving first pushed message when Consumer and RemoteObject that is used to push the messages use different channel sets but same channel .

    Revision: 4290
    Author: [email protected]
    Date: 2008-12-11 14:24:37 -0800 (Thu, 11 Dec 2008)
    Log Message:
    Bug: BLZ-288 - Consumer is only receiving first pushed message when Consumer and RemoteObject that is used to push the messages use different channel sets but same channel.
    QA: Yes
    Doc: No
    Checkintests Pass: Yes
    Details:
    * The bug app was arguably generating bogus test data (messages with duplicate ids), and 99.9% of applications won't be configured this way (using multiple ChannelSets with overlapping Channels, pointing at the same server) but it's still worth making this work just right anyways.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-288
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/ConsumerMessageDispatcher.as

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • Message uses a character set that is not supported by the internet service

    Does any one have any advice on how to fix this problem?
    E-mails sent from my iphone 3G periodically arrive in an unreadable form at the recipient. The body of the e-mail has been replaced with the message "This message uses a character set that is not supported by the internet service...." The problem e-mails also include an attachment that contains an unformatted text file containing the original message surrounded by what appears to be lots of formatting data that is displayed as gibberish.
    This occurs sometimes, but not always, even with the same recipients. I am sending e-mail through a G-mail account that is configured on the iphone using IMAP. I have tried the gmail account to use the two available formatting options for mail, but neither fixes the problem.
    I have also upgraded to 2.01 and restored a few times without impact.

    Hi,
    I got somewhat similar problem with special charecters(German umlaud �,�,�..).
    I create a file with java having special charecters in it. Now if I open this file I am able to view the special charecters in it.But If I attach this file send it using following code then receiver can not see the umlaud charecters in it.They get replaced by _ or ?
    MimeBodyPart mbp2 = new MimeBodyPart();
    FileDataSource fds = new FileDataSource(fileName);
    mbp2.setDataHandler(new DataHandler(fds));
    mbp2.setFileName(output.getName());
    Multipart mp = new MimeMultipart();
    mp.addBodyPart(mbp2);
    msg.setContent(mp);
    Transport.send(msg);
    From you message it looks like you are able to send the mail attachment correctly(by preserving special charecters).
    Can you tell me what might be wrong in my code.
    I appriciate your efforts in advance.
    Prasad

  • 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.

  • Advantages of Using Queued Message Handler vs. Standard State Machine

    Hello,
    What are the advantages of using a Queued Message Handler?  Also, why are they more powerful than using Standard State Machines?
    Thanks!

    They are really just sort of an extension of a state machine.  The general idea is that you have one loop doing a specific job.  You then use a queue to tell it how/when to do this job.  For instance, I might have a log file loop.  I will send it commands to open a file, write some data, write some more data, and finally close the file.  Each of those commands are coming from the queue.  The beauty with this setup is that anybody that can get a reference to that queue can send the command to that loop.
    So the QMH is "better" than a state machine mostly because of the decoupling of functions.  In a given application, I will have a loop for log file writing, GUI updates, reading of a DAQ, instrumenet communications, server communications, etc.  Trying to do all of that in a single loop state machine is a major pain in the rear end.  Seperating them out makes life so much easier.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • What do I do with this error message: To use this library, make sure its file permissions are set correctly.

    So I cannot even access the application. It was working fine yesterday and today I get this error message:
    To use this library, make sure its file permissions are set correctly.
    I have changed nothing. All the pictures are there on the computer. Help?!

    Reboot.  Close any programs which open at start-up.  Run Disk Utility (you can type this in the Spotlight search field at the right end of your Menubar).
    In Disk Utility, select your drive from the list on the left, and click "Repair Disk Permissions".  This will take a few minutes, but should be less than ten.
    Reboot.
    Try to open your Library in Aperture.  What happens?

  • HT201178 when using apple bluetooth keyboard with iPad, hitting the enter/return key while typing in iMessage only adds another line not 'send' the message? is there a setting to change that somewhere?

    when using apple bluetooth keyboard with iPad, hitting the enter/return key while typing in iMessage only adds another line not 'send' the message? is there a setting to change that somewhere?

    Everywhere that I've checked it is not possible to do this. I would like to even do this using the vkb. I hate having to stretch my thumb all the way up just to send a message. It's messaging, not a report or email. Seems backwards. Hopefully some day Apple can add this option.

  • When attempting to set up iCloud on my iMac I receive the following error message 'To use the "iCloud" preferences pane, System Preferences must quit and reopen'. I have tried quitting, re-booting etc but still receive this message. Any ideas?

    When attempting to set up iCloud on my iMac I receive the following error message "To use the 'iCloud' preferences pane, System Preferences must quit and reopen."
    I have tried quitting, even re-booting etc but still receive this message. Any ideas?

    This is a shot in the dark, but try this:
    log-in to your iCloud account with your Apple ID
    change your password
    ensure your billing information is up-to-date
    attempt to re-enable your Keychain (again)

Maybe you are looking for

  • Windows Vista & Ipod

    My old computer crashed and I purchased a new on with windows vista on it. I tried to transfer my songs purchased on itunes to the new computer from my ipod but it would only transfer a little more than half of them and it won't allow me to add my ju

  • Credit block order which is release once

    hi gurus My requirement is ____ my Clint release order form  credit block and give a credit note.But again they want to block that order for credit. Means they create order,delivery,billing and release the order from credit block.But now they again w

  • Back button not working in iTunes 11

    The "Back" button in iTunes 11.1 doesn't work correctly. It doesn't go back to previous screen, but farther back, so that with each "Back" you have to navigate again to where you were. For example, if you are viewing "See All Songs" of a particular s

  • Help. my address book is out of Whack!

    I was syncing between two macs and now may adress book has jumbled all the emails and some of my contacts have 40 emails of other contacts including the original one . is ther a way to clean the address book up?

  • Implementing ECC 6.0 for HCM as compared to the exisiting 4.7 system

    We are currently on a 4.7 system without ESS / MSS and rather than technically upgrading to ECC 6.0 a new implementation is going to happen (due for many reasons, mainly finance). My concern is for the HCM parts of the implementation. Can anyone advi