Some of the messages aren't dequeued using JMS/AQ
Hi.
I am having strange problems dequeuing messages from an Oracle9i Release 2 database. I have a trigger that sends a message everytime a table is updated. When I have SQL worksheet and update the table through a SQL statement then I only recieve about 50-70% of the events. When I use Oracle Enterprise Manager Console I can see the rest of the messages are lying in the queue as 'READY'.
I need this to be VERY reliable so if anyone have any ideas I would really appreciate it. I used PL/SQL in the DB because of the speed increase but maybe a Java Stored Procedure will work better? I have included the code in question below.
Best regards
Christer Nordvik
JAVA code
//get a DB connection to use with JMS
dbconn = prevision.database.DBPool.getConnection();
//try to estabilish a connection to the JMS server to recieve alarm updates
tconn = AQjmsTopicConnectionFactory.createTopicConnection(dbconn);
/* Create a Topic Session */
tsess = (AQjmsSession)tconn.createTopicSession(true, Session.DUPS_OK_ACKNOWLEDGE);
tconn.start();
topic = ((AQjmsSession)tsess).getTopic("TS",strTopic) ;
tsub1 = tsess.createDurableSubscriber(topic, "T");//unique id
while (!done)
//waits forever
logger.debug("Waiting for alarms...");
dtxtmsg = (TextMessage)(tsub1.receive());
//found a message
logger.debug("Recieved alarm " + dtxtmsg.getText());
PL/SQL code
AS
BEGIN
DECLARE
Enqueue_options DBMS_AQ.enqueue_options_t;
Message_properties DBMS_AQ.message_properties_t;
Message_handle RAW(16);
User_prop_array SYS.AQ$_JMS_USERPROPARRAY;
Agent SYS.AQ$_AGENT;
Header SYS.AQ$_JMS_HEADER;
Message SYS.AQ$_JMS_TEXT_MESSAGE;
Message_text VARCHAR2(100);
gt1 number;
BEGIN
Message_properties.expiration := 3600; --Set the time to live for the message
gt1:= DBMS_UTILITY.GET_TIME;
Agent := SYS.AQ$_AGENT('',NULL,0);
User_prop_array := SYS.AQ$_JMS_USERPROPARRAY();
Header := SYS.AQ$_JMS_HEADER( Agent, '', 'aq1', '', '', '', User_prop_array);
Message_text := 'Message 1 from PL/SQL';
Message := SYS.AQ$_JMS_TEXT_MESSAGE(Header, LENGTH(Message_text), Message_text, NULL);
--setting the id of the sender
Message_properties.correlation := 'tst';
--Message_properties.correlation := gt1;
DBMS_AQ.ENQUEUE(queue_name => 'ts.tstopic',
Enqueue_options => enqueue_options,
Message_properties => message_properties,
Payload => message,
I figured it out. Was something wrong with the trigger in the DB...
Similar Messages
-
Hi, A couple of days ago I purchased and downloaded the creative cloud photoshop but now that I'm using it some of the tools aren't there. Also, when I open it I get a message saying that I'm a trial user even though I'm not. Is it me, or did the person downloading it not download everything? What do I do. I need to put some arrows in a picture to point something out but can't. Thanks.
Does your Cloud subscription properly show on your account page?
If you have more than one email, are you sure you are using the correct Adobe ID?
https://www.adobe.com/account.html for subscriptions on your Adobe page
If yes
Some general information for a Cloud subscription
Log out of your Cloud account... Restart your computer... Log in to your paid Cloud account
-Sign in help http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html
-http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
-http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
-http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html
If no
This is an open forum, not Adobe support... you need Adobe staff to help
Adobe contact information - http://helpx.adobe.com/contact.html
-Select your product and what you need help with
-Click on the blue box "Still need help? Contact us" -
When attempting to upgrade my iMac from Snow Leopard to Mavericks, I receive the message "This disk is used for Time Machine Backups" when I try to select the lone available hard drive. I have ensured that Time Machine is turned off. Upon some Google research, some who reported this problem were told to delete the folder backup.backupdb, but I do not have this folder on my Mac. Any suggestions?
The folder would be at the root of your hard drive. Double-click Macintosh HD and look there.
If it isn’t there, I’m not sure what it is seeing. -
I tried dowloading Skype yesterday and my Safari browser crashed. It gives the message "Safari quit while using the librooksbas.dylib plug-in. I trashed Skype but still have the browser problem. I also tried logging in under guest, and still
no Safari.Julie --
Backing up QuickTime's advice --
Unless your bank's website is insecure, you're fine. Go up to the Safari "Search" bar and type in Rapport. You'll be amazed. It may "work" on PCs, but definitely not Macs. And it's not needed for Macs. -
My partner deleted, by accident my itunes library. I have an iMac 10.6.7, Itunes 10. I use an WD passport as an external back up and retrieved my itunes library but now get the message "could not be used because the original file could not be found. Would you like to locate it?" so itunes is not recognised the exclamation marked songs, how do i get the retrieved files recognised. At times I get fed-up with Apple blocking files being used, although I like the product its restrictions are so silly!
You not only have to retrieve the library file from the backup drive but the actual music files (usually stored within the "iTunes Media" folder) as well.
-
I sprayed it a year ago i really like the keyboard and i really need it can it be recovered??? My apple wireless keyboard got wet a year ago i sprayed the cleaning spray on it some of the keys are working but some of the keys aren"t working. it got sprayed a year ago What should i do??? Can it be recovered plz tell?
There is almost no chance it can be recovered, except at a cost far greater than a new keyboard. Once wet, spraying with a cleaner will not do any good and most likely will make the situation worse.
Best thing at this point is go to your Apple store, or the on-line store, and buy a new keyboard. Water damage is not covered by the warranty or AppleCare. -
why are some of the messages i send in a blue background while others are in a green background?
Blue = iMessage...
Green = Text message... SMS -
After having payed fo an account for one year for Photoshop CC and Lightroom 5 i keep getting the message ,that I am using a trial version of Photoshop CC.
Lightroom on the other hand is not functioning in a trial version !
Could anyone tell me how I can start working with Photoshop CC while not in trial mode ?
PeterI Don’t know how I di dit, but when I started Photoshop this mornig all of a sudden it worked.
I am happy now and thank you for your efforts.
Regards
Peter Hordijk
Van: Rajshree
Verzonden: woensdag 21 mei 2014 19:04
Aan: Peter Hordijk
Onderwerp: How can I get rid of the message that I am using a trial version of Photoshop CC even after becoming a paying member for Photoshop CC and Lightroom ?
How can I get rid of the message that I am using a trial version of Photoshop CC even after becoming a paying member for Photoshop CC and Lightroom ?
created by Rajshree <https://forums.adobe.com/people/Rajshree> in Adobe Creative Cloud - View the full discussion <https://forums.adobe.com/message/6398343#6398343> -
Some of the messages in a gmail mailbox are missing. I tried to select rebuild but this option is not available (i.e. it is greyed out). Any suggestions? The mail is all there when I go into the Google Mailbox.
I've ran the connection doctor and it's showing that the connection to the internet is fine
What about the connections to the mail servers? -
I keep getting the message "iod cannot be used because the apple mobile device service is not started" when i try to sync my ipod to my desktop itunes library.
See:
iPhone, iPad, iPod touch: How to restart the Apple Mobile Device Service (AMDS) on Windows -
Cannot install Mountain Lion on my hard disc, as I keep getting the message" 'This disk is used for Time Machine backups'. Which it isn't - I don't use Time Machine
Check to see if you have a folder named "Backups.backupdb" at the root level of your hard disk. That can cause this error message.
-
Cannot install Mavks. Get the message that HD is used for Time Machine B/U. Not true. Also Time Machine is turned off. Running OS 10.8.5.
That message appears when there's a "Backups.backupdb" folder in the root level of the OS X volume. This folder is used by Time Machine to store backups, being this the reason why the OS X Mavericks installer detects the OS X partition as used by Time Machine.
To delete it, open a Finder window, select the Go menu (on the menu bar) > Go to Folder, and type:
Then, delete "Backups.backupdb" and empty the Trash. Finally, open the OS X Mavericks installer in /Applications and follow the steps. Make sure you have got a backup of your files before upgrading and check that your apps are compatible > http://www.roaringapps.com -
Tried my k3772-z modem to connect macbook air to internet and got the message: you can't use this application with this version of mac os x. Is there a setting that needs to be changed?
I can't help you with a direct answer. For third-party devices you should contact the vendor (Vodafone).
If you have an iPhone (or an Android phone with hot-spot capability) you can use that to connect to the Internet without paying for a separate cellular service. -
after updating my ipad some of the apps aren't usable. They are "greyed out" and it says "waiting..." below the app when I tap on it.
Try This...
Close All Open Apps... Sign Out of your Account... Perform a Reset... Try again...
Reset ( No Data will be Lost )
Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
Wait for the Apple logo to Appear...
Usually takes about 15 - 20 Seconds... (But can take Longer..)
Release the Buttons...
If no joy...
Reset all settings
Settings > General > Reset > Reset all Settings.
This will return all iDevice settings to factory defaults... you will not lose any data.... But you will have to re-enter all of the device settings -
How to Send message to MQ without using JMS Receiver Adapter
Hi Frnds,
Actually i am working one File to JMS scenario,I have to send message to MQ,What are the different ways we can send message to MQ without using JMS Adapter.
Regards,
RajHi Ramesh,
Thanks for your replay,could you please eloborate how to integrate that one with XI,and how to use in XI?
regards,
raj
Maybe you are looking for
-
New Network Infrastructure Design and Architecture Community
All, I'm pleased to announce our new Network Infrastructure Design and Architecture Community. In this community we encourage everyone to share their knowledge and start conversations on design and overall network topology. All topics are welcome, i
-
Sudden G5 Display Issues!
Somewhat similar to another previous post from another member, I was using my tower model G5 (2003?) and suddenly my display showed a checkerboard pattern that began flickering. I shut it down and re-booted; same thing. I let it sit for a day and sta
-
Can i turn off icon labels in Symbian ^3 on my N8?
just updated my N8 from anna to belle and my first inclination is to turn off what was originally called tool tips, or the superfluous labels underneath each icon in the GUI. i mean isn't that what the G stands for - Graphical? the Nokia representa
-
Is there a way to import my bookmarks and passwords from my desktop to my new laptop?
Beyond printing it out, and logging in to every website? I'm looking for a feature similar to sending your contact info from an old cell to a new one with Bluetooth.
-
How to download & convert .f4f video streaming files into flv/mp4 files
Below is the website for which I am asking this query http://www.startv.in/show/devon-ke-dev-mahadev/352 These are .f4f videos which I can view online. I am not able to download & play them in their original format. I also would like to download & pl