Allowing first multiple consumer to dequeue; deny others

Hi.
We have defined a multiple consumer queue, and in it, we would like to be able to post a message to one or more consumers, but have the message fully consumed by the first consumer that dequeues it.
For instance, suppose a message is enqueued for 'Blue' and 'Red.' The way I understand AQ, both Blue and Red will have to dequeue the record before it is removed. What if, instead, I would like the record to be dequeued by only one of the consumers. So that if Blue dq's it, Red will never see it; and if Red dq's it, Blue will never see it.
Is there a way to do this?
Thanks.

It sounds like all you need to do is to set multiple listeners to false. Multiple listeners implies that the message will be delivered to all listeners. You can set multiple listeners to false but have more than one application pulling (or being event driven) from the queue. In that case only one connection will get the message.
thanks, don.

Similar Messages

  • Can a TR be config'd to allow for multiple TO's to be processed

    Hello MM experts,
    Can a TR be configured to allow for multiple TO's to be processed without locking the TR?
    For a Goods Issue against a Planned Order, the MPC will do a MIGO-GI for the materials required by the crew.  This will generate a Transfer Requirement (TR) and a Transfer Order (TO) for each storage type.
    This is intended to allow multiple material handlers to pick the materials for the job.  However, when two or more material handlers are processing TO's against the same TR, they are getting an error message that the Transfer Requirement is locked by someone else.
    Thank you
    Terry

    Raja,
    It appears that we already have the material block set as Late lock for goods movement with a wait time of 10 seconds.
    From what I understand now is that the material remains locked until the first material handler exits completely out of the GI menu.  I'm not sure if changing the wait time will have a positive effect but I will have to wait a few days until our analyst returns to test this further.
    Thanks again.
    I will award you points for your suggestions

  • Multiple Consumer object per Streaming Connection in AIR

    hi,
    We require streaming server setup for our project.
    We are trying to minimize the active connections to the server.
    My query is "If we are using multiple Consumer object instances with same channel and destination, will we have a single connection to the server shared by all Consumer instances or we'll be having different connection for each Consumer instance".
    Thanks in advance for your support
    Regards,
    Shailendra Sirohi

    Excellent answer.  It dovetails with the approach I've started to take here.  I'm using something called NetConnectionClient to catch server calls.  Does your NCMgr class extend NetConnection or EventDispatcher?
    Mine extends EventDispatcher and has a method like the following.  Just stuffs the message from the server into an object first before dispatching an event containing it:
            public function receiveChatMessage(msg:String):void
                var tempObj:Object = new Object();
                tempObj.msg = msg;
                dispatchEvent(new NetConnectionClientEvent("onReceiveChatMsg", tempObj));
    All cool there.  This works up to this point.
    I'm hazy after that though.  Who should listen for and handle the event?  I'd like my chat component to listen for and handle it directly, like in your scenario.  But my chat component is in a separate mxml file imported into the main app file.  I'm hazy on how to have it grab what it needs.
    I currently have the "application" listening for and handling the event.  The handler method just relays the call by calling a method on the chat component instance, like this:
    chat.receiveMessage(tempObj); //tempObj contains the message
    I think that's too many relays of the same call, from the NetConnectionClient class, to the main application file, down to the custom chat component.  I'd like to cut out a leg of that trip.
    Should I have the chat component instance itself be listening, like this?
                chat.addEventListener("onReceiveChatMessage", chat.receiveChatMsg);
    Is that a proper relay of the dispatched event to the target component.  The syntax doesn't seem proper to me.  I feel like something's wrong with the design of the last leg of the relay here.

  • Configuring queue for Producer - first-available Consumer delivery

    Hello,
    Setting
    consumerFlowLimit to 1
    consumerFlowThreshold to 0
    doesn't appear to be enough to ensure that messages from a queue are delivered to the first available consumer.
    We are trying to implement a classic Producer(s) -> Consumer(s) job distribution scheme where our jobs are lengthy and vary in duration.
    It's important that msgs are sent to the next available Consumer and not waiting/buffered at a busy Consumer.
    What we see with the settings above is that more than one message appears to be buffered at each consumer when it starts. After the startup buffering, the settings appear to be working as intended.
    We are using openmq 4.3, but happy to move to 4.4 if required.
    This question was posted earlier to the users list, but I've posted here with elaboration. Thanks!
    Steven Marcus

    This is a critical bug for us. Can we raise the priority of fixing this?
    With the current implementation, openMQ guarantees to deliver messages out-of-order when using multiple consumers.

  • Cannot close first tab (LH end one) with other open ones are closeable.

    Cannot close first tab (LH end one) but others are closeable. Downloading indicator on tab continues to rotate indefinitely - windows under all tabs operate normally.
    Opening an additional Firefox copy allows all tabs to work normally within that copy

    I had this same problem for some time now. In another Mozilla Firefox forum page related to this search one user said to disable the add on "Invisible Hand". I did that and rebooted and have multiple pages open now with multiple tabs and I could shut down the first tab on all the open windows. I think the "Invisible Hand" add-on s the culprit, at least in my case.

  • My problem is very simple......firefox wont allow me save my downloads to any other location than my c drive....for example i have gone into options and set sav

    ''locking this thread as duplicate, please continue at [https://support.mozilla.org/en-US/questions/986549 /questions/986549]''
    my problem is very simple......firefox wont allow me save my downloads to any other location than my c drive....for example i have gone into options and set save downloads to my e drive....but still firefox keeps saving them to my c drive....i have 4 internal hard drives in my rig....and have tried saving downloads to them all.......why this is happening i cant understand....i have tried lots of suggestions....and have re-installed firefox multiple times

    hello, there's a general regression in firefox 27 that won't allow files to download directly into a root drive. please try to create a subfolder (like ''E:\Downloads'') and set this as default location for downloads...
    also see [https://bugzilla.mozilla.org/show_bug.cgi?id=958899 bug #958899].

  • Internal Error ORA-0600 when creating multiple consumer queue table

    Hi,
    I tried to create a multiple consumer queue table with the following statements:
    exec DBMS_AQADM.GRANT_TYPE_ACCESS ('system');
    create type Change_History_Trigger_Data as object(Col1 VARCHAR2(255), Col2 VARCHAR2(128), Col3 VARCHAR2(255), Col4 TIMESTAMP, Col5 VARCHAR2(64), Col6 VARCHAR2(64), Col7 NUMBER(8));
    Works fine till this stage. But the following statement produces an ORA-0600 internal error message.
    EXEC DBMS_AQADM.CREATE_QUEUE_TABLE ('change_history_queue_tbl','Change_History_Trigger_Data', 'tablespace my_tblspace','ENQ_TIME',TRUE,DBMS_AQADM.TRANSACTIONAL);
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [kcbgtcr_4], [14392], [0], [1], [], [], [], []
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 2224
    ORA-06512: at "SYS.DBMS_AQADM", line 58
    ORA-06512: at line 1
    I tried creating the same queue table with Multiple consumer = FALSE, and it works fine. But not with multiple consumer = TRUE
    I'm running on Oracle9i Enterprise Edition Release 9.2.0.6.0
    Any possible solutions?

    Problem solved.
    The queue name was too long. Found a post with the same problem.
    Re: Create Queue Table ORA-00600 while dbms_aqadm.create_queue_table
    thanks anyway

  • Multiple Consumer Object per Streaming Connection in AIR2.0

    HI,
    we require streaming server setup for our project.
    We are trying to minimize number of connections to the streaming server.
    My query is "If we have multiple Consumer object instance with same channel and destination, will all the Consumer instances share the same streaming connection or for every Consumer object instance a new Connection is created?"
    Thanks in advacne for your support.
    Regards,
    Shailendra

    Thanks doghouseJim, appreicate
    I tried to substitute onStatus function with your code (metadata) and as a result I don't have reported  error anymore.
    However, for strange reason, once the flash goes into a html document the video is not loaded...
    any idea?
    Cheers

  • How to disable Refresh,Reload in browser and user should not allow to multiple browser sessions ?

    Dear All,
    How to disable Refresh,Reload in browser and end user should not allow to multiple browser sessions in portal.Where we need to configure the settings or any code in masthead or any other component. My server version is 7.4 - SP5 .Please help us.
    Thanks for advance,
    BR,
    Durga Rao.

    Dear all,
    i am able to logoff the click refresh button on keyboard.I am using this code to log off the user into the portal.
    document.onkeydown = function(e)
      var key;
      if (window.event) key = event.keyCode
      else
      var unicode = e.keyCode ? e.keyCode : e.charCode
      key = unicode
      switch (key)
      { //event.keyCode
      case 116: //F5 button
        LSAPI.sessionPlugin.logoff();
      event.returnValue = false;
      key = 0; //event.keyCode = 0;
      return false;
      case 82: //R button
      if (event.ctrlKey)
    LSAPI.sessionPlugin.logoff();
      event.returnValue = false;
      key = 0; //event.keyCode = 0;
      return false;
      case 91: // ctrl + R Button
    LSAPI.sessionPlugin.logoff();
      event.returnValue= false;
      key=0;
      return false;
    Thanks.
    But i am unable to control the multiple windows opening the browser.So any one can tell me the how to block the new window and new tab/duplicate tab option.
    BR,
    Durga Rao.

  • I ended up having two id's, one being my original when first getting into itunes and the other came when I opened a me account.  I have purchases under the original id.  How do I merge the old account into the new account

    I ended up having two id's, one being my original when first getting into itunes and the other came when I opened a me account.  I have purchases under the original id.  How do I merge the old account into the new account

    Sorry, but it is not possible to merge two Apple IDs/iTunes Store accounts.
    Regards.

  • Fastest way to add multiple images, one after the other, in DW5.5

    There has to be a faster way to add multiple images, one after the other, in a web page rather than just dragging each from the Files tab w/in DW 5.5
    I was a little surprized I couldn't select multiple images and just drag a block and have DW just insert an img tag with empty alts and the source path but maybe there is some options I just haven't found?
    I tried using Bridge to generate a quick html slideshow/gallery but it creates skads of divs and such... I just have to update an older site and was looking for an efficient way to add a bunch of images (random names ugh so just copying-pasting one and changing names is still more manual) that lie next to each other, no breaks inbetween....seems an ideal automated situation.
    I'd settle for an external script or app or something because they come in blocks of 25 approx and I have all my actions in PS set up to size appropriately which is nice so I just wondered if there was something good for this low-level production task.
    Thanks

    Thanks. Yes, I started writing a script but I just wondered if there were hidden gems in DW....so many programs do more than they are intended to do nowadays, I had to ask people who use it more!
    Actually, the fastest was to just dupe one line of code, paste x amount and then just use the pick-wip to point and drag. That at least cut the menu out of the equation.
    I thought I remembered doing a batch insert years ago..maybe in GoLive or before Adobe had DW? DW and GoLive are the only GUI html editors I've ever used..but, may it was just something out of an ealier photoshop...they've taken good stuff out and put good stuff in so many times that I can only remember so much!

  • When creating my own form... is there a way to to link multiple drop down fields  to other drop down fields?

    when creating my own form... is there a way to to link multiple drop down fields  to other drop down fields?

    And in what program? You need to be more specific. Creating conditional forms is of course possible, but the procedures will depend on the actual program and target medium. HTML forms work differently from PDF...
    Mylenium

  • I'm trying to install CS5 design standard. Which disc do I install first? One says, "CONTENT" the other has no label. When I search how to install it tells me to install disc 1.  I have nothing that says disc 1.

    I'm trying to install CS5 design standard. Which disc do I install first? One says, "CONTENT" the other has no label. When I search how to install it tells me to install disc 1.  I have nothing that says disc 1.

    Hi rinimeluv,
    If the disk isn't working, try the below mentioned link.
    Install Adobe Creative Suite 5 
    If the problem still persists please try to download it from the link mentioned below and follow the above link in case you face any issues installing it.
    Download CS5 products
    Thanks,
    Atul Saini

  • First listed virtual host is masking others

    I am running a couple of virtual hosts started through the standard Server Admin GUI. All vhosts are name-based. I have three:
    default (no domain name, port 80)
    site1 (site1.myschool.edu, port 80)
    site2 (site2.myschool.edu, port 80)
    they are listed in that order in the GUI, all are active, each has a separate access and error log and separate document roots.
    Any request to either the naked IP address of the machine, or to the domain names for the second and third site are showing the content from the first default site. The log files for the second two are not being written to, and the index files for the second two are not showing. It appears that the first virtual host is masking the other two.
    I've tried re-ordering to place the default last, but whatever I do, the first vhost listed masks the other two.
    Any ideas what might be going wrong here? All the configuration was done through the Server Admin GUI, so I haven't been mucking about with the on-disk conf files in /etc/httpd
    Thanks in advance for any ideas.
    Cris

    Check the aliases tab for each site and make sure none of the contain a *
    The * says match all hostnames, so Apache won't bother looking for additional sites if it finds one.

  • My firefox on my lap top (with windows 7) cannot open a website with a username and password, without first clearing the history ? my other computer has windows xp and it works fine.

    My firefox on my lap top (with windows 7) cannot login to my e mail website with a username and password, without first clearing the history ? my other computer has windows xp and it works fine.

    I simply reinstalled fire fox 3.6.19 and I can login no problem. Seems like it could be a compatability problem between 5.0 and windows 7. One other thing that happened often was lag while playing mmorpg games. Not sure if this fixed it or not, but I can update this thread when i find out.
    Thank you to who ever provided the link to the older fire fox downloads page in another question thread.

Maybe you are looking for

  • Multiple camera recording question

    Ok so if i have multiple cameras and one of them triggers and is recording can another record at the same time.  it looks like when this happens i lose a video.  the triggers are all in the activioty log but no video is there to see. Al

  • How do I change my HP Photosmart C4580 printer wireless settings using the apple provided drivers?

    I have a mac pro running the Yosemite OS.  I have a HP Photosmart C4589 all in one printer that had been working fine until I replace my router. Now I can only use the printer as a usb.  I know I need to change the wireless settings in the printer bu

  • Submit button from Adobe form doesn't trigger event???

    Hi all, I am having this weird problem, the submit button wont trigger any event i register to "submit" and so as to the "check" event. when i send the link to one of my colleagues, the button can trigger the event. i am using adobe reader 8 on IE 6,

  • Could not open W:\Forms\c2k_standards.olb Load this in Future?

    Im new to Forms and struggling to understand about libraries and there's a lack of literature about the topic on the net. I've inherited my pc and i know i'm getting the following error because i no longer have a mapped drive (w:) could not open W:\F

  • AS 8.1 Question

    Dear All, Would anyone, please let me know if i have an application targetted on more than one virtual server, would it be initialized to the number of VS it is targetted on... by means if this application is hosted on 2 virtual servers, should it be