AQ+JMS+MQ. Can't set JMSReplyTo property for MQ-message

Hello everyone!
I'm trying to send JMS message to MQ-queue and I need to set fields ReplyToQ in MQMD and Rto in JMS section.
I'm using:
JMS_QUEUE_CONNECTION,
Queue_payload_type => 'SYS.AQ$_JMS_BYTES_MESSAGE'
FQ domain -> dbms_mgwadm.DOMAIN_QUEUE
When I try to set properties using JMSReplyTo and JMS_IBM_MQMD_ReplyToQ, in result message in MQ-queue these properties doesn't set.
I don't know how to set JMSReplyTo using v_jms_message.set_replyto(v_agent) , because v_agent has sys.aq$_agent type.
<pre class="jive-pre">
DECLARE
queue_options DBMS_AQ.ENQUEUE_OPTIONS_T;
message_properties DBMS_AQ.MESSAGE_PROPERTIES_T;
message_id RAW(16);
p_xmlstring varchar2(3000);
queue_name_val varchar2(100);
v_agent sys.aq$_agent := sys.aq$_agent(' ', null, 0);
v_jms_message sys.aq$_jms_bytes_message;
enqueue_options dbms_aq.enqueue_options_t;
msgid raw(16);
l_header SYS.AQ$_JMS_HEADER;
l_properties sys.AQ$_JMS_USERPROPARRAY;
l_bytes_raw blob;
l_length number;
BEGIN
queue_name_val := 'MQ_JMS_TEST';
v_jms_message := sys.aq$_jms_bytes_message.construct;
v_jms_message.set_replyto(v_agent);
v_jms_message.set_type('mcd://xmlns');
l_header := sys.aq$_jms_header
(null,null,null,null,null,null,l_properties);
dbms_lob.createtemporary(l_bytes_raw,true);
l_bytes_raw:=utl_raw.cast_to_raw('<some_message>');
l_length :=dbms_lob.getlength(l_bytes_raw);
v_jms_message := sys.aq$_jms_bytes_message
(l_header
,l_length
,null
,l_bytes_raw);
v_jms_message.set_string_property('JMSReplyTo','queue://SOME_BROKER/SOME_QUEUE');
-- v_jms_message.set_string_property('JMS_IBM_MQMD_ReplyToQ','SOME_QUEUE');
DBMS_AQ.ENQUEUE(
queue_name => queue_name_val,
enqueue_options => queue_options,
message_properties => message_properties,
payload => v_jms_message,
msgid => message_id);
END;
</pre>
Can anybody help, please?

Hello everyone!
I'm trying to send JMS message to MQ-queue and I need to set fields ReplyToQ in MQMD and Rto in JMS section.
I'm using:
JMS_QUEUE_CONNECTION,
Queue_payload_type => 'SYS.AQ$_JMS_BYTES_MESSAGE'
FQ domain -> dbms_mgwadm.DOMAIN_QUEUE
When I try to set properties using JMSReplyTo and JMS_IBM_MQMD_ReplyToQ, in result message in MQ-queue these properties doesn't set.
I don't know how to set JMSReplyTo using v_jms_message.set_replyto(v_agent) , because v_agent has sys.aq$_agent type.
<pre class="jive-pre">
DECLARE
queue_options DBMS_AQ.ENQUEUE_OPTIONS_T;
message_properties DBMS_AQ.MESSAGE_PROPERTIES_T;
message_id RAW(16);
p_xmlstring varchar2(3000);
queue_name_val varchar2(100);
v_agent sys.aq$_agent := sys.aq$_agent(' ', null, 0);
v_jms_message sys.aq$_jms_bytes_message;
enqueue_options dbms_aq.enqueue_options_t;
msgid raw(16);
l_header SYS.AQ$_JMS_HEADER;
l_properties sys.AQ$_JMS_USERPROPARRAY;
l_bytes_raw blob;
l_length number;
BEGIN
queue_name_val := 'MQ_JMS_TEST';
v_jms_message := sys.aq$_jms_bytes_message.construct;
v_jms_message.set_replyto(v_agent);
v_jms_message.set_type('mcd://xmlns');
l_header := sys.aq$_jms_header
(null,null,null,null,null,null,l_properties);
dbms_lob.createtemporary(l_bytes_raw,true);
l_bytes_raw:=utl_raw.cast_to_raw('<some_message>');
l_length :=dbms_lob.getlength(l_bytes_raw);
v_jms_message := sys.aq$_jms_bytes_message
(l_header
,l_length
,null
,l_bytes_raw);
v_jms_message.set_string_property('JMSReplyTo','queue://SOME_BROKER/SOME_QUEUE');
-- v_jms_message.set_string_property('JMS_IBM_MQMD_ReplyToQ','SOME_QUEUE');
DBMS_AQ.ENQUEUE(
queue_name => queue_name_val,
enqueue_options => queue_options,
message_properties => message_properties,
payload => v_jms_message,
msgid => message_id);
END;
</pre>
Can anybody help, please?

Similar Messages

  • JMSReplyTo property for MQ-message (trouble)

    Hello all!
    I'm trying to send JMS message to MQ-queue and I need to set field JMSReplyToQ in JMS section.
    I'm using:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    JMS_QUEUE_CONNECTION,
    Queue_payload_type => 'SYS.AQ$_JMS_TEXT_MESSAGE'
    FQ domain -> dbms_mgwadm.DOMAIN_QUEUE
    But I can’t set JMSReplyTo property for MQ-message. Please could you like help me for this trouble?
    See below my PL/SQL block:
    declare
    i_msg_id raw(24);
    l_id varchar2(25);
    l_msg_id raw(24);
    l_answer_queuename varchar2(80);
    l_answer_msg clob;
    l_answer_xml XMLType;
    procedure Put_MsgX (i_QueueName varchar2,
    i_msg CLOB,
    i_msg_id raw,
    i_characterSet number := 1208)
    is
    l_EnqueueOptions DBMS_AQ.ENQUEUE_OPTIONS_T;
    l_MsgProperties DBMS_AQ.MESSAGE_PROPERTIES_T;
    l_MsgID raw(16);
    l_msg_str CLOB:=i_msg;
    l_msg_str_len int;
    l_replyto sys.aq$_agent;
    l_header sys.aq$_jms_header;
    l_properties sys.aq$_jms_userproparray;
    l_mess_jms_text sys.aq$_jms_text_message;
    begin
    l_EnqueueOptions.visibility := DBMS_AQ.IMMEDIATE;
    -- Message object creating
    l_msg_str_len:=LENGTH(l_msg_str);
    l_mess_jms_text:=sys.aq$_jms_text_message(l_header
    ,l_msg_str_len
    ,l_msg_str
    ,null);
    -- MQRFH2 jms-folder properties
    l_mess_jms_text.set_groupid('grp_1');
    l_mess_jms_text.set_groupseq(5);
    -- Message corellation ID
    l_MsgProperties.correlation:='555D5120514D5F333C45584D4C2021115178D7BF20046922';
    -- Message priority
    l_MsgProperties.priority:=0;
    -- MQRFH2 usr-folder properties
    l_mess_jms_text.set_string_property('SOAPJMS_requestURI','jms:jndi:');
    l_mess_jms_text.set_string_property('SOAPJMS_contentType','text/xml; charset=utf-8');
    l_mess_jms_text.set_string_property('SOAPJMS_bindingVersion','1.0');
    /* -------- It is NOT WORKED !!! ----------------------------
    -- This code line isn’t effected to result (MQ Series message property ReplytoQ is empty)
    l_mess_jms_text.set_string_property('JMS_IBM_MQMD_ReplyToQ','queue:///PPV.JMS.MQ.OUT');
    -- This code line effected error
    -- oracle.jms.AQjmsException: JMS-147: Invalid ReplyTo destination type, or use of reserved `JMSReplyTo agent name,
    -- or serialization error with AQjmsDestination
    l_replyto:=sys.aq$_agent(null,'FXGTST.JMS_OUT',null);
    l_mess_jms_text.set_replyto(l_replyto);
    -- Sending message to MQ Series queue
    dbms_aq.enqueue(queue_name => i_QueueName,
    enqueue_options => l_EnqueueOptions,
    message_properties => l_MsgProperties,
    payload => l_mess_jms_text,
    msgid => l_MsgID);
    exception
    when others then
    Raise;
    end;
    begin
    i_msg_id:=UTL_RAW.SUBSTR(UTL_RAW.CAST_TO_RAW(SUBSTR(LPAD('999888777',24,'0'),1,24)),1,24);
    l_msg_id:=i_msg_id;
    l_answer_msg:=
    '<?xml version="1.0" encoding="UTF-8"?>'||
    '<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">'||
    '<SOAP-ENV:Header>'||
    '<m:UCBRUHeaders xmlns:m="urn:ucbru:gbo:v3"></m:UCBRUHeaders>'||
    '</SOAP-ENV:Header>'||
    '<SOAP-ENV:Body>'||
    -- some XML elements
    '</SOAP-ENV:Body>'||
    '</SOAP-ENV:Envelope>';
    l_answer_xml:=xmltype(l_answer_msg);
    l_answer_queuename :='FXGTST.JMS_IN';
    Put_MsgX(l_answer_queuename,l_answer_msg,l_msg_id);
    commit;
    exception
    when others then
    raise_application_error(-20020, 'Error: '||sqlerrm||' Queue='||l_answer_queuename);
    end;

    From JMS the correct way to set the mq message format to MQSTR is by using a JMS text message. You don't have to set anything explicitly.
    Can you try posting the message to a local mq and use some tool to see the message sitting on the format and check for the MQ format field. Also let know what exact error the other system is getting.
    P.S: For anything MQ, I would recommend to use this forum : www.mqseries.net.

  • Set layout property for dynamic group element

    hi ,
         I am creating group ui element dynamically . can any one plz tell me how to set layout property for group as gridlayout DYNAMICALY??
    Kavita

    Hi,
    Following is the skeleton of the code you need.
    IWDTransparentContainer container = view.getElement("<Your container>");
           IWDGridLayout gridLayout = container.createLayout(IWDGridLayout.class);
           gridLayout.setCellPadding(cellPadding);
           gridLayout.setCellSpacing(cellSpacing);
           IWDTransparentContainer container = null;
           IWDGridData grid = container.createLayoutData(IWDGridData.class);
           grid.setHAlign(hAlign);
           grid.setVAlign(vAlign);
           grid.setPaddingRight(paddingRight)
           grid.setPaddingRight(paddingRight)
           grid.setWidth(width)
    Regards
    Ayyapparaj

  • Can you set an alert for birthdays in Addressbook and iCal?

    When I migrated from Palm Calendar to iCal, my calendar had my birthdays in it repeating each year and with a 7 day alert so I could send a card or get a present in time.
    I see you can list a birthday in Addressbook and set the iCal pref to show them which is at first glance very cool and green but when I open the birthday event in iCal I don't see any way to set an alert which is a big limitation.
    If I can't set alerts, then the Addressbook/iCal birthday syncing is kind of pointless and limited, unless I'm missing how to set alerts.

    Hi Steven,
    This is one of the reasons why I wrote Dates to iCal.
    As well as automatically syncing birthday dates from Address Book, Dates to iCal can sync anniversary and custom dates. It can set up to five alarms for each date in iCal and can also set different alarms for birthdays and anniversaries.
    Best wishes
    John M
    <hr/>As I sell software on my site and ask for donations, the Apple Discussions Use Agreement requires that I state that I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • How can I set a password for firefox so that everyone have to enter the password before executing firefox

    My younger sister executed my firefox just at this afternoon(she originally use IE), and she saw something that can't be seen. How can I set a password for firefox so that everyone have to enter the password before executing firefox?

    Also see this for an English version of Profile Password:
    *Profile Password: http://nic-nac-project.de/~kaosmos/profilepassword-en.html#PPF
    It is an extension to protect the profile with a password, but being an extension that protection can easily be bypassed by starting Firefox in [[Safe mode]].<br />
    So do not rely on it.<br />
    If you want to protect content then you have to use methods supported by the OS like a separate user account with a password or an encrypted file system.

  • How can i set a layout for MIGO screen

    Hello all,
    How can i set a layout for MIGO screen. & make that layout default. Like i want to drag Requistioner column next to quantity in MIgo screen. temporarily I can drag but is there a way to save as layout & save it.

    Hi
    First you arrange however you want and then go to table settings which is there in the right corner of the item details and create a variant and save.
    Find a button with blue yellow and white at the top end above the vertical drag bar when put the cursor it will show you as Configuration.
    After creating the variant tick the check box use as standard setting below the variant
    Hope it helps
    Edited by: Girish  Adaviswamy on Mar 3, 2010 1:27 PM

  • How can I set a default for webpages to expand to full screen?

    How can I set a default for webpages to expand to full screen? Every webpage I go to does not expand to a full screen which causes me to have to ctrl+++ each time. How can I set my preference to expand to full screen automatically?
    Thanks.

    The Firefox [https://support.mozilla.com/en-US/kb/Page+Zoom Page Zoom] feature does a domain by domain level of saving the users preferred zoom level settings, there is no default Page Zoom level setting in Firefox, as with some other browsers.
    Try the Default FullZoom Level extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/6965
    Or the NoSquint extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/2592/

  • How can I set a password for my pictures on iPad Air ?

    How can I set a password for my pictures on iPad Air ? if anyone have my iPad access mail or something I don't want anyone access my photos so how can I set it up.

    You can't set a password for the Photos nor Mail apps, you can only set a passcode for your iPad as a whole (via Settings > Passcode).
    There are third-party photo management apps such as Photo Manager Pro which you can copy your photos into from the Photos app (and then delete them from Photos), that app allows you (via its settings within the app) to set a password to access it.
    For email you could access your email via a browser (and not have your password stored in the browser), or see if there are any email apps in your country's app store which have a password option

  • How can i set a path for my deployment files in weblogic server 10.3

    Hi
    How can i set the path for my WAR ,JAR files while deploying.i am using the wls10.3 version.
    is there any scripts for this ,please provide me.
    my Application is ADF 11g application.

    By "path", I assume you mean "classpath".
    The simplest way is simply to include the jars you need inside the web application or web module's WEB-INF/lib directory, EJB module's META-INF/lib directory, or EAR lib directory.
    If that's not practical, if you use NodeManager to start your servers, you can go to the "Server Start" tab in the server definition in the WebLogic console and edit the "Classpath" field, which defaults to no value. You can specify a classpath value there. Note that if you specify a value there, it REPLACES the default classpath for the server, it doesn't add to it. If you need to just add to it (a much more likely scenario), if the value references the value "$CLASSPATH" in it, that will reference the original classpath value that the server would have had.
    So, for instance, if you wanted to include the MQ jars in the server classpath, you could set a value like this:
    /usr/java/mq/lib/mq.jar:/usr/java/mq/lib/mqstuff.jar:$CLASSPATH

  • How can I set home page for a new tab? how can i get firefox to open the home page every time i open a new tab in Windows vista home basic??

    How can I set home page for a new tab? how can i get firefox to open the home page every time i open a new tab in Windows vista home basic??
    == This happened ==
    Every time Firefox opened

    Firefox can have multiple home pages if you wish. Each home page that will open when starting Firefox is separated by the "|" character.
    See: http://support.mozilla.com/en-US/kb/How+to+set+the+home+page
    To have new tabs open a specific web site, add one of the following extensions:
    http://sogame.awardspace.com/newtaburl/
    https://addons.mozilla.org/en-US/firefox/addon/777

  • How can I set my phone to delete messages after a certain period of time? 6 months, 1 year??? It is taking up over 4GB on my phone.  I don't want to delete everything just the oldest ones.

    How can I set my phone to delete messages after a certain period of time? 6 months, 1 year??? It is taking up over 4GB on my phone.  I don't want to delete everything just the oldest ones.

    If you update to iOS 8, you can select that in Settings>Messages>Keep Message and then select your option. If you don't update to iOS 8, you'll need to do it manually.

  • Can v set credit limit for a vendor? if so, how?

    can v set credit limit for a vendor? if so, how?

    Hello
    the two replies are correct that the redit limit is always used for customers. but i can give you the scenario as per the request and Amrita please correct me if i am making something wrong.
    as per vendors there are three to four vendors are available for buying a material. we are not using quota arrangement but we just distribute the order based on the situations. the order is given to a vendor who is quoting low price, giving the required quality and quantity and supplying as per our need. there is one more criteria for choosing this vendor. the outstanding balance for this vendor should not cross some limit.
    the limit may be based on negotiations and the some contracts' terms and conditions.
    the solution for this may be that there should be one report where you can see how much we owe to each vendor. this could be possible only when we know the Vendor g/l account and the corresponding balances.
    i think i have cleared the credit idea as well as given the solution. please reward if found it helpful.

  • Can I set the language (for spellcheck) of a document in the iCloud Web version, or iOS version, of Pages? If yes, how?

    Can I set the language (for spellcheck) of a document in the iCloud Web version, or iOS (iPad) version, of Pages? If yes, how?

    In iOS, the spellcheck language follows the keyboard.
    The forum for questions about iOS Pages is at
    https://discussions.apple.com/community/app_store/iwork_for_ios

  • Can I set child lock for safari on iPad?

    Can I set child lock for safari on my iPad? Is this possible?
    I have an ipad mini

    Sorry, no. What you can do is enable restrictions, which you can use to lock out all access to safari (just dont' forget the passcode you use to enable this) and then unrestrict when you want to use Safari.

  • Can I set up folders for major classifications of music as opera, country, etc. and then put all the albums with the genre into those folders folders?

    Can I set up folders for major classifications of music as opera, country, etc. and then put all the albums with the genre into those folders folders?

    Hi Richard Bugdal1,
    Welcome to the Support Communities!
    You can't change the folder structure within iTunes, but you can easily change the view to sort by Genre.
    The link below will explain how to do this:
    Apple - Find Out How - Music - iTunes
    http://www.apple.com/findouthow/music/itunes.html#tips-viewoptions
    Cheers,
    Judy

Maybe you are looking for