How to set up the maximum number of messages on a queue programmatically

Hi,
I am using IMQ 3.5 to implement a message layer for one of my projects. I created a "Job Status Queue", which receives job status report from a java application every minute. But I just want to keep the most current status report instead of all the job running history. How can I restrict the maximum number of messages to 1 programmatically?
Any suggestion or help will be appreciated.
Xiaoyun Tang

You can't limit the destination size programmatically, but you can do it administratively and associate a behavior to occur when the limit is reached. In your case it sounds like you want a queue, 1 message deep, and to discard the oldest message when the queue is full. When you create the physical queue on the broker you can specify these attributes (you can also update them on an existing queue). For example:
imqcmd create dst -t q -n StatusQ -o maxNumMsgs=1 -o limitBehavior=REMOVE_OLDESTFor more information see Chapter 6 of the Message Queue Administration Guide. In particular the "Managing Destinations" section:
http://docs.sun.com/app/docs/coll/MessageQueue_35_SP1
Joe

Similar Messages

  • How do you increase the maximum number of migration batches using EAC?

    When I try to run a new batch, I'm getting the following error message:
    The maximum number of migration batches is already running. Please remove a batch before you add another one.
    How do I increase the maximum number of migration batches using EAC? Thanks for your help.

    Hi WinndowsGuy,
    Is there any update on this thread?
    Thanks,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Simon Wu
    TechNet Community Support

  • How do i detect the maximum number of lines

    Situation:
    I have a textfield that displays about 8 lines of text before
    the content would need to be scrolled to view the remaining
    content.
    Question
    Rather than having some ActionScript that is constantly
    trying to scroll the field, how do i detect the following.
    How do i determine the maximum number of lines that may be
    displayed in a textField (or any type of text field) before
    scrolling would be needed?
    Please specify the method. Thank you.

    When tracing the output using the bottomScroll, it only tells
    me how many liines I have output to the textfiedl, it does not tell
    me how many lines the textfield can hold.
    How do I determine how many lines a textfield can
    hold?

  • How can i fix (the maximum number of free accounts have been activated on this iphone)

    how can i fix (the maximum number of free accounts have been activated on this iphone)?
    please help to me.it`s for iphone 4S.

    You can't 'fix' it. It's not broken. That's the way it's designed.

  • HT4863 i am receiving a message that i have reached the maximum number of messages i can send out today but i have not even sent 5 emails out yet today ?

    i am receiving a message that i have reached the maximum number of messages i can send out today but i have not even sent 5 emails out yet today ?

    I'll add that this can happen when snapshotting is used as a backup method. You can set max endpoints to 32 and still see the issue. Please ensure that you're backing up using the supported PowerShell commands: http://technet.microsoft.com/en-us/library/hh202170.aspx
    and not just a snapshot of the VM. If raising max endpoints does not resolve the issue, try backing up with the management shell commands within a recurring scheduled task or try http://gallery.technet.microsoft.com/office/Backup-script-for-Lync-2013-aacbb9b9
    . Then disable the snapshot ting for your front ends, bounce them one at a time, and ensure the data exports you've made are backed up as flat files.
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer".
    SWC Unified Communications

  • How can I change the phone number for messaging and FaceTime?

    How can I change the phone number for messaging and FaceTime?

    Unable to make or receive FaceTime calls after April 16, 2014
    http://support.apple.com/kb/TS5419
    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    iOS: FaceTime is 'Unable to verify email because it is in use'
    http://support.apple.com/kb/TS3510
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    How to Set Up & Use iMessage on iPhone, iPad, & iPod touch with iOS
    http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/
    Set Up Alert Sounds
    http://www.quepublishing.com/articles/article.aspx?p=1873027&seqNum=3
    Extra FaceTime IDs
    http://tinyurl.com/k683gr4
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Troubleshooting iMessage Issues: Some Useful Tips You Should Try
    http://www.igeeksblog.com/troubleshooting-imessage-issues/
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Fix Can’t Sign Into FaceTime or iMessage iOS 7
    http://ipadtutr.com/fix-login-facetime-imessage-ios-7/
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    http://support.apple.com/kb/TS3970
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    iOS 7 allows you to block phone numbers or e-mail addresses from contacting you via the Phone, FaceTime, or Messages
    http://howto.cnet.com/8301-11310_39-57602643-285/you-can-block-people-from-conta cting-you-on-ios-7/
    How to Block Someone on FaceTime
    http://www.ehow.com/how_10033185_block-someone-facetime.html
    My Facetime Doesn't Ring
    https://discussions.apple.com/message/19087457#19087457
    How to watch FaceTime calls on the big screen with Apple TV
    http://www.imore.com/daily-tip-ios-5-airplay-mirroring-facetime
    Send an iMessage as a Text Message Instead with a Quick Tap & Hold
    http://osxdaily.com/2012/11/18/send-imessage-as-text-message/
    To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Text on the iPad
    http://ipad.about.com/od/ipad_tricks/a/How-To-Text-On-The-Ipad.htm
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
    How to Receive SMS Messages on an iPad
    http://yourbusiness.azcentral.com/receive-sms-messages-ipad-16776.html
    Apps for Texting http://appadvice.com/appguides/show/apps-for-texting
    You can check the status of the FaceTime/iMessage servers at this link.
    http://www.apple.com/support/systemstatus/
     Cheers, Tom

  • How do I change the mobile number re messages on iPad air

    How do I chane the mobile number re messages on my new ipad air.  It seems to be coming up with my husbands number ...

    Are you using your husband's Apple ID from his iPhone?
    Do you have an iPhone associated with your Apple ID?
    To associate Messages on an iPad with a phone number you need to have an iPhone that has the Phone number so it can be associated with the Apple ID being used on both devices (iPhone and iPad).
    Malocolm wrote:
    Which do you mean.
    I sort of was refering to both.
    If you have a plan, it's just LTE, or wireless on the go.
    Apple doesnt give you a phone number, thats the way they've been manufacturing iPads, just with Wireless plans.
    Apple doesn't give out phone numbers or wireless plans. Only the cell carriers do that.   While A Cell Plan for an iPad has a number its just for Identification purposes by the carrier, and cannot be used for Messages. 
    Also it is not necessarry to have a cellular iPad with a cellular plan to have a number for messages. As I said, you need an iPhone to do this.

  • How can we increase the maximum number of records which we export from UME

    Hi All,
             Is there any way to increase the maximum number of records which we can export from the UME.
    Please give your valuable suggestions as soon as possible.
    Thanks in Advance
    Regards,
    Ramalakshmi.S

    I didn’t find any configuration you can set to increase the number. I think it is related UI. The number is designed programmatically.
    Lisa Zheng
    TechNet Community Support

  • How can I calculate the maximum number of days between two dates in a range of dates?

    I have a column of dates spanning the couse of a few months.  I would like to know if I can calculate the maximum number of days between each row and display the highest number.  I currently have another column that calculates the days betwen the rows and I am currently just looking at the totals and highlighting the highest period.
    Is this possible?  Any help or suggestions are appreciated.
    Thank you,
    Trevor

    This sounds totally possible,  Can you post a screen shot of your table to make responding more focused?  If you mean you want to:
    A) compute the difference (in days) between two date in the same row, then
    B) find the max duration (in days)
    Here is my take on this problem:
    D2 = C2-B2
    select D2 and fill down
    F1=MAX(D)
    to perform the conditional formatting (to highlight the max duration) select column D, then set up conditional formatting as shown in the 1st image

  • How do I increase the maximum number of images I can acquire in a sequence using the IMAQ 1424 with 80 MB of onboard memory and a Duncan Tech camera?

    I've increased the maximum number of buffers to higher than I need, but I still cannot acquire more than 139 images with the Duncan Tech digital video camera before I get a memory lock error. Is there any way to increase the number of images I can acquire in a sequence using the IMAQ 1424 with 80MB of onboard memory?

    It sounds like you are already bypassing the onboard memory. If you weren't, you would only be able to acquire about 20 images.
    If I understand correctly, you do not convert the images until after you acquire them. This means each acquired image is 4.13 MB, and 139 images will take 574 MB of memory. I wouldn't be surprised if that was all the free memory available on a 1 GB machine. The operating system, LabVIEW and any other software running probably take up the rest of the memory. You might want to put your computer on a diet and minimize the number of other programs and utilities running. The only other option I see is getting more memory if possible.
    Is there a way that you can reduce the number of images you need to acquire? Pe
    rhaps skipping every other frame? Do you really need more than 139 images?
    Is it possible to acquire the images in monochrome? That would triple the number of images that you could acquire.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • How do I identify the mobile number in Messages?

    Hello,
    This isn't really an issue, more of a usage question.
    When I start a new message from the Messages app, and start typing a contact name, I am presented with a list of numbers/email address for that particular contact. The issue is that the list doesn't identify which number is that person's mobile number, they all show up as available to send a Text Message to.
    I have a feeling this is just "how it is", but I wanted to pose the question to see if anyone has come up with a clever way to work around this. Here are a couple of pictures to show what I am talking about:

    Hi,
    In this area Messages is a disaster.
    The FaceTime does have a way you can move people to an Favourites List even though the initial listing is from the Contacts App.
    Messages does not have this.
    Once you have connected to someone the valid iMessages contact in the drop down gets a blue speech bubble indicator.
    I have noticed now though that other (non iMessages ones) are being listed as potential "text" ones even though they have not been used and do not have the green indicator for SMS chats.  This does mean my Land Line is lists as a Text potential item at the moment where it used to be an iMessages Potential one in the past.
    Whilst I did set up Contacts with a Group called "Regulars" I have found no way to have that show first in the Blue + icon selection method (far right after starting a New Messages) It can then be selected. It cannot be used as an option in the "To" spot drop down though.
    The "Buddies" option just list those from the Buddy List accounts you have without distinguishing between Off Line and Available Buddies very well (they are marked in Green, red and Amber and then nothing.  They are also doubled up if a person is in two or more Buddy lists if they have AIM and Jabber IDs for example.)
    The group in the Contacts App is the closet to the FaceTime Favourites I have achieved.
    However the cards added here may still show multiple telephone numbers such as Mobile the works and home Land Lines  (only a partial move to what your want).
    Of course it could be worse...
    10 Logged in Accounts in addition to iMessages listed on at least three Contacts Cards (for three Computers) with some not linked to Address Card/Computers but basically listing all the workable connections between them.
    I have not found a good work around for listing just the numbers you want.
    8:42 pm      Wednesday; January 14, 2015
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • Hi.  how do I change the phone number on Messages on my macbook pro?, Hi.  how do I change the phone number on Messages on my macbook pro?

    Hey how do I change the phone # for my Macbook pro for messaging?

    Hi crupperdk!
    This behavior is activated by having your Apple ID used in iMessage on a phone. Here is an article with more information about this:
    iOS: Using Messages
    https://support.apple.com/kb/HT3529
    How can I use my iPhone telephone number with iMessage on my iPad, iPod touch, or Messages for Mac?
    You can link your iPhone telephone number to your Apple ID for use on your iPad, iPod touch, or Messages for Mac by signing into iMessage with your Apple ID in Settings > Messages. Then sign in to the other device with the same Apple ID in these locations:
    iPad and iPod touch: sign in to iMessage in Settings > Messages.
    Messages for Mac: sign in to iMessage in Messages > Preferences > Accounts.
    Linking your iPhone telephone number with iMessage is not available for the iPad (1st generation) and iPod touch (3rd generation).
    Follow these steps for more information or if you are experiencing difficulties linking your iPhone telephone number to your Apple ID.
    If an unknown device registers with your Apple ID and you did not initiate that registration, you can reset your Apple ID password to remove it. You will then need to enter this new password on all devices using iMessage or FaceTime.
    Take care, and thanks for visiting the Apple Support Communities.
    Cheers,
    Braden

  • How do I find the phone number for messaging?

    Where and how do I find out my phone number for messaging with my itouch?

    There is no phone # associated with your iPod Touch for use with iMessage.  It actually uses your Apple ID email address instead. To view this email address, head to Settings -> iMessage -> Receive At.
    B-rock

  • How do I increase the maximum number of list items in the Step Type Menu Editor?

    I am trying to create a lot of custom steps and have reached the point where they no longer appear in the "Insert Step" menu. Message reads "Max Menu Items Reached". Is there a way to increase this maximum?

    Hi,
    You have hit the same problem as I.
    Unfortunately you wont beable to easy resolve this unless you are using TestStand 3.0.
    see here for answer:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000A98C0000&UCATEGORY_0=_8_&UCATEGORY_S=0
    Using TestStand 3.0 the problem goes away as it is capable of handling more than the 256 step types.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • ICCMP_BP_SEARCH. Increasing the maximum number of search hits from default

    Hi,
    ICCMP_BP_SEARCH use for search partners.
    How I can increase the maximum number of search hits? By default is 100.
    I know about parameter SEARCH_MAX_HITS, but this not applicable for this situation.
    Denis.

    Hi Denis,
    You can increase it at your identification profile (t-code crmc_ic_bpprofx), at parameter 'Max. Number of Hits'.
    Kind regards,
    Garcia

Maybe you are looking for

  • Can no longer send or receive messages on Mac from non-Apple product users

    After installing Yosemite, I was able to send and receive messages to contacts who use Android devices, but that stopped a week ago.  Anyone else having this problem?

  • Dynamic column selection while running report

    Can any one explain how to get the following functionality in report: I have a cube with following fields:(with depriciaated amounts) Plant  Mat#  Fiscper       Jan   Feb  March April  May   June   July   Aug   Sep   Oct   Nov   Dec ==== ====    ====

  • WRT54G Problem

    I've got a WRT54G v2, however, I've got some problem of it when due with ftp service. I've set the ftp service at my wireless router and it works fine. However, after a period of time, the ftp service is unable to connect, even I reset the router or

  • How to show scorecard indicators Description on SharePoint PPSDashboard

    Hi, I have SharePoint dashboard which has one score card with one indicator with 3 levels "Off Target, Slightly Off Target ,On Target". But the end user does not know the value of each levels. So how should i show that in dashboard. If i would show t

  • Toshiba PX1267E-1G32 External HD Problem

    Hi all. I've had a Toshiba PX1267E-1G32 External HD for awhile now and its fantastic. I normally run it on Windows XP, and recently, I've started using Windows 7. When I plug the External HD in, the password box pops up, I enter the password, It stat