What is the payload structure has to be used for AQ to process XML messages.

Hi Experts,
We have an IBM MQ and Oracle AQ has to be be linked to that.
MQ always contains XML messages and same message will come to AQ.
Now I want to create AQ. What is the payload structure(object) has to be used for AQ to process XML messages.
Please help me.
Thanks.

Hello,
using XML type data in AQ you have to define a special AQ payload type
(corresponding to MQ):  QUEUE_PAYLOAD_TYPE = 'SYS.MGW_BASIC_MSG_T'.
An example template for enqueueing looks like (you have to transform
from XMLTYPE to the MGW payload type):
DECLARE    
   queue_options      DBMS_AQ.ENQUEUE_OPTIONS_T; 
   message_properties DBMS_AQ.MESSAGE_PROPERTIES_T;  
   message_id         RAW(16);  
   v_message          SYS.XMLType;   
   v_clob             CLOB;
   v_payload          SYS.MGW_BASIC_MSG_T;
   v_text_body       
SYS.MGW_TEXT_VALUE_T;
BEGIN
   v_message      := SYS.XMLType.createXML('<SAMPLE>hello world</SAMPLE>'); 
   v_clob         := v_message.GETCLOBVAL();
   v_text_body    := SYS.MGW_TEXT_VALUE_T( NULL, v_clob );
   v_payload      := SYS.MGW_BASIC_MSG_T( v_header, v_text_body, NULL );
   DBMS_AQ.ENQUEUE( queue_name         => 'my_queue',
                    enqueue_options    => queue_options,
                    message_properties => message_properties,
                    payload            => v_payload,
                    msgid              => message_id);
END;
Kind regards,
WoG

Similar Messages

  • What is the best online backup system to use for Mac?

    What is the best online backup system to use for mac?

    By online, do you mean backup to the cloud, where you pay a monthly fee for the service to host your data?
    If this is the case, then there are a lot of services (do not know them all, but DropBox, CrashPlan, Carbonite, Mozy, SugarSync, come to mine, and that is not a complete list.
    There are also services that allow you to backup over your home network or across the internet to your own storage.  CrashPlan has this option (for free), and Transporter come to mind.  CrashPlan talks to another computer also running CrashPlan that you own or have some control (could even be a friend or relatives computer).  Transporter is hardware that you either provide some storage of your choice, or they will sell the unit with storage.
    I'm mostly a CrashPlan to my own storage user.  I backup to a Mac mini for my Mom (300 miles away) and Wife (she is local )
    Can clarify your exact desires or needs.

  • What is the AlwaysFilter and when it is used for?

    What is the AlwaysFilter and when it is used for?
    Could you explain it in the details.
    Thank you

    jetq wrote:
    Sorry.
    cache.aggregate(AlwaysFilter.INSTANCE, new LongMin("getAge"))
    That doesn't really help.
    Where does AlwaysFilter come from? Is it part of the core API, or a 3rd party library? If the latter, which one? And in what do the API docs for this class not answer your question?

  • What is the best disk cleanup program to use for my macbook pro?

    what is the best disk cleanup program to use for my macbook pro? i've heard about MacKeeper but i dont want to risk downloading anything that might harm my computer. i just need excess files & such cleared and my computer harddrive cleaned up!

    DO NOT USE MACKEEPER! If you feel you must have a "cleaner" try ONYX                                                                                                                          www.macupdate.com/app/mac/11582
    https://discussions.apple.com/docs/DOC-3353
    Credits to ds store.

  • What does the warning CS6 has stopped working mean for Elements 12?

    What does the warning CS6 has stopped working mean with ElemenT 12?

    Please read this (in particular the section titled "Supply pertinent information for quicker answers"):
    http://forums.adobe.com/docs/DOC-2325
    If you are talking about Photoshop Elements please post over at
    http://forums.adobe.com/community/photoshop_elements

  • What is the best system maintenance software to use for a MBP??

    Hello everyone, I was formerly using Mac Tune-up for my Macbook Pro and it did an okay job but I am not sure what Mac software I should be using to keep my system clean while keeping it running at optimal performance. Turns-out I can no longer use Mac Tune-Up since I upgraded to Mavericks from Snow Leopard. Can anyone recommend to me the best system maintenance software to use for my MBP with Mavericks OS and where I can get it (a link or site URL)?  Thanks in advance!

    How to maintain a Mac
    1. Make two or more backups of all your files, keeping at least one off site at all times in case of disaster. One backup is not enough to be safe. Don’t back up your backups; all should be made directly from the original data. Don’t rely completely on any single backup method, such as Time Machine. If you get an indication that a backup has failed, don't ignore it.
    2. Keep your software up to date. In the App Store or Software Update preference pane (depending on the OS version), you can configure automatic notifications of updates to OS X and other Mac App Store products. Some third-party applications from other sources have a similar feature, if you don’t mind letting them phone home. Otherwise you have to check yourself on a regular basis.
    Keeping up to date is especially important for complex software that modifies the operating system, such as device drivers. Before installing any Apple update, you must check that all such modifications that you use are compatible. Incompatibility with third-party software is by far the most common cause of trouble with system updates.
    3. Don't install crapware, such as “themes,” "haxies," “add-ons,” “toolbars,” “enhancers," “optimizers,” “accelerators,” "boosters," “extenders,” “cleaners,” "doctors," "tune-ups," “defragmenters,” “firewalls,” "barriers," “guardians,” “defenders,” “protectors,” most “plugins,” commercial "virus scanners,” "disk tools," or "utilities." With very few exceptions, such stuff is useless or worse than useless. Above all, avoid any software that purports to change the look and feel of the user interface.
    It's not much of an exaggeration to say that the whole "utility" software industry for the Mac is a fraud on consumers. The most extreme examples are the "CleanMyMac" and “MacKeeper” scams, but there are many others.
    As a rule, the only software you should install is that which directly enables you to do the things you use a computer for, and doesn't change the way other software works.
    Safari extensions, and perhaps the equivalent for other web browsers, are a partial exception to the above rule. Most are safe, and they're easy to get rid of if they don't work. Some may cause the browser to crash or otherwise malfunction.  Some are malicious. Use with caution, and install only well-known extensions from relatively trustworthy sources, such as the Safari Extensions Gallery.
    Never install any third-party software unless you know how to uninstall it. Otherwise you may create problems that are very hard to solve. Do not rely on "utilities" such as "AppCleaner" and the like that purport to remove software.
    4. Don't install bad, conflicting, or unnecessary fonts. Whenever you install new fonts, use the validation feature of the built-in Font Book application to make sure the fonts aren't defective and don't conflict with each other or with others that you already have. See the built-in help and this support article for instructions. Deactivate or remove fonts that you don't really need to speed up application launching.
    5. Avoid malware. Malware is malicious software that circulates on the Internet. This kind of attack on OS X was once so rare that it was hardly a concern, but malware is now increasingly common, and increasingly dangerous.
    There is some built-in protection against downloading malware, but you can’t rely on it—the attackers are always at least one day ahead of the defense. You can’t rely on third-party protection either. What you can rely on is common-sense awareness—not paranoia, which only makes you more vulnerable.
    Never install software from an untrustworthy or unknown source. If in doubt, do some research. Any website that prompts you to install a “codec” or “plugin” that comes from the same site, or an unknown site, is untrustworthy. Software with a corporate brand, such as Adobe Flash Player, must come directly from the developer's website. No intermediary is acceptable, and don’t trust links unless you know how to parse them. Any file that is automatically downloaded from the web, without your having requested it, should go straight into the Trash. A web page that tells you that your computer has a “virus,” or that anything else is wrong with it, is a scam.
    In OS X 10.7.5 or later, downloaded applications and Installer packages that have not been digitally signed by a developer registered with Apple are blocked from loading by default. The block can be overridden, but think carefully before you do so.
    Because of recurring security issues in Java, it’s best to disable it in your web browsers, if it’s installed. Few websites have Java content nowadays, so you won’t be missing much. This action is mandatory if you’re running any version of OS X older than 10.6.8 with the latest Java update. Note: Java has nothing to do with JavaScript, despite the similar names. Don't install Java unless you're sure you need it. Most people don't.
    6. Don't fill up your disk/SSD. A common mistake is adding more and more large files to your home folder until you start to get warnings that you're out of space, which may be followed in short order by a startup failure. This is more prone to happen on the newer Macs that come with an internal SSD instead of the traditional hard drive. The drive can be very nearly full before you become aware of the problem.
    While it's not true that you should or must keep any particular percentage of space free, you should monitor your storage use and make sure you're not in immediate danger of using it up. According to Apple documentation, you need at least 9 GB of free space on the startup volume for normal operation.
    If storage space is running low, use a tool such as OmniDiskSweeper to explore the volume and find out what's taking up the most space. Move seldom-used large files to secondary storage.
    7. Relax, don’t do it. Besides the above, no routine maintenance is necessary or beneficial for the vast majority of users; specifically not “cleaning caches,” “zapping the PRAM,” "resetting the SMC," “rebuilding the directory,” "defragmenting the drive," “running periodic scripts,” “dumping logs,” "deleting temp files," “scanning for viruses,” "purging memory," "checking for bad blocks," "testing the hardware," or “repairing permissions.” Such measures are either completely pointless or are useful only for solving problems, not for prevention.
    To use a Mac effectively, you have to free yourself from the Windows mindset that every computer needs regular downtime maintenance such as "defragging" and "registry cleaning." Those concepts do not apply to the Mac platform. A well-made computing device is not something you should have to think about much. It should be an almost transparent medium through which you communicate, work, and play. If you want a machine that needs a lot of attention, use a PC.
    The very height of futility is running an expensive third-party application called “Disk Warrior” when nothing is wrong, or even when something is wrong and you have backups, which you must have. Disk Warrior is a data-salvage tool, not a maintenance tool, and you will never need it if your backups are adequate. Don’t waste money on it or anything like it.

  • What is the max memory card can i use for my N72?

    Hi..i have a Nokia N72 (+128mb) and i want changing the memory card so i ask if i can put a 1gb memory or maybe 2gb memory without negatif effects and what is the best type of memory cards..thanks

    You can run maximum of 2 GB cards. Check what type of cards that your phone support on the manual. Transcend, Kingston etc are better brands.

  • HT4681 What is the best most compact export to use for Youtube?

    What is the best, most compact export codec / frame size to use for Youtube?

    louisfromseven hills wrote:
    What is the best, most compact export codec / frame size to use for Youtube?
    YouTube says ....
    http://support.google.com/youtube/bin/static.py?hl=en&topic=1728573&guide=172858 5&page=guide.cs

  • What is the Control Plans functionality in cProjects used for?

    Hi Folks,
    What is the purpose and usage of control plans in cProjects? Is this useful in an environment where QM is not implemented? Appreciate if somebody could provide an example of how this functionality will be useful from a project management standpoint. I am on cProjects 4.5.
    Cheers,
    Lashan

    Hi,
    the control plan functionality in cProjects is deprecated, see SAP Note 1114207:
    Using the control plans is not recommended because with new  
    developments in SAP PLM Quality Management (QM). cProjects   
    remains the preferred project management solution, but all QM
    aspects that are not directly related to project management  
    should be managed in SAP ERP.                                
    Kind regards,
       Florian

  • What is the video file size I can use for Telepresence Content Server to calculate storage required?

    Hi,
    I would like to calcualte storage requied for Video files on the Telepresence Content Server, MPEG Format.  What is the per minute storage required for a video file with and without compression? What kind of Video compression rates are supported on TelePresence Content Server and MXE 3500. 
    Thanks
    Sue

    Hi,
    Following thread might be helpful to you...
    http://scn.sap.com/thread/1637092
    http://scn.sap.com/thread/1284704
    BR,
    Anirban

  • What is the best filetype and resolution to use for flash, using a 1920x1080 stage.

    Hi all,
    Hope this isn't a dumb question, but what is the best file type and resolution to use for a Flash stage setup of 1920x1080 and 1024x768?
    Lately my images have been looking pixelated. There OK when I test the movie in Flash, and the SWF looks OK, but the HTML looks really pixelated.
    Many thanks to all.
    JR

    is your page scaling (ie, 100% x 100%)?
    if not, there should not be any problem.
    if yes, then you usually want your bitmaps to be as large as the largest screen you want to use and NOT have them appear pixelated.
    or, use vector graphics so they size without pixelation.

  • What are the algorithem and container to be used for this problem?

    Say I have a class with the following properties:
    groupMonth //String (jan,feb,mar�)
    accumulatedLasyYear //double
    accumulatedThisYear //double
    What will be the best container/algorithm to use for objects from the class above so I can have them sorted by month (I know it�s a string) AND GROUP the months together (and the accumulated as well)
    Example:
    Jan 4 8
    Feb 2 3
    Mar 5 2
    Jan 3 5
    Feb 4 2
    Mar 9 3
    The output should be:
    Jan 7 13 //(4+3, 8+5)
    Feb 6 5
    Mar 14 5
    Thanks for any thought�

    I'd suggest a java.util.Map<String, Set<WhateverClassYouveDefined>>. The keys are the year, the values are Sets containing all objects of that year. Iterate through your list of objects and group them into the right set using the map.
    Then I'd suggest looping through the keys to get each month's worth. Since you know what all the keys will be in advance, and there's only twelve of them, create an array of the twelve month strings. Loop through that array, and for each value grab the corresponding Set from the map.
    Then for each set you get, iterate through its contents, get the values, and add them.
    Then just print the month and the sums of values from the set, and go on to the next month.

  • What is the best wide format printer to use for graphic design?

    Hello all, I recently upgraded to a new iMac and am looking for the most suitable colour tabloid or super tabloid printer. I am willing to pay as much as $3000 and have read excellent reviews of the Phaser 7500, but the size and weight are too much for me in my home office. I would also consider inkjet models but want something crisp and clear for graphic design and have heard there are problems with compatibility with Snow Leopard and Lion. Am now considering the OKI C830 series. Any experience with this or recommendations? Many thanks!

    Had 2 Phaser 7700's - excellent print quality - large footprint, overpriced and consumeables are expensive
    Currently have a Konica Minolta Magicolor 7450 - print quality close to the Phasers, large footprint, good price, consumables much cheaper than the Phasers - Noisy, not great in a small office.
    No FHE with the OKI but it looks like a nice machine. Best to find a dealer and check out print quality and if you have small space watch out for the fans humming it can get overwhelming intrusive.

  • ?What is the best website design software to use for my MacBook Pro?

    I want to design my own website and heard from a friend that the iWeb software is good.  I don't see iWeb in the App store, and am wondering if it is now part of another program or if there are other programs that might be better....I want something that is user friendly...thank you!

    For reasons unknown to me, iWeb is being discontinued by Apple.  It can be found on old versions of iLife.  I have iLife 08 which has iWeb included.  It's probably best to seek alternatives.
    Ciao.

  • What is the best Videoing Chatting program to use for my Macbook Pro?

    I have had Skype for a while now and recently I updated to Skype 5, and the call qaulity is absolutely miserable, it keeps being blurry and freezing and it's a pain to try and talk through. So I was wondering is there any changes or fixes I can do to possibly make it better or improve the quality of my calls? If not is there any other good video chatting programs with good call qualities for Mac?
    Im using Skype on my macbook pro, just saying.

    How can you check if your wifi is good enough for a quality video call?
    Yes I would post on Skypes forum, but there people their are not very helpful or supportive, so Im trying to get other people's opnions on ways to improve the call quality or find a better program.
    Does anyone use any other video calling program that is just as good if not better? If so could you please mention it. I've looked on Google and I know some of the softwares or programs out there, but Id like to get peoples first hand experience with the programs and what they think of some of them out there.

Maybe you are looking for