Need to add additional properties to a message

Hello Friends,
I need to obtain a JMS message and add properties to that message. Any message I receive is marked as read only. Hence I get a MessageNotWritableException when I try to set a property in that message. I have to call the clearProperties method but that will clear all the existing properties in the message. I would like to create a copy of this message and then add properties to it. Is there a way to this?

Copy the properties into a HashMap, clear them, set the message payload, put the properties back

Similar Messages

  • Need to add additional SDK to xcode project.

    Hello,
    Can any one tell me how can i add additional SDK to my carbon application.
    Thanks in advance,
    Regards,
    Sunil Adhyaru.

    Could you give us some more information about this? What SDK do you want to use? You could go about it by importing the header files (assuming the SDK is written in a type of C) then import them into your application by doing the Carbon equivalent of #import "HeaderFileFromSDK.h".

  • Need to add additional path information when installing service

    I'm trying to add the following additional parameters for when the NT service is installed:
    SET ORACLE_HOME=c:\oracle\ora81
    SET PATH=%WL_HOME%\bin\oci817_8;%ORACLE_HOME%\bin;%WL_HOME%\bin;%JAVA_HOME%\bin;%PATH%
    SET CLASSPATH=%WL_HOME%\config\%DOMAIN_NAME%\lib\CT_Oracle_classes12.jar;%CLASSPATH%
    What is the proper syntax to addinging these parameters to the delivered -extrapath:"%WL_HOME%\bin" flag in the install command?

    Copy the properties into a HashMap, clear them, set the message payload, put the properties back

  • Need to add 2 properties to DisplayObject

    I am building a mapping application (think google maps) and
    want to be able to add a latitude,longitude to any DisplayObject
    (or subclass) so I can still use all the built-in AddChild,
    RemoveChild, etc. methods. I was thinking I could just extend
    DisplayObject to GeoDisplayObject and add the custom properties and
    methods, but then I can't cast any of DisplayObjects subclasses to
    a GeoDisplayObject.
    Any Ideas?

    Hello,
    Either you could copy the existing report for MB51 - RM07DOCS into a Z report and add these two fields depending on where these columns are required (header or item level - as the output is a hierarchial alv report) in the corresponding tables defined in the program HEADER or ITEM. populate the respective data in the internal tables and add these fields in the corresponding field catalogs.
    As you are using ECC 6.0, you can also check if an implicit enhancement is available. You will have to add these fileds in the internal tables HEADER or ITEM, these fields will also be added in the corresponding field catalogs and a point where the logic to add data into the internal tables.
    These values passed to the ALV will display the new columns.
    Thanks and Regards,
    Sachin

  • Need to add additional storage to XServe G5/PowerPC G5 (3.1)

    Need additional storage for the Xserve listed below.  Any suggestions.  Need at least 1TB

    Just about any external array should work this this. Heck, if you only need 1TB then any external hard drive should work, too. Look for a FireWire-based drive since that will outperform the USB. Anything more than that will require a PCI card.

  • Need to Add additional field in LOV

    Hello Experts,
    I am working on a R12.1.3 Platform with Oracle database version : Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production.
    Here my requirement is in the Customer Information Additional form, when i select Address field, then it will displayed a List of values of an Address of the Customer Site.
    I want to show the location field also besides the Address field in the LOV.
    Following is the detailed information of the field.
    Navigation :
    Receivables -->India Localization --> Customers --> Additional Information
    Address(Customer Tax Information India Localization)
    JA_IN_CUSTOMER_ADDRESSES.ADDRESS
    Please guide me for the solution.
    Thanks,
    Atul

    Hello Experts,
    I am working on a R12.1.3 Platform with Oracle database version : Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production.
    Here my requirement is in the Customer Information Additional form, when i select Address field, then it will displayed a List of values of an Address of the Customer Site.
    I want to show the location field also besides the Address field in the LOV.
    Following is the detailed information of the field.
    Navigation :
    Receivables -->India Localization --> Customers --> Additional Information
    Address(Customer Tax Information India Localization)
    JA_IN_CUSTOMER_ADDRESSES.ADDRESS
    Please guide me for the solution.
    Thanks,
    Atul

  • Add additional IP to Windows 2008 SP2 Cluster

    Dears,
    I have a 2 node SQL 2008 Cluster 64bit (non r2) on Windows 2008 SP2 64bit (non r2) Server.
    I need to add additional IP (different subnet) to the Cluster Quorum Resource. 
    Kindly guide me the steps to add the IP ?
    Thanks
    Tariq

    HI Tim,
    Well we need more than one IP address on the Cluster (Quorum) for our replication to work as for some reason we cannot use the production IP which is currently configured for this Cluster.
    Further if you are doing multi-site cluster with different subnet then you may need two IP with different subnet on the cluster (not for services or application)
    I found this usefull command and it worked on the win 2008 sp2 (non r2) server:
    C:\>cluster . res "FS IP Address" /create /group:"file server" /type:"IP Address" /priv address=192.168.1.106 subnetmask=255.255.255.0
    For win 2008 r2 servers there is powershell command through which we can achieve the same.. :)
    it took me hard time to figure out that "failoverclusters" module will not work for win2008 SP2 server.. !! 
    Thanks

  • Add additional page to Remittance Advice

    Hello Experts,
    I am working on Remittance Script.
    In Remittance Advice  , there are three pages, FIRST,NEXT and LAST.
    I need to add additional page to the existing Remittance layout.
    This page should show the additional data for all PO/SES related to the invoice and should be printed before the last page which just contains summary.
    I am able to add the additional page with CONTROL_FORM but am not sure how to print the data
    on it. I tried creating an additional main window but it says there can be only one main window (which already exists in the layout)
    there can be multiple pages with the PO/SES data.
    Requst you to please help me in this.
    Many thanks in advance,
    Priyanka Gaur

    Hi,
    Try to check for the Page name equal to your summary page in Main window and print the details which you want to present only in that page. You can use the symbol &ITCTG-TDPAGE& to get the current page.
    Regards,
    Vimala P

  • Addin extra properties to MAPI messages

    Hi!
    On msdn website http://msdn.microsoft.com/de-de/library/cc765570.aspx following is written:
    "MAPI Property Overview:...Clients can define properties to describe new message classes, and service providers can define properties to expose the unique features of their messaging system."
    I ve been trying to add custom properties to MAPI messages, send and receive them. the problem is by receiving i get the error code 0x40380.
    Inside my GetProperties() method the pProp parameter should have in its Value.l field 5, but it has l = 0x8004010f???
    While sending the HRESULT is ok. Is it really possible to define custom properties and to receive them?
    Ive defined my own PropertyTag as the following:
    #define PROP_TAGEVO(ulPropType,ulPropID)    ((((ULONG)(ulPropID))<<16)|((ULONG)(ulPropType)))
    #define PR_MESSAGE_FLAGSEVO                    PROP_TAGEVO( PT_LONG,        0x0081)
            void SetProperties()
                const int nProperties=1;
                SPropValue props[nProperties] = {0};           
                /*props[0].ulPropTag=PR_ORIGINATOR_DELIVERY_REPORT_REQUESTED;
                props[0].Value.b = (unsigned short)true;*/
                props[0].ulPropTag=PR_MESSAGE_FLAGSEVO;
                props[0].Value.l = (LONG)5;
                HRESULT hr = m_pMapiMessage->SetProperties(nProperties, props);
    in MapiMessage.cpp SetSproperties Method:
    HRESULT CMapiMessage::SetProperties(ULONG valueCount, SPropValue* lpProp)
        if (!m_lpMessage)
            return E_FAIL;
        return m_lpMessage->SetProps(valueCount, lpProp, NULL);
    ...SetProps() is the MAPI method.
    My GetPToperty method:
    void GetProperties()
                LPSPropValue pProp;
                HRESULT hr = m_pMapiMessage->GetProperty(PR_MESSAGE_FLAGSEVO, pProp);
                BOOL bRead = ((pProp->Value.l & MSGFLAG_READ) == MSGFLAG_READ);
    automation eng. in programming

    Hello Evren,
    As far as I know you can define transmittable user properties in range 0x8000 to 0xFFFF (user-defined Name-to-id mapped property). The
    Property Identifier Ranges page in MSDN provides the following information:
    8000 - FFFE
    Properties defined by clients and occasionally service providers that are identified by name through the IMAPIProp::GetNamesFromIDs andIMAPIProp::GetIDsFromNames methods.
    Be aware, the property should be defined on the target Inbox folder.

  • I am setting up my ipod touch and it won't allow me to add a phone number to the list of phone numbers for some reason, and I need to be able to get my messages. What do I do?

    I can't get the number for imessage to add another number, and I need to be able to get my messages. I also can't change anything for facetime. What do I do to add a number?

    An iPod (and iPad) ony have a phone number for Messages (and FaceTime) if there is an iPhone with Messages/Facetime using the same ID for Messages and facetime.
    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
    If you can't change the Settings that means that the Restrictions that prevent changing accounts is set. Settings>General>Restrictions

  • I need to add fields in additional fields B the sales order line item

    i  need to add fields in additional fields B beside the field (icon_val_quantity_ structure) in the sales order line item, How to achicve this? please help me..

    Please fined the below solution for achieving your requirement.
    1. Add new filed "B" in table VBAP.
      a) T.code  SE11 --> Enter structure name VBAP --> display
      b) Goto --> Append Structure --> Enter Structure name and new field "B"
    2. request your basis team and take the access key for modification of stabdard program SAPMV45A & Screen: 8459
       a) After receiving access key for standard program then got o SE51 --> enter program name  SAPMV45A & Screen: 8459
       b) click change Button
       c) click layout button
       d) add new field "B" below of the screen (F6 -> enter table name : VBAP --> get from dictionary --> selet new field and past in screen )
    3) write below code in flow logic
    PROCESS BEFORE OUTPUT.
                               Verarbeitung vor der Ausgabe
      MODULE ZZPB_INITIALIZE_8459.
      MODULE ZZPB_OUTPUT_8459.
    PROCESS AFTER INPUT.
      CHAIN.
        FIELD VBAP-New field name "B".
        FIELD ZVC_SALES_EXPORT-ZZAPLHENKO.
      ENDCHAIN.
      MODULE ZZPA_OUTPUT_8459.
    4. functin Module code
    module ZZPB_OUTPUT_8459 output.
      Data: l_v_actve type ale_active,
            l_v_ttyp  type c.
      Data: l_v_tragr type tragr.
    l_v_ttyp = t180-trtyp.
      if l_v_actve is initial.
        l_v_ttyp = 'A'.
      endif.
      LOOP AT SCREEN.
        CASE l_v_ttyp.
          WHEN 'A' OR 'C'.
            SCREEN-INPUT = 0.
        ENDCASE.
      ENDLOOP.

  • HT3775 unable to get quicktime movies to play on my imac. This is the error message I always get. "The document "4-20130701090400-5.mp4" could not be opened. The movie is not in a format that QuickTime Player understands.You may need to install additional

    Unable to get Quick time movies to play on my imac. This is the error message I allways get.
    "The document “4-20130701090400-7.mp4” could not be opened. The movie is not in a format that QuickTime Player understands.You may need to install additional software to open this type of file."

    Download and install VLC Player. It plays more formats and is free and highly regarded.
    http://vlc-media-player.en.softonic.com/mac
    Cheers
    Pete

  • Need to add xml tag in the request message

    Hello Experts,
    Need ur help.
    Right now i am working on the scenario Http -> to -> Proxy.
    Whatever request i am getting is not having XML tag in it, and because of that my mapping is failing.
    Can you tell me that how can i add XML tag in my request so it will not fail in Mapping?
    Need to add : <?xml version="1.0" encoding="UTF-8"?> in request.
    Thanks,
    Hetal

    HI Hetal
    Instead of adding this to the source message. Remove this tag from mapping.
    Use a XSLT mapping without this initial tag. it will work.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:m="http://namespace">
    <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
    <xsl:template match="/">
    <xsl:for-each select="//tag">
    <xsl:value-of select="." disable-output-escaping="yes"/>
    </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>
    Use this mapping without
    <?xml version="1.0" encoding="UTF-8"?>
    If you still see XML tag then use
    <xsl:output method="html"
    instead of
    <xsl:output method="xml"
    Thanks
    Gaurav

  • How to use OMJX transaction? Need to add an additional field on MIGO item

    hi guys
    we need to add a new field on the MIGO screen at the item level. We are trying to explore OMJX to add custom fields.
    We have used append structutre to enhance the GOITEM structure but are not clear on how to use OMJX.
    ANy idea how to use the transaction OMJX.
    Thanks in advance

    With the Business Add-In (BAdI) MB_MIGO_BADI, you can extend the              
    interface of the goods movements transaction (MIGO) with additional           
    tabstrip controls for the detailed information (detail tabstrips) and         
    header information (header tabstrips). It is possible for an external         
    application                                                                   
    o  to display an additional detail tabstrip with own subscreen (max. 10       
       lines) in MIGO                                                             
    o  to display an additional header tabstrip with own subscreen (max. 3        
       lines) in MIGO                                                                               
    The program name, screen number and tab page text can be determined           
    dynamically. Different screens can therefore be controlled according to       
    the mode (for example, change mode, display mode, goods receipt, goods        
    issue).                                                                               
    Pushbuttons                                                                   
    It is not possible to implement pushbuttons in the MIGO menu, but you         
    can, however, implement pushbuttons directly on the external subscreen.       
    The OK code from MIGO is forwarded to the external application so it can      
    react.                                                                               
    Cursor Control                                                                
    So that the cursor stays on the same subscreen after you press Continue,      
    if it was positioned there before, the external application in the own        
    PAI must hold the cursor positioning (on the same screen 'yes'/'no'; if       
    'yes', on which field), to set the cursor in PBO again.                                                                               
    Requirements                                                                               
    If you use the BAdI MB_MIGO_BADI in MIGO to update customer-own data, in      
    addition to the material document, to the database, you should note the       
    following:                                                                    
    o  The BAdI MB_MIGO_BADI is only active in transaction MIGO.                  
    o  If you post goods movements with other transactions (for example, with     
       MB01, MB1C, VL02N), you must ensure that customer data is also             
       updated, if necessary.                                                     
       You can do this by using the BAdI MB_DOCUMENT_BADI (Creating a             
       material document) to post the goods movements with the transactions       
       mentioned above.                                                           
    o  Note that otherwise, posting the goods movements will lead to              
       inconsistencies between SAP system data (for example, in stocks,           
       material documents, FI documents) and customer data.

  • We have a complete CC business membership and currently have the programs installed on 2 computers but need to add them onto a 3rd. Can we add a licence to our membership or do we need to purchase an additional membership?

    We have a complete CC business membership and currently have the programs installed on 2 computers but need to add them onto a 3rd. Can we add a licence to our membership or do we need to purchase an additional membership?

    If you have Creative Cloud for teams, and you bought the licenses through Adobe direct (via Adobe.com), you can add licenses yourself, and they will be invoiced automatically as you get invoiced for the other two licenses.
    Log into adobe.com with your team admin Adobe ID and password.
    Once logged in you should be able to access a Manage Team option from the menu.
    In the top-right corner there should be an Add Licenses button, that lets you purchase any number of additional licenses.
    If you've not purchased through Adobe direct, but through a reseller, you'd need to contact your reseller to add the additional license.
    Hope this helps,
    Cari

Maybe you are looking for