Dequeue with OCCI does not remove the message from the queue

Hey there,
I have this problem where no matter what dequeue option I try the messages never seem to be removed from the queue... I tried looking around and found only a similar un-answered question...
Thanks in advance...
void TryAnydataDequeue(oracle::occi::Connection * conn)
     try
          std::cout << "Dequeue Commence..." << std::endl;
          Consumer cons(conn);
          //Settings de dequeue
          cons.setCorrelationId("SPPC");
          cons.setQueueName("Anydata_queue");
          cons.setConsumerName("SNOOP");
          cons.setDequeueMode(cons.DEQ_REMOVE);
          //cons.setDequeueMode(cons.DEQ_LOCKED);
          std::cout << "Reception du message..." << std::endl;
          Message m2 = cons.receive(Message::ANYDATA);
          AnyData any(conn);
          any = m2.getAnyData();
          if(!any.isNull())
               oracle::occi::TypeCode type = any.getType();
               if(type == OCCI_TYPECODE_VARCHAR2)
                    std::string msg = any.getAsString();
                    std::cout << "Message Reçu: ";
                    std::cout << msg << std::endl;
               else
                    std::cout << "Format du message invalide..." << std::endl;
               std::cout << "Fin du message... (Press a key)" << std::endl;
          else
               std::cout << "Message invalide..." << std::endl;
          System::String * theInput = System::Console::ReadLine();
     catch(SQLException ex)
          std::cout << "Exception: " << ex.getErrorCode() << " - " << ex.getMessage() << std::endl;
          System::String * tnput = System::Console::ReadLine();
}

The message from the queue will be removed when you do a commit after a successful dequeue call, depending upon your message retention settings.
After you have done this processing and successfully performed a commit, what is the output of the following query:
SQL> connect AQADMIN/password
SQL> select msg_state from aq$<your_queue_table_name_goes_here> ;?
If it is PROCESSED, check your queue retention settings.
Additionally, make sure that the init.ora parameter AQ_TM_PROCESSES is set to a NON-ZERO value for this to happen.

Similar Messages

  • Weblogic 10.3 Not Removing Expired Messages from JMS Queues

    Dear All,
    We have an application that is running on Weblogic 10.3.
    This application (let us call this application Y) receives messages on a JMS queue. These messages are placed on the queue by another application (let us call this application X). We would like to have these messages expire within a certain amount of time (i.e. 90000 ms) if they are not consumed.
    Now when application X places the messages onto the queue for application Y to consume, the JMS producer sets the time to live to 90000 ms. We can see that expiration time has been set appropriately in the weblogic console. If a message sits on the queue for longer than 90000 ms the state string of the message is changed to "receive expired". What we don't understand is why the expired messages still end up being consumed from the queue.
    We understand that Weblogic is supposed to have an 'Active Message Expiration' thread that will remove expired messages from the queue. The Expiration Scan Interval for the JMS Server is set to 30 (seconds).
    Can anyone tell us why our expired messages don't seem to be deleted from the queues?
    Tim

    Thank you for the response Rene.
    We have set up both the active expiration scan and the message expiration policy. The active expiration scan is set for every 30 seconds. The message expiration policy is set to "discard". However, the expired messages are still being consumed. Is it possible we are doing something wrong? See a portion of our configuration files below.
    We have set up the expiration scan time interval. See a portion of our config.xml below:
    <jms-server>
    <name>brokerJMSServer</name>
    <target>AdminServer</target>
    <persistent-store xsi:nil="true"></persistent-store>
    <store-enabled>true</store-enabled>
    <allows-persistent-downgrade>false</allows-persistent-downgrade>
    <hosting-temporary-destinations>true</hosting-temporary-destinations>
    <temporary-template-resource xsi:nil="true"></temporary-template-resource>
    <temporary-template-name xsi:nil="true"></temporary-template-name>
    <message-buffer-size>-1</message-buffer-size>
    *<expiration-scan-interval>30</expiration-scan-interval>*
    <production-paused-at-startup>false</production-paused-at-startup>
    <insertion-paused-at-startup>false</insertion-paused-at-startup>
    <consumption-paused-at-startup>false</consumption-paused-at-startup>
    </jms-server>
    <jms-system-resource>
    <name>broker-jms</name>
    <target>AdminServer</target>
    <sub-deployment>
    <name>EhrBrokerRequestQueue</name>
    <target>brokerJMSServer</target>
    </sub-deployment>
    <descriptor-file-name>jms/broker-jms.xml</descriptor-file-name>
    </jms-system-resource>
    <admin-server-name>AdminServer</admin-server-name>
    We have set up the message expiration policy in our jms descriptor. See a portion below:
    <?xml version='1.0' encoding='UTF-8'?>
    <weblogic-jms xmlns="http://www.bea.com/ns/weblogic/weblogic-jms" xmlns:sec="http://www.bea.com/ns/weblogic/90/security" xmlns:wls="http://www.bea.com/ns/weblogic/90/security/wls" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-jms http://www.bea.com/ns/weblogic/weblogic-jms/1.0/weblogic-jms.xsd">
    <queue name="EhrBrokerRequestQueue">
    <delivery-params-overrides>
    <redelivery-delay>-1</redelivery-delay>
    </delivery-params-overrides>
    <delivery-failure-params>
    <redelivery-limit>-1</redelivery-limit>
    *<expiration-policy>Discard</expiration-policy>*
    </delivery-failure-params>
    <jndi-name>EhrBrokerRequestQueue</jndi-name>
    </queue>
    </weblogic-jms>
    What could we be doing wrong?
    Kind Regards,
    Tim

  • Mac user, OSX 10.9.4. CS6, in the new Blur gallery the pin with adjusters does not appear for any of the three blur filters. This may have occurred since taking adobe watermark add-on and updating Bridge. any ideas?

    Mac user, OSX 10.9.4. CS6, in the new Blur gallery the pin with adjusters does not appear for any of the three blur filters. This may have occurred since taking adobe watermark add-on and updating Bridge. any ideas?

    I am using Mac OSX 10.10.1 (memory 8 GB 1600 MHz DDR3, graphics Nvidia GeForce GT 650M 1024 MB)
    and my version of Photoshop is CC.
    I ran into  the same problem: I am able to place and view Blur Gallery pins but the adjustment wheel or outer control arounf the pin that allows you to tweak the blur value disappeared after being initially available. Additionally, the placed pin or pins appear to flicker on screen (while in blur gallery mode) until committing the change with the OK button. I have tried restarting both the computer and Photoshop, as well as what some other users have suggested such as View>Show>Edit pins turned on. Nothing has helped so far. I am still able to adjust the blur amount  from the Blur Tools slider. thank you.

  • Removing superseded messages from the queue

    Does JSMQ provide any way for a producer to remove a message from the queue which it queued some time ago but which it no longer wishes to send?
    I am investigating the use of JSMQ in a military battlemap application connecting nodes over low bandwidth/unreliable connections. The reason we want to be able to remove messages is as follows: Say a producer sends a low priority message to the queue regarding a unit's position. Later on the same producer sends an update regarding the same unit to the queue. If the first message is still present in the queue (ie has not been sent yet) then we want the producer to be able to remove it as it is now superseded by the new message and we don't want to waste bandwidth sending the old message first.
    I know we can set an expiry time on messages, but this doesn't really solve our problem. We want the original message to stay in the queue indefinately (until it is read by the consumer) unless it is superseded by a new message in which case we want to remove it.
    Thanks
    Roger

    Hi Roger,
    JMS does not support the removal of messages from a queue
    as you described. I can't think of a way to not deliver the old
    message once it was already sent.
    Alternatives I can think of:
    - Adjust the interval at which the consumer reads the messages
    off the queue and/or the number of messages that are read;
    so that the consumer will see the old and new messages
    and can decide which one to use. This does not address the
    bandwidth issue but allows the consumer to behave smarter.
    - Similar to above, but on the producer side. The producer waits
    for some interval before sending a message, in case an
    updated position of a unit arrives at the producer. This might not
    be good if a consumer needs to know the location of a unit as
    soon as it is available.
    - Use a topic instead of a queue. When using queues, old
    messages (containing old positions) sent to a queue are kept
    until the consumer reads it. With topics, if no consumers are
    around, the message is tossed. However, if you really need old
    messages to lie around (e.g. need to know last position of
    unit), this won't suit your needs.
    Sorry I don't have a straight answer for you, hope this helps
    somewhat.
    -i
    http://wwws.sun.com/software/products/message_queue/index.html

  • WRT54GX2 does not pick up time from the network...

    I have a WRT54GX2 running firmware 1.01.14 and it does not pick up time from the network. I have PacBell (now AT&T) as an ISP and a DSL link. My old Netgear router picks up the time immediately. I am trying to figure out if I have a defective unit or if this is a firmware bug. Without the time, I can not use any of the scheduling functions, nor measure uptime.
    Does anyone have this router with the time working? I have set the appropriate time zone.
    Thanks,
    Martin

    mneiman wrote:
    Thanks for you ideas.
    The backup file appears to be binary. However in searching through it I did see 3 time related text strings, namely: clock.stdtime.gov.tw, time-b.nist.gov and time.nist.gov. I can successfully ping clock.stdtime.gov.tw and time.nist.gov. This reinforces my belief that my ISP (AT&T nee PacBell) is not blocking access.
    however ntp works on TCP port 123. ping works on udp 7 afaik. if your old netgear works i guess this is a router problem.
    have you reset the router yet? afaik press reset button for 10 seconds.
    you will however loose all settings and need to enter them again. it may however fix the issue.Message Edited by linksysinfo on 07-09-2006 03:09 AM
    Regards Simon
    NAS: TS-459 Pro - 3.6.1 Build0302T - 4 x 1TB Samsung HD103SJ : EXT4 - APC ES 700VA UPS
    QPKG: WordPress 3.4, TwonkyMedia 6.0.39 QPKG - Zenphoto1.4.2.1 [7802] - phpMyAdmin v3.3.10
    Network: Netgear DG834G V4.01.40 - DGTeam Rev. 0849 -> Cisco RV220W 1.0.4.13, Cisco SLM2008, Dlink DSM-520, Xbox360

  • My iphone5 does not have any sound from the speakers ringtones or music any suggestions?

    my iphone 5 does not have any sound from the speakers any suggestions on what culd be the problem and hopefully a fix

    Just to add to this I can hear through the small speaker and the headphones it is just the speakers for ringtones and music etc

  • How to delete the messages from JMS Queue

    Hi,Can anybody help how to delete the messages from the JMS Queue.Thanks in advance.

    You can dequeue the message using a JMS client or delete it using Weblogic Admin Console -
    http://download.oracle.com/docs/cd/E17904_01/apirefs.1111/e13952/taskhelp/jms_modules/queues/ManageQueues.html
    Regards,
    Anuj

  • Firefox hangs with a "Script not responding" error message; in the meantime there are more and more flashplayer instances running

    Recently I receive errors from Firefox at sites that were working fine before, always the same: a script is not responding, and I can wait, debug or stop. Waiting doesn't help (therefore pointless to change the 'dom.max_script_run_time' setting in the config); and also pointless to debug because the problem is not with the script. "Stop" eventually gets firefox to work, until the next error message which comes very soon.
    I tried to reinstall both Firefox and Flashplayer, even manually wiped the traces from the user profile and program files. They are the latest 35.0.1 and 16.0.0.305 available now.
    => In the meantime, there are reproducing instances of flash players are spawned and running. They stay running even after firefox is closed or terminated.
    => if I disable the flash player plugin everything's fine except of course flash is not working. If I re-enable it, the problem starts over.
    OS is Windows 8.1

    Retard, (I know that sounds hilarious, but I don't know your name - no offense please! )
    Like you said, if this happens only primarily on one of the many sites, it generally comes down to the type of code on that site.
    And after looking at the URL you posted, seems like that page uses a lot of external references - JS and CSS.
    Especially the last few lines:
    <script type="text/javascript" src="http://njcdn.worldsecuresystems.com/CatalystScripts/Java_OnlineShopping.js?vs=b1763.r38875 7"></script>
    <script type="text/javascript" src="http://njcdn.worldsecuresystems.com/CatalystScripts/Java_Cookies.js?vs=b1763.r388757"></script>
    <script type="text/javascript" src="http://njcdn.worldsecuresystems.com/CatalystScripts/Java_Box.js?vs=b1763.r388757"></script>
    Also, a couple CSS, JS references in the <head> section.
    'Display External Files' only disables showing external files - but still loads them.
    Can you try removing the external references and try working with the webpage in DW for a few minutes to see if the same problem persists? If it does, we know what was causing your issue.
    Also, run your site through W3 validator to check and resolve errors: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.healthfirst.com%2Facls-kit.html&charset =%28detect+automatically%29&doctype=Inline&group=0
    Let us know how it goes.
    Good luck.
    -ST

  • Hi, I have a problem that I receive lots of Spam messages from my office, which are of no use for me. I am not in a position to bar the message from the service provider due to official constrains. I want to know if I can bar the message on Iphone

    Hi, I have a problem that I receive lots of Spam messages from my office, I cannot bar the spam text from service provider due to official constrain.
    I just want to know if there is any mechanisme where i can bar the message from a specific sender. I know there are some apps like Iblacklist available but we do not find it in any Iphone which is not jailbreak. I was just thinking of developing some code for it.

    No. You can't. Filtering would have to be done at the server level.

  • TS2529 itunes does not let me restore from the last backup of my recently upgraded to 5.1 iphone

    I recently updated from 4.2.1 to 5.1 and now itunes does not show me the "restore from the backup of..." option. It doesn't even let me restore from any backup. I found the backup in the library and made a backup of it just in case. How can I restore from this backup if Itunes doesn't give me the option?
    Please help!

    Welcome to the discussions,
    go to iTunes/Settings and see if "Apps" is selected in General/Show:
    If yes, your App folder should be listed under "library" in the left window in iTunes again.
    There is no extra App folder listed when you click on your device in the device list.
    German version:
    Im Menü iTunes/Einstellungen/Allgemein nachschauen, ob bei "Anzeigen" die Auswahl "Apps" aktiviert ist. Danach sollte der App Ordner unter dem Punkt "Mediathek" wieder auftauchen.
    Wenn das Telefon in der Geräteliste markiert ist, gibt es den App Ordner nur auf der rechten Seite.

  • My iMac with Leopard does not see Vista PCs on the network

    My iMac with Leopard cannot see any of my Vista PCs on my network. I have an older G5 iMac (tiger) and the Leopard system see that one just fine. My older G5 sees my Leopard mac and all of the Vista computers. I just want the Leopard mac to see the Vista computers. Please help.

    I'm having the same problem. It was literally working one minute and not the next. I also had this issue with my MBP but it was never resolved. I can ping the vista machine but not connect to the folder structure. This is really annoying because my vista machine is acting as a server and I need to remote desktop from the iMac to the windows machine.
    Any ideas people?

  • Ios App asks me for the password to an old apple id. When I try to rset the password, it does not send a message to the email address it should send it to. How can i fix this?

    need to know how to reset an old apple id password when the process to rest sends the instructions to a email address but its not there when i go to the email inbox.

    Hi, cameo557.  
    Thank you for visiting Apple Support Communities. 
    I understand that you are receiving a prompt for an old Apple ID when attempting an update.  You cant attempt to reset that password for the Apple ID via the steps in the first article below.  If you need assistance with this or are not receiving the email, see the second attached article.  You can also delete the applications in question and download them again with your new Apple ID.  However, this will cause any application data in those applications to be deleted and you may be charged if these are paid for applications. 
    Apple ID: If you forget your password
    http://support.apple.com/kb/ht5787
    Apple ID: Contacting Apple for help with Apple ID account security
    http://support.apple.com/kb/HT5699
    Cheers,
    Jason H.

  • Mail does not show all mails from the same sender

    Hello,
    I have a problem with Mail - maybe an undiscovered bug? I play lotto on the free online platform www.freelotto.com. Each day freelotto sends me 6 mail receipts for any individual lotto game I took part of. The sender is always the same in each of these mails.
    When I receive these mails on my iphone I got all the six mails I expected. The same on my ipad. But in Mail on my Mac (same settings) I got just four. Two mails are always missing!!! I have no idea why. The are not in the SPAM or any other folder (also not in the recycle bin). They are just missing at all. I also checked my mail provider but those two mails are not longer on the mail server. So Mail must have received them - but does not list them.
    What can I do?
    Regards,
         Meisinotti

    No one who could help?

  • I can not open the messages from the inbox of Vodafone webmail

    I have loaded Firefox on my new Nexus 7 android.
    I prefer firefox , rather that google crome.
    When I try to access mail in my vodafone webmail account I can log on and get to the mail page.
    When I click on inbox it shows all the in coming messages but I can not open them.

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    The Firefox cache temporarily stores images, scripts, and other parts of websites while you are browsing. <br>
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies, do the following:
    #Tap the menu icon located at the top right corner. This is the icon with 3 bars. On older Android devices you'll have to press the hardware menu key and then tap More.
    #Tap '''Settings'''.
    #After that, you will be taken to the settings screen. In the settings screen, look under the section '''''Privacy & Security''''' and select '''Clear private data'''.
    #You will then be taken to a list of what can be cleared. Select the following 2 for deletion:
    #*Cookies & active logins
    #*Cache
    #After those have been selected, tap the '''Clear data''' button to actually clear the cache and cookies.
    Did this help you with your problems? Please let us know!

Maybe you are looking for

  • How to add Refresh button

    Hello... This is my code. How to add REFRESH button in this code package sample.view; import javax.faces.event.ActionEvent; public class Student {     public Student() {         super();     private String name;     private String id;     private Str

  • Pictures in two projects?

    Hello, It's taken me a little while to figure out how to organize my library and now that I've figured it out, I'm cleaning up the database and trying to make sure that the photos I want in a yearly project are all there (i.e., all pictures from 2011

  • Change the editable form of a list

    I created a custom list with more columns. If a user edits the list with the edit form i would like that the form shows only one field that can be updated. Anyone has a suggestion to achieve this  in the most simple way?

  • MOV files become 'invisible' in a project after upgrading FCP and OS

    After I have installed the last FCP update (10.0.8), and Mountain Lion, some files of an event became 'invisible' in a project. Those files are MOV-files (originally shot on Panasonoc GH3 in MOV format). Few files only turned to be invisible in the t

  • How to find out privileges on a sequence

    Hi All, I want to find out all the schemas and their privileges(for e.g. select etc...) on a sequence. Can you please provide a query or table name so that i can find out the details. TIA,