Optional user-defined destination sort key

I want to use user-defined destination sort key to control JMS message priority. Not all the messages contain the message property this sort key uses. When the message property is not present, what is the sorting behavior? Will messages be sorted by the message priority first, and if it doesn't exist, then messages be sorted by default i.e. by JMSMessageID?

Hi,
          If you're using the "JMSPriority" field, then all messages have a value, and the default value is 4 (set by the JMS specification). In WebLogic, the default priority can be set to a different value via a connection factory configurable attribute.
          If you're using a JMS message property, then the behavior is different. For sorting purposes, I think the defaults for numerical types are their minimal possible value "MIN_VALUE", for the boolean type is "true", and for the string type is the empty string ("").
          By the way, I recommend using header fields (such as JMSPriority) for sorting - this can aid performance significantly in the case when there are many messages on the destination and/or when messages are paged out.
          Hope this helps,
          Tom

Similar Messages

  • Destination Sorting Key - not sorting under load

    I have configured a Destination Sorting Key on one of my JMS Queue and it is sorting based on JMSPriority set in the JMS Message Header. The sorting works fine when I test it with a few messages. I am firing messages with priority 9 and 4. When I run a load test with 50-60 messages(both 9&4) , I can see that sorting is happening but its not effective. I still get lower priority messages before the higher priority messages when I read the queue.
    What i understand is that messages will be pushed as FIFO only but the Destination Sorting Key makes sure it changes the order of the messages in the queue itself before I read the messages.
    Is it possible to sort the messages effectively in the Queue?
    Regards,
    Vinay Krishnan

    I need more info in order to even attempt to answer the question.
    Checking for kinds I started using a hashmapYep... That's how I'd do it... build a histogram = new Map<Card.Face,Integer>(); and check it for a pair, two pair, three of kind, flush, four of kind, and whatever else.... remembering the best hand at each stage.
    I presume you're asking about this "weird" statement.
    Sort the histogram by the count backwards (high values first).
    Q: Is there a class that supports key value pairs and is sortable?
    A: http://java.sun.com/javase/6/docs/api/java/util/SortedMap.html
    .... and dude you need to learn how to google. That was the first hit for "java sorted map".
    One hint: Build your HashMap, then get a SortedMap when you're ready to query it in-order... I guess you'll want a "reverse-frequency-table"... i.e. from frequency to value.
    Otherwise, I suppose I could create another object that contains two ArrayLists, one for keys and one for values, which I keep in sync, but that seems ugly.Yep parallel arrays (or ArrayLists) are uglier than [Amanda Vanstones|http://www.theage.com.au/ffximage/2005/08/02/amanda_vanstone_wideweb__430x276.jpg] ugly sister. Having said that they're not too totally horrible once they're "hidden" behind a facade.
    Cheers. Keith.
    Edited by: corlettk on 21/06/2009 23:49 ~~ I didn't see your second post before I posted this... Treat as a confirmation of what you discovered indepenantly... and I'd be interested to see your finished project. Cheers. Keith.

  • Does Map Support User-Defined Object As Key?

    Hi,
    Map m = new HashMap();
    m.put(myobj1, "Hello");
    m.put(myobj2, "World");
    I'm using my own object as the key for the map.
    Since the key is a user-defined object, I would need to overload the equality operator in order to get the value.
    Now, if I would to do something like this:
    MyObj myObj = (MyObj)m.get(myobj3);
    I found out that the equality operator for MyObj never even executes (by printing out some message). But if I would to retrieve using the original myobj1 and myobj2 object, then only the equality operator would get executed.
    If I would to do the above using the String object instead of MyObj, the equality operator works fine.
    I can't seemed to find a reason for the above behaviour. Any ideas?
    Thanks in advance.

    In a hashmap, the object is located/stored by calculating its hash code. Therefore, you need to also override the hashCode() method of the Object class so that the same objects return the same hashCode, so that you can retrieve your objects.

  • Using user-defined transport recording routine with table maintenance view?

    Hi,
    I have  a table that is maintained through a maintenance view. I need to record the changes to a dedicated transport object (not TABU) with my own recording routine instead of teh standard recording routine.Could someone tell me which/how the events can be used to achieve this?
    Regards
    Rachana

    Hi Rajeev,
    I have changed TMG to choose the option - User defined routine. And I have created a new transport object in SOBJ for the table. Is this enough to record the object to the transport as the object i defined instead of TABU? Do I need to write some subroutine for any view event to achieve this? Do you mean to use the menu option to include the object to a request?
    I have a bigger problem where this view is actually part of a view cluster. Even in that case is teh above steps enough?
    Regards
    Rachana

  • Line item display and sort key

    Hello,
       can anybody pls let me know how can we change layout for f-53 ad f-28 and what is the significance of using sort keys and how can we use them.
    please let me know,
    thanks

    IMG: Financial Accounting -> General Ledger Accounting -> G/L Accounts -> Line Items -> Line Items -> Line Item Display -> Determine Standard Sorting for Line Items
        (Transaction OB16)
    You can define sort keys that are used to determine the structure of the assignment number.
    Typical fields for the assignment number are posting date, document number, fiscal
    year, purchase order, cost center, document header text.
    The possible values for the sort key are saved in field TZUN-ZUAWA.
    You can define a sort key in the master record of a G/L, customer, or vendor account  (Transactions FS01, FD01, FK01)(Table Fields SKB1-ZUAWA, KNB1-ZUAWA, LFB1-ZUAWA).
    Assignment Number
    The assignment number is used as a sort criterion. For example, the list for clearing      open items (FB05) or the line item list  (FBL3N, FBL5N, FBL1N) can be sorted by this  field. Besides this the assignment number is used as a group criterium for automatic
        clearing. During document posting, the assignment number is either determined from the sort key of the account master record or you can enter it manually (a manual entry overwrites the derived value).
    Hope above clarifies your doubts..
    Regards
    Siva

  • Sort Key In Vendor Master not working

    Hi,
    I have selected the sort key 010 (Purchase Order No.) in vendor master but the PO no is not getting updating in Assignment field in Vendor line itmes.
    When check vendor line itmes in FBL1N Assignment filed shows as blank only.
    Can any one advice me what config I missed.  Also I wnat to know where we define these sort keys in SPRO.
    Thanks in advance
    Regards,
    Deepak
    Edited by: DeepakH on Apr 6, 2011 2:40 PM

    Dear Deepak,
    As stated the SAP note 152335:
    "...it is no longer possible to enter a unique purchasing document
    number in the customer/vendor line item. Field BSEG-EBELN is not filled
    in the vendor line item and therefore cannot be displayed in the line
    item display for customers/vendors."
    Therefore this is the Standard System Design not Your customizing fault.
    I hope this helps You.
    mauri

  • CM21/cm25 sorting of user defined field in table area

    Hallo,
    I implemeted the field MARC-MATGR in the table area of the CM21 with user exit CYPP0005 and now I'm trying to use the user exit CYPP0002 for sorting in order of this field like explained in oss note 605217.
    I implemented the coding like shown in the examples of the user exits but sorting is not workiing.
    By debugging the user exit I'm not shure where I can change the internal tables to get a result sorted by this "MARC-MATGR".
    Perhaps someone can help me giving me an hint how the user exit is working and what has to be changed ?
    Thanks a lot in advance,
    Volker

    Dear ,
    I have posted a similar kind of reply in one of the thread  which may help u defining the User Defined Tabel /Filed .Just check this Out :
    For cm25/CM21 : Assuming that you have all the other set up for Capacity Requirement in place , please note the belwo steps for layout design for CM25 OR cm21 or cm22( all you will be used same overall profile )
    1.Make sure that you have proper Overall profile defined in OPD0-Define Overall profile .Here u will define Time Profile , Startegy prfoile . Lay out Profile etc .
    2.To paint your layout your soultion is to Goto -CY38-Pop down the menu -Select the Lay out Key which have been used as lay out -Goto Change Mode (Pencil symbol)-Now you will find the fields are high ligheted as per CM25 dipaly in a sequnce -You can un chekcde the Filed like Operation , Operation text , Setup what ever you do not want to show in Order Pool and Hit SAVE butotn and come back .
    CM25 --> Settings --> Display Profiles --> Planning tab.profile --> I01 --> Layout ID ( Example : 'SAPSFCLA05') which is Main Capacity Lay out id .
    If you goto CY38-Pop down the menu -You will find Main Capcitity Lay out Id : Example SAPSFCAS01 -Enter this lay out and chenage accordingly as I have explained in above
    Once you save this , then go back to CM25 and execute with coupe of work centres to check how is the order pool looks now .
    Refer this threade for Layout Id and option which u may need for CM25 front end
    Exception messages in CM21 or CM25
    I hope this should work
    Regards

  • How to create a Foreign key relationship between 2 user defined tables...

    Hi Folks,
    I have created two user defined tables... Where in i want to create foriegn key relationship between the 2 tables.... Can anyone guide the step by step procedure to do this scenario...
    Any help would be highly appreciated...
    Thanks

    Hi
    1.  In the 2nd table call the field of the 1st table which is a primary key.
    2.  Give the same field and dataelement name.
    3.  Select that field and then click on the foreign key field icon which is beside Search Help button.
    4. Then give short text, and the 1st table name.
    5. Then in the below box give the 2nd table name and 2nd table field name which you have called from 1st table.
    6. Then click on copy, then u will be able to see Check table name and check table field name beside foreign key table name.
    7. Then again click on copy.
    Regards
    Haritha.

  • User Table Key set up in User defined field management

    Dear  Expert,
    what is use of User Table Key set up in User defined field management in SAP B1.
    Thanks.
    Sridharan.R
    Edited by: Sridharan.R on Oct 4, 2011 8:26 AM

    Hi,
    Once a UDF is created and a value is entered in it, the same cannot be retrieved in any of the layouts and reports unless a Key is generated for that UDF. By assigning a Key to that UDF, the same UDF can be used in Crystal Reports or any other Reporting tool to extract its values from SAP. These reporting tools searches the Uniqueness of the UDF Values with this Keys only.
    For eg.: When you develop a report and select a table from which you need the fields to be shown in the layout. In that, the only fields whose keys are generated are only available to use in the report.
    Hope its clear to you.
    Regards,
    Papil

  • How to use User Options and User-Defined Fields in DC Group function?

    Dears,
    As title, when should I use above fields?  I did not see the related information in SAPME help library.
    Thanks!

    The user options fields are just information fields you can store at the Data Collection Maintenance activity. You can think of these as extra information fields for storage purposes only.  I can't give you a use case except to say 'information fields' only.
    With regards to the User-Defined fields in DC Group - you can think of these as extra data fields to be collected.  They will appear immediately underneath the data parameter they are defined in in the DC Plug-in for the POD.  They do not have limits but are just extra pieces of data you may want to collect about the specific parameter.

  • Launch programs with User defined Keys?

    Im using 10.6.4 on a Macbook Pro and on the 1 screen im using 3 different programs at once (2 music programs and Parallels / Windows Program)
    Is there a quick way to flip between the 3 very quickly as I like to view all 3 very quickly and chop and change between them on the Macbook Pro screen
    I use Apple + Tab but this gets tedious trying to flip around between them going left and right
    Does 10.6.4 allow you to user define keys to certain programs so you can launch and they become active?
    ie: F1 - launch program 1, F2 - Launch Program 2 etc
    So 1 button push makes a certain program active?
    I was used to Windows, whereby everything stayed in a dock at the bottom and you could just launch any program at any time
    I love Mac OS X but the only way I can find is either the Apple+Tab which gets tedious, or a Hot corner which i have set up and "spreads out" the programs : then again with hot corners your still having to chase around all your open windows!
    Is there a quick easy solution for having up to 3 programs at once and instant access that I don't know about? With audio editing, i chop and change edits to see how they fit between programs so this would be invaluable
    I'm pretty sure OSX would have something under the bonnet to do this?
    Thanks

    pitchfork wrote:
    I was used to Windows, whereby everything stayed in a dock at the bottom and you could just launch any program at any time
    Hi,
    Um, so far as I'm aware this is the same behaviour in OS X. Launched programs that are not added to the Dock are appended to the right of the Dock, but applications in the dock do not move randomly - unless you count the fact that the Dock expands to include newly-added or -launched applications. To achieve what I think you're referring to, simply add the applications you use frequently to the Dock permanently, and use the same behaviour you were accustomed to in Windows to switch applications.
    However, if you want to create a simple keystroke to switch to another application (whether open already or not), then try creating a new Automator Service to activate a given application, and assigning a keystroke to it. I've never actually created a working Automator action before, but I believe the following should work:
    1) Launch Automator
    2) Select "Library" in the left-hand column, and type "Applescript" in the search box.
    3) There will be only one result, "Run Applescript." Drag this into the right-hand column.
    4) Copy and paste the following script to replace the words "(* Your script goes here *)":
    tell application "Amadeus Pro"
    activate # switch to your application, launch if necessary
    end tell
    5) Replace "Amadeus Pro" with the name of the application you want to switch to. KEEP the inverted commas.
    6) Make sure the drop-down menu in the top-right is set to "any application."
    7) Choose "Save" from the File menu, and assign an appropriate name; this is how your Service will appear in the Services menu. You can now close Automator.
    8) Finally, assign a shortcut in System Preferences » Keyboard » Keyboard Shortcuts » Services.
    Give that a shot and see whether you're happy with it. Rinse and repeat with the names of the other applications if satisfied
    Hope that helps,
    S.

  • Defining keys on user defined tables

    Regarding tables of type 'lines' (in document or master data).
    I want to define a unique key for the DocEntry fields and some other user-field (so I could restrict the user to add only 1 type of line for each master record), but the problem is that keys can be defined only on the user-defined fields.
    Is there any way around this?
    I can easily go to the SQL manager and add this unique index myself, but will that harm my SBO system in any way?

    Hi Avi,
    A formatted search is a customization functionality in SBO that doesn't require SDK to work. It allows a field to be selected from a list of values that you can enter or query. It also allows you to display in that field an automatic values that triggers when a value in other field changes. More information in product training :).
    It has some limitations, but using it smartly can be very helpful. A very basic way to use it is copying a value from one field to another (like DocEntry or Code). In a default form it'd be like $[$3.DocEntry], where 3 is the ItemID and DocEntry is the ColumnID. You save it in the query manager, and the focus on the field you want to assign the formatted search and do it using AltShiftF2. Anyway have a look at the official SBO training.
    Hope this helps,
    Ian

  • User defined option

    hi
    has anyone got any idea how to create user defined option to run with the "java" command? I want to build some for testing mode of my software.
    thanks

    The option that I talk about is, for example:
    java -classpath helloworld
    In this case "-classpath" is one of the available option that comes with the "java" command.

  • [eval 1.1.0.21]sort in user-defined ended with ; report produces ORA-00911

    reproduce it with :
    1) user defined reports --> add report --> SQL :
    select * from scott.emp;2) click on the sort icon in the header of the column
    the workaround is to not include the ; in the sql
    regards
    Laurent
    Message was edited by:
    Laurent Schneider
    prefixed!

    Laurent,
    Please can you prefix your comments with Eval 1.1.0.21.4.1? We'll be doing regular eval releases for the next few weeks and many of the folk on the forum are still on 1.0 (15.57), so we need to try to keep queries clear.
    I know what you are testing and using, but others migt not.
    As for the comment: Yes, thanks - no need for ';' on any user defined reports. You'll see if you copy the shipped reports they don't have it either. Useful to note.
    Sue

  • Bank Key, user definable?

    Hi Expert,
    I would like to ask whether SAP bank key is user-definable, or need to follow certain standard, naming convention specified by each bank/country?
    This is becuase I found that I need this bank key for my electronic bank statement settings ...
    Section: Assign bank account to transaction types,
    and if I create bank key without following standard, how can bank file sent by the bank detect my bank key correctly?
    Thanks and regards,
    sbmel.

    Dear Sbmel,
    Please visit the following link: http://www.ecbs.org/iban.htm
    You will find there information about bank key rules- at least for IBAN countries...
    Otherwise, like stated above- it is a part of country specific checks, IMG path as follows:
    SPRO-> SAP NetWeaver-> General Settings-> Set Countries-> Set Country-Specific Checks.
    Regards,
    Milen.

Maybe you are looking for

  • Line with same key

    Hello everybody, Im facing a problem when trying to run a query Im getting an error that says: There is already a line with th same key. I ran the program ANALYZE_RSZ_TABLES and I found the query that Im trying to run under the error: Selections or R

  • SAP, Data Migration Contracts

    Good afternoon, I am seeking additional SAP resources with Data Nigration, MTO and ICWC experience. Please could someone advise a reliable source to find the available skills in the current contracting marketplace.

  • Adjusting the timing of a button

    It seems that I used to drag the 2 little vertical to the left or right in order to control where I wanted the slide to pause until the user clicks. I am embarrassed to say that I have fogotten how to do this. When I try to drag the "control point" i

  • Dreamweaver CS6 and CC both very slow page rendering under Mavericks

    Dreamweaver CS6 and CC both very slow page rendering under Mavericks compared to 10.8.5 Any ideas?

  • Environment Channel Strips view like the mixer window?

    Is there a chance to set the environment Channel Strips view like the mixer window? The mixer has the new graphic view whereas the environment has the old LP9 graphic view