Best way to configure redelivery limit value for a Queue

Hello,
My doubt is related to configuring the JMS Redelivery Limit property from Weblogic 9.2 Server.
We must support redelivery attempts in our queue, with a redelivery delay of 30s. So, we have set the queue's Redelivery Limit property to -1, via Console Configuration:
Settings for My_DQueue -> Delivery Failure -> Redelivery Limit = -1
The consumer of that queue is a MDBBean, which extends org.springframework.ejb.support.AbstractJmsMessageDrivenBean.
The producers to that queue are weblogic.jms.extensions.WLMessageProducer.
That queue has an error queue configured as Error Destination.
Then, the WLMessageProducer is the one who specifies that value:
WLMessageProducer messageProducer = (WLMessageProducer)queueSession.createProducer(queue);
messageProducer.setRedeliveryLimit(5);However, we will not be able to ensure that all message producers pointing that queue will specifiy that redelivery limit. This may lead us to problems, as default queue Redelivery Limit is set to -1, and messages without specified redelivery limit would be redelivered indefinitely.
I'd like to know if there is any way to specify a MAXIMUM redelivery limit value for a JMS queue. For example: fixing that limit to 10. If producers specify by themselves a redelivery limit lower than such value, that limit is applied to messages. Otherwise, the configured default limit value is used.
Another option we have considered is to include, in the MDB's onMessage() method, a validation of the "JMS_BEA_RedeliveryLimit" message property:
This validation would check whether no redelivery limit is configured in the Producer, and would forward such messages directly to the error queue, from the MDB, when the "JMSXDeliveryCount" outnumbers our fixed value:
public void onMessage(Message message) {
   try {
      if(message.getIntProperty("JMS_BEA_RedeliveryLimit")<0){
         //MESSAGE FOUND WITHOUT REDELIVERY LIMIT SPECIFIED BY PRODUCER.
         //POTENTIAL DANGER OF BEING REDELIVERED INDEFINETELY
         int deliveryCount = message.getIntProperty("JMSXDeliveryCount");
         if(deliveryCount>10){
             //CAN I FORWARD MESSAGE TO ERROR DESTINATION?But we were not able to found such examples to achieve this
Thanks in advance!
Joan Esteve

Hi Joan,
I just double-checked, and as far as I can tell the options for setting a redelivery limit include programmatically on the Producer or by configuring an override on the Destination. Unfortunately, you need the override to only take effect if the delivery limit hasn't already been set. (If we had a default deliverylimit configurable on our connection factory, this would have done the trick.)
I think you've already hit upon the solution: your consumers can check each received message's JMSXDeliveryCount and act accordingly. It's fine for a consumer to use the JMS_BEA_RedeliveryLimit property see if the Limit has been set by a producer, and then check JMSXDeliveryCount to check the delivery count, but I'm not sure if the JMS_BEA_RedeliveryLimit property is set in older versions (8.1 may not have it for example).
As a refinement, you may want to use the WLMessageProducer forward() API. This is an alternative to send() that preserves the message-id and timestamp of a consumed message. I don't think forward() allows any modification of the consumed message before it's forwarded.
Hope this helps,
Tom
Edited by: Tom B on Feb 22, 2013 10:03 AM

Similar Messages

  • Best way to put the default values for the Form Items

    Hi,
    I am having a form with lot of default values as mentioned below..
      Field                      value 
      created by             :APPL_USER
      creation_date         SYSDATE
      last_updated_by     :APPL_USER
      last_update_date    SYSDATE
      item1                     value1
      item2                     value2Currently I am using Computation -> After Submit.....so whenever we create/update a record...these computaion takes place and the default values get inserted....THIS IS WORKING PERFECTLY FINE.
    I want to know..if this approach is fine OR we may have some better approach to acheive this...????
    Thanks,
    Deepak

    Deepak,
    Sample trigger code:
    CREATE OR REPLACE TRIGGER  "BINS1_APPLICATION_TBL"
       BEFORE INSERT
       ON APPLICATION_TBL    FOR EACH ROW
    BEGIN
       --  Description: Insert creation_dt, creation_id,
       --              lst_updt_dt and lst_updt_id
       --  Maintenance:
       --  Date        Actor           Action
       --  ====        =====           ======
       --  20-Aug-2009 J. Wells         Create.
       :NEW.creation_id := V('APP_USER');
       :NEW.creation_dt := SYSDATE;
       :NEW.lst_updt_dt := :NEW.creation_dt;
       :NEW.lst_updt_id := :NEW.creation_id;
       SELECT APPLICATION_seq.NEXTVAL
         INTO :NEW.APPLICATION_seq
         FROM DUAL;
    END bins1_APPLICATION_tbl;
    ALTER TRIGGER  "BINS1_APPLICATION_TBL" ENABLE
    /Jeff

  • Best way to configure search toplogoy for multiple servers farm??

    Hi,
    My farm environment is 2 WFE and 2 App servers. Right now i am trying to configure Search Topology. what will be the best way to configure the search topology for this farm, so that query and crawling will be working perfectly. one thing i noticed with my
    previous search application Crawl DB had grown 140 GB, i dont know why it happened. please look at the following screen shot, this the current topology but i want to distribute component to different server.
    Any help will be appreciated!!

    The best topology depends on whether you want it to be fault tolerant or not. For a fault tolerant design with this number of servers I normally create two Index Partitions 0 and 1 with each on one of the App servers.  I then create Replicas of each
    partition on the front end servers. I then put the query role on both web fronts ends and the crawl role on both Ap servers.  So I end up with the following:
    FE1 = Index Replica 0 + Query
    FE2 = Index Replica 1 + Query
    Ap1 = Index 0 + Crawl
    Ap2 = Index 1 + Crawl
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • What is the best way to configure storage device for rac?

    Hi
    On my disk array i have 7mirors and two conroler, what is the best way to configure environment?
    My application is OLTP, it runs 6-20 o clocj, so i can do backup when nobady work
    Database 10g r2, Windows 2003 enterpise
    for examlep
    First controler
    disks 1-5 DATA
    second cotnroler
    disks 6-7 FLASH
    or meyby share one disk on DATA and FLASH?
    Thanks in advice

    The best is you use ASM (maybe you do it already) and put one failure group on the first disk array and the second failure group on the second array. Then you can ASM let do the work.
    Werner

  • Best way to configure a network comprising WLSE and many APs ?

    Hi the Cisco NetPro community,
    I would like to have a discussion with you on the best way to configure a network containing a WLSE and a large amount of Access Points.
    The network I want to configure comprises some subnetnorks, each comprising about 10 access points (with some advanced settings for security). It might be a quite long and boring process to set the configuration for all those, so I am looking for the quickest and easiest solution to do so.
    First of all, the configuration of IP addresses have to be done on each Access Point after unpacking it. The configuration of my network comprises 1 WDS active AP, 1 WDS backup AP and the rest of infrastructure APs, that for each developement site.
    I thought about several solutions :
    - 1st solution could be to apply a configuration file (i.e. load the config.txt file) to each AP manually, changing some values (IP, local radius...).
    But problem is that passwords can't be changed with text editor because of the passwords written in "hash".
    - 2nd solution could be to configure each AP (after IP is set) using its web interface.
    No more problem for hash written passwords, but this method is quite boring when surfing on menu pages of the AP web interface...
    - 3rd solution, which could appear as the best solution, is to create a template on the WLSE, and to apply it to all APs.
    No more boring connection to each AP, but problem are : we need to create as many templates as APs (or change some parameters each time), and we still need to set parameters directly to APs before (SNMP, SSH, WDS configuration...), in order the WLSE to manage the APs.
    So, what do you think could be the best solution in order to deploy such a network with many APs ?
    How is it possible to avoid (so far as we can) the configuration of APs one by one ?
    Thanks a lot in advance for your consideration and your ideas !
    Alexis.

    Well for one of my clients that had over 60 sites, we actually created a couple of templates. We created a basic template and a template for each site. You can have the ap's obtain the configuration from the WLSE, but you need to configure a DHCP option. My client did mac address reservations, but of course you need the mac address first. I guess you can also let the ap get an address and change it later. They tried doing different things, first let the ap obtain a default config and then pushing out the configuration for that site.
    As for the hash, you can set the password in ascii... when you do a show run, then of cours it will be hash'd.
    http://www.cisco.com/en/US/docs/wireless/wlse/2.12/user/guide/deploywz.html#wp1936755

  • What is the "best" way to configure iTunes on an iMac with personal user acounts so each user can access the media library but sync devices on their personal user account?

    I am trying to determine the best way to set up our imac so each user account can access the same media (songs, movies etc.) through itunes and also back up and manage their personal devices under their own personal user account.  There are 4 users on our iMac.  Me, my wife, and our 2 children.  We have built an extensive library of music/media together using the same iTunes store account.  I would like to establish a seperate apple id and iTunes store account for each of us going forward but have the ability for each of us to share our purchases.  What is the best way to configure our system and devices in order to allow shared access to media and at the same time allow for individual management of devices including contacts, apps, photos, etc. Please help, I would like to do this once!
    Thank you in advance! 

    OK, seeing as no-one replied (presumably because a lot of this information is on the forums in bits elsewhere) here's how I've got on so far.
    Applications - just went through them.  About the only one I needed was my media server app.  Just downloaded and re-installed, had a quick look back though my email to find the license key and it all went on fine.  Installation never seemed quite right on my old machine so solved that problem too. 
    Movies - New iMovies just copied across the clips and projects into their respective folders.  Seems to have worked but haven't checked it all that thoroughly.  Some duplicate footage here but I can trim this out at some point when I get a chance to go through here. 
    Documents - Just copied these across. 
    Photos - used an app called iPhoto Library Manager.  You can download for free but have to pay to use the part that consolidates your libraries.  Possibly if I was willing to spend a bit more time I could have got away without using this but given I didn't know the state of my different libraries and just how many duplicates I had this was too much of a convenience to ignore.  Also got my library into a state where I can now spend a few hours organising it a bit better with Faces / Events etc. 
    Not attempted Music or iPhone sync yet as been stuck trying to solve a problem with my power adapter. 

  • Best way to give a default value to a New Column with existing rows

    Adding some columns to SQL tables with existing data rows. There are also views created from these tables. The views are used in some report/query software so NULL values are not good. Interested in learning about the best way to set a default value. 
    These are the ways that I can think of
    1) ALTER TABLE using the DEFAULT to add the column and set the default value
    ++ Adds a constraint which is not terrible. Constraints are just not used much in this shop.
    2) ALTER TABLE to add the column then do an UPDATE statement to update the values
    ++ might be an issue for tables with millions of rows
    3) ALTER TABLE to add the column then use ISNULL in the CREATE VIEW

    It is a large table with 444 columns and max row size of 2268. 907k records took 1 minute 38 seconds to UPDATE the column. I have about 12 fields to add to this table and about 44 tables (not all this large of course) so it will take some time to
    UPDATE.  Although ... i just tried updating 3 columns in a single UPDATE and it took 1 minute 36 seconds. So If I did all 12 fields in a single UPDATE it would be about the same time as a single Field.  I will think about it.

  • BAPI_PO_CHANGE does not change LIMIT value for service PO with ref to IDOC

    Hi,
    I am trying to change the limit values for both ACCTASSCAT (K) and item cat (D ie service PO) with ref to message type PORDCH IDOC type PORDCH02, the IDoc is getting posted but the PO is not getting updated ie LIMIT value is not getting change and returning msg "No data changed".
    Could you please provide the way to change LIMIT value.
    Regards,
    Mojammil Khan

    Are you really sure that your IT_SCH has the same fields like POITEM?
    the delivery date and statistical delivery date are located in the schedule tab in ME23N and stored in the schedule table EKET, not in EKPO where the PO item data is stored.
    I think you should assign your IT_SCH to POSCHEDULE

  • Best Way to Configure Multi-boot System With GRUB/GRUB2

    Hello again,
    Sorry for posting so much, but I'm really enjoying Arch so far! I had been reading a lot about Cinnamon so I wanted to try it (without installing the dependencies on my Arch installation), so I decided to install Mint, that went fine, and then I was hoping to add the entry to GRUB. I couldn't figure out how to do this, so I decided to try and install GRUB2 because it can autodetect other OS'. Well it didn't work and then I found myself without a bootloader. I couldn't figure out how to reinstall grub to the MBR (I tried the solution in the wiki and a couple of other places). I decided to reinstall Mint, and now I am booting into Arch through Mint's GRUB2. Two questions:
    1) How can I fix grub through Arch to have that as my bootloader again? Nothing seems to work that I've tried.
    2) What is the best way to configure grub or grub2 from Arch to allow myself options to multiboot other OS's in the future? I want to learn as much about UNIX as possible so I was planning on installing some other Linux distros and some other non-Linux UNIX OS's. I know this is a really newbie question, but I'm at a loss, I thought it was easier than it turned out.
    PS. I didn't really like Cinnamon that much. I've been using Xfce and Openbox since I started using Linux (about a month ago), and it just seems too complicated! I don't like how little options you are given for customization. But that's just my opinion, everyone is different, I can see how it would be an improvement over GNOME3.
    Thank You!

    I have Arch Linux and Debian Testing installed side by side on my laptop.
    Arch uses Grub (legacy) and Debian uses Grub2. The way I have set it up is to have Arch's Grub on the MBR and then chainload Debian's Grub2 from there.
    Debian's Grub2 is installed on its own partition rather than on the MBR
    This is the line I use to chainload Grub2 from Grub (legacy)
    # (4) Debian chainload
    title Debian chainload
    root (hdX,X)
    chainloader +1
    Additionally just for kicks, I also have an entry in Grub2 to get back to Grub.
    menuentry "Arch Linux chainload" {
    insmod part_msdos
    insmod ext2
    set root='(hd0)'
    chainloader +1
    boot
    Note that the (hd0) above always points to the MBR.
    I do not have to bother with one bootloader interfering with the other and the OS entries on each are handled separately on their own.
    This setup has worked well for me for quite a while now. Before I started with Arch, I used a similar setup when I tried out various distros (Fedora,opensuse,etc.) alongside Ubuntu
    Hope it helps !

  • What is the best way to configure password in Cisco IOS?

    I am running IOS 15.2(4) on a 1921 Router
    What is the best way to configure the password for the router?  I have already tried once and managed to lock myself out of another switch.  I would like to use the most secure method which encrypts the password.
    Current Config:
    username admin privilege 15 password 0 cisco123

    Cisco IOS will not let me use a type 5 password.  This is the error message I receive: 
    ERROR: The secret you entered is not a valid encrypted secret.
    To enter an UNENCRYPTED secret, do not specify type 5 encryption.
    When you properly enter an UNENCRYPTED secret, it will be encrypted.
    I tried generating an MD5 hash and inputting that in and that did not work either.  When I do not specify type 5 it will default to using an encrypted type 4 password.
    Also, what is the difference between these two enable secret commands?
    enable secret 5 password
    username admin privilege 15 secret 5 password 

  • Threshold limit value for the mic?

    Hello community,
    I have a nice setting for my microphone on adobe audition 6. But I have one big problem.
    How can I setup a threshold limit value for the microphone voice? The issue is, that I have all my ambient noises on the recording, so I need a "minimum" activation line. (the same as the "speech activation" in teamspeak 3). There must be a limit and noises under this limit have to be ignored/not recorded.
    I hope you know what I mean.
    Thanks in advance for any help and best greetings from Germany.
    Merciless

    Hallo Merciless
    because you mentioned "greetings from Germany" I'll now switch language, hope you understand German too.
    Was Du suchst ist ein Noise Gate.
    Das findest Du wenn Du im Effekte-Rack "Amplitude und Komprimierung > Dynamikverarbeitung" auswählst.
    Am oberen Rand dieses Fensters findest Du dann ein Drop-Downmenü "Vorgaben" und hierunter zwei "Noise Gate" Einstellungen.
    Jetzt vielleicht noch ein bisschen mit den Einstellern spielen und das Grundrauschen sollte weg sein.
    Ich hoffe die Info hilft weiter
    Viel Erfolg

  • Best way to configure and connect two 4500 switches

    I have a  core 4507r+e in our production environment. We just acquired a 4500r and I would like to use it a distribution switch. What’s the best way to configure the new 4500r switch to connect to the core 4500 switch?

    Disclaimer
    The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
    Liability Disclaimer
    In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
    Posting
    BTW, when you link your core to your distribution, the connecting link can be L2, L3 or both.
    What I wanted to bring to your attention, 4500s can often easily oversubscribe some of their ports.  Much depends on the sup and line cards being used.  When you want to interconnect a core and distribution, you don't want to use a port that's something like 8:1 oversubscribed.  (Further, if you're doing mostly L2, and all traffic L3 has to go to the core, depending on you traffic flows, a single link might have insufficient bandwidth.)
    Also from core to distribution, if possible, it's good to avoid single points of failure.  So if you only have one link between them, that link's transceivers (if used), the ports connected to, the line card connected to, are all single points of failure.  (Of course, with only single sups in each chassis, that too is a single point of failure.  From what you've described, from a performance and redundancy standpoint, you might actually be better off using a 4510R, with your two sups [if same model] and line cards - creating a collapsed core/distribution.)

  • Best way to configure "announcement only" mailbox

    We have a client with 2951 router with Cisco CME v8.x.  They need to have their receptionist be able to call in and change the school information message from an external number.  They told me that they used to be able to dial in on the main number and then push 1 to dial by extension. When they called into that extension they could push * and get into the mailbox and then access the prompt customization part of the AvT.  That isn't working and doesn't really make sense to me.  I have tried to dial by extension and dial the AvT extension and it says invalid number.  If I make the voicemail box for the extension in question an "announcement only" they cannot push * and change the greeting.  Is there a best way to configure this senario to make it easy for the receptionist to change the school information announcement from an external number?  Any help would be greatly appreciated!

    Its been a while I did this but if I remember correctly, need dial the pilot number to access the mailbox. So when your client dials the main number, after that dial the voicemail pilot number, then enter the user ID as mailbox of announcement only, it should then give you the options to record the greeting.
    I have dismantled my lab temporarily due to some renovation otherwise I would have quickly confirmed for you from there...but do try above and let us know how you go...
    -Terry

  • More than 16 midi tracks....best way to configure?

    What's the best way to configure more than 16 midi tracks?
    1) External usb midi box
    2) Virtual ports
    3) Apple IAC ports
    4) Disconnect SUM and connect ports to channel splitters (which are then fed to the instruments)
    When configuring more than 16 audio instruments, is the best way to do that to use individual midi instruments as the front end for each, setting the midi port and channel on the midi instrument?
    Or...is it better to go through the channel splitters (like in #4 above)?
    I've run into some kind of midi cross-talk anomaly that I can't find (still after a LONG time searching), and I can't help but think it might be in my environment setup somehow.
    Anybody like a good mystery? All help appreciated!!!
    Cheers,
    S.

    Hi,
    Firstly, please get rid of the term VST. Logic only uses Audio Units, and they work a little differently "behind the scenes".
    Ok. Now that you said the magic "only internal" synths phrase:
    In the current Environment, I've made a separate "midi instrument" for each "audio instrument" device. I'm using the "midi instrument" to set the port and channel of each separately.
    You do not need to do this. Because you are using internal synths (If you clue us in on WHICH ones....that could help too...unless that is a State Secret)
    Somehow, I've managed to get the problem down to one annoying item: I have a chimes part that has some sustained notes that are being CUT OFF in mid-note. There is nothing in the Event List for that track that would explain this, so I'm guessing that the track must be receiving some midi data from someplace else.
    My best guess is that you are playing back a Midi note that is, say XXX length, and the SAMPLE is only XX length. That would explain immediately why it is being "cut off".
    OR...there is simply too much midi data at that point that the track....no that can't be because the music is thin there. I don't know. I just can't find it.
    THAT is a delicious piece of speculation. Please inform yourself about what is really going on. Your posted question is totally misleading.
    You don't need 16 tracks of Midi because ONE sound is not playing back the way you want. Your problem has NOTHING to do with the question that you put forth:
    More than 16 midi tracks....best way to configure?
    Where is the cut-off chime sound sample in this question??? Nowhere... and nowhere is the answer...oops...
    I can't help you further, as I already spent a long time helping you set up an imaginary Midi setup that does not even exist, nor even solves your issue.
    Cheers
    Brought to you by the wise noeqplease, sans caffeine

  • Best way to configure Time Capsule with Thomson TG782T modem(Telstra)

    Hi there
    I am looking for the best way to configure my Time Capsule.  I have an ADSL connection and use a Thomson TG782T wireless modem from Telstra as my internet connection.  It is plugged into my iMac via ethernet.  It also provides a wifi connection for iphones, ipads etc.
    I also have a Time Capsule and am looking to use it to extend the wireless network.  It doesn't seem to want to do this for me.  I am guessing that the Time Capsule needs to be in bridge mode, but don't want it to create its own wireless network.  Does this make sense?  Any help gratefully received.
    Thanks!

    I also use TG782T.. although I hacked it to use on non-telstra ISP.. and so I can access voip.
    But you cannot use TC to extend the wireless .. sorry that is not possible.. the Thomson is actually way behind and the only service it offers to extend is WDS and with WEP security.. so unless you plan to use G wireless and WEP .. don't even think about it.
    Bridge the TC and plug it into the Thomson. Create a wireless network of identical name as the Thomson.. actually the Thomson uses a silly name.. just change it to something short and sweet.. TG782T would be excellent. You can also lock the wireless channel instead of auto and use the highest level possible security with your own password.. again not the Telstra one..
    so you end up..
    Now run the same settings on the TC.. go to the wireless page.. set to create a network and use same name.. same security level same password but different channel.
    Your client computers will now connect to whichever device has the stronger signal.. this is called roaming network.

Maybe you are looking for

  • Surface Pro Wifi Issues

    I'm currently running Arch on my Surface Pro, and I'm having an issue with the wifi. I'm using wpa_supplicant with wpa_gui, and whenever I connect using the mwifiex_usb module, it works for a bit (like 3 minutes), then it stops working and I have to

  • GE70 2OE won't go past bios screen

    Hi, I bought a new GE70 2OE 7 days ago and I'm having trouble with it. It came with window 8 pre installed. I did all the update then upgraded to windows 8.1 and all went fine. I also made my recovery disks before any updates and after all the update

  • Backing up - how to solve after copying whole system - login incorrect

    Hello, I have done an script to backup the whole filesystem and restore it. I am making tests before using forever. For Windows I use ntfsclone and it works perfect, but for ArchLinux I am doing: I use Knoppix cd-live to manage everything. I load the

  • Using WRT54G as a access point.

    I have two WRT54G's and have the internet connected to one of them. I am trying to use the second as an access point, but I haven't been able to figure out how to connect them. I dont have the option of running a cable. Anyone know how to get it to w

  • Rating a Post as Good/Bad

    Hi Everyone! Regular visitors to this board will have noticed that there is a little area at the foot of each post that asks you if the post was helpful or not. If you are new to the boards here you will be able to see it now, just in the bottom righ