Restrict the number of processed messages in a time interval

Hi experts,
i have one problem to solve.
Is there a possibility to restrict the number of processed messages in single stack java pi 7.3 in some time intervals?
My problem is, that i have to restrict the messages from being sent only from 8:00 to 18:00 and there are restricted numbers that i can send in 15 minutes.
For example 2000 messages can be sent in 15 minutes, if more messages arive, they should be queued and be processed in the next 15 minutes.
Thank you in advance.
Richard

You're right in thinking that the behaviour you describe looks wrong.
Take a look at the QueueBrowser interface which can be used to inspect a queue. You get one using QueueSession.createBrowser(Queue). The QueueBrowser allows you to scan a queue without consuming the messages. However note that the state of the queue may change while you're observing it through the QueueBrowser so what you see might not always be a 100% accurate representation of the queue at any given time.
Other things to check:
- message selectors - are you setting a message selector on your queue receiver which is resulting in not all of the messages 'matching'.
- expired messages - are you setting a time-to-live on the messages that you publish.
Hope this helps,
David Ingham
http://www.arjuna.com

Similar Messages

  • How to restrict the number of error messages appearing in af:messages

    Hii all....
    Ihave customized the error messages which are produced when a constraint in a database are voilated using the following links
    http://download-west.oracle.com/docs/cd/B32110_01/web.1013/b25947/web_val.htm#CIHJBIDJ
    and by overriding the ListResourceBundle using the following link:http://one-size-doesnt-fit-all.blogspot.com/2007/05/dont-constrain-yourself-displaying.html
    Now my problem is say, when a primary key is voilated i get repeated error messages and some unwanted error messages like 2,4(which are again repeated) as show below:
    1.Empno - Employee Already Exists!!!
    2.Empno - Attribute Empno in AppModule.EmpVO1 is required
    3.Empno - Employee Already Exists!!!
    4.Empno - Attribute Empno in AppModule.EmpVO1 is required
    Now, i want the user to only see error numbered 1 and rest 2,3,4 should not be displayed on the screen ......plzzz knidly help me.

    Hi,
    In your ErrorHandler, override the method getDisplayMessage and in it add whatever message you'd like. Something like this:
        @Override
        public String getDisplayMessage(BindingContext bindingContext, Exception exception) {
            FacesContext fctx = FacesContext.getCurrentInstance();
            Iterator<FacesMessage> iterator = fctx.getMessages();
            if (exception instanceof JboException) {
                // do something (or nothing)
            } else if (exception instanceof UniqueNameException) {
                // add some message
                if (!iterator.hasNext()) fctx.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "", "This is an UniqueNameException!");
            return null;
    {code}
    You can also try add some code to manipulate the iterator and remove all the messages, and then add only the one you want the user to see.
    Pedja                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Is there a way to control the number of consumed messages from JMS?

    Hi everyone,
    I have a BPEL process that is consumes messages from a foreign queue, performs a transformation, and passes it to Oracle Apps. I'm curious if there is a way to control the number of messages consumed at a time for processing.
    For example, if we place 50 transactions on this queue, I would like to only consume 10. And then as each one is processed and passed to Oracle Apps, I would like to pull another transaction off the queue. So basically I would only be processing 10 at the most.
    The issue I am having is we put 50 on the queue and the 50 are take off right away. But then half are making it into Oracle Apps and the remainder is failing with a JCA Connection Factory max connection error.
    Instead of changing the settings to get more through, I am wondering if it's possible to limit the number being processes at any one time.
    Thanks

    Hi,
    Have a look at the adapter.jms.receive.threads Property for JMS Adapter...
    http://docs.oracle.com/cd/E21764_01/core.1111/e10108/adapters.htm#BABCGCEC
    Cheers,
    Vlad

  • How to restrict the number of items in Sales Contract - QCTR

    Hi,
    Is there any standard way or BADI exit to restrict the number of items  in the Sales Contract?(QCTR). I want to restrict number of items in the Sales Contract. Ex - Contract A - Max of 10 ITems(Materials); Contract B - Max of 20 Items(Materials).
    Thanks in advance.,
    Robin

    you can use ORDER_SAVE badi and check before method you can use CRM_ORDER_READ FM and count line items , if count is more than allowed number you can raise RAISE DONOTSAVE exception and issue a message to user. hope it helps you.

  • How long does the number porting process take?

    Hello Everybody! I just got my iphone (witch I LOVE it by the way) but I was wondering, how long does the number porting process take?
    I ported my phone number over from SprintPCS last night at around 7pm EST and right now it's 8am EST and my Palm seems to still be working... Is this normal?
    I'm still receiving incoming calls to my Palm, Text messages to my Palm, but yet I can do outgoing calls from my iphone... I'm kinda confused...
    I mean I received the text on my iphone from sprint telling me: "Welcome to AT&T" as well as receiving the e-mail saying my new phone number is the same one I've had for 6 years now... Is 13 hours considered normal?
    Thanx! :-D

    QueenYvette,
    If it continues to be an issue tomorrow, I would recomend calling again, and getting in contact with AT&T's porting department. They are familiar with resolving any issues that may arise.
    Powering off both phones is to make sure that the old phone is not maintaining an active connection with the old carrier that can interfere with the last steps of the porting process. If at all possible its a good idea to leave the old phone powered off, and restart the new phone about once an hour so that it will resync with the towers.
    Hope this helps,
    Nathan C.

  • How to restrict the Number of attachments

    Hi All,
    I would like to restrict the Number of Attachments,
    I found many threads on how to restrict the size on the attachments.
    Is there any standard way(profile or setup) to restrict the number of attachments
    Other Option is
    When the user try to add attachments, I need to get the Entity, PRIMARY key and
    query FND_ATTACHED_DOCUMENTS count and through an error message.
    Not sure how easy it is.
    If anybody tried this requirement please share the logic to achieve the same.
    Thanks,
    With Regards,
    Kali.

    Hi All,
    I have achieved using the below logic, in the ProcessFormRequest,
    String eventParam = pageContext.getParameter(EVENT_PARAM);
    if("oaAddAttachment".equals(eventParam))
    String pkValue = pageContext.getParameter("PKEYID");
    String attachmentCountQry = "SELECT count(*) FROM fnd_attached_documents WHERE entity_name = <EONAME> AND pk1_value = "+pkValue ;
    //Execute the query and get the count,
    int attachmentsCountInt = executeQuery(attachmentCountQry );
    if(attachmentsCountInt >=2)
    throw new OAException("Add only 2 attachments");
    With Regards,
    Kali.

  • How to find the number of pending messages in a Queue

    All,
    Is there a way to find the number of pending messages in a given QUEUE to be picked by the queue reader?
    My reader is not picking all the messages as many sent by my writer, i am not sure where they are getting lost? or if the JMS implementation is buffering them and does not flush until it does not have enough to throw out ( which any way does not make sense!!).
    Please help.
    Chandra

    You're right in thinking that the behaviour you describe looks wrong.
    Take a look at the QueueBrowser interface which can be used to inspect a queue. You get one using QueueSession.createBrowser(Queue). The QueueBrowser allows you to scan a queue without consuming the messages. However note that the state of the queue may change while you're observing it through the QueueBrowser so what you see might not always be a 100% accurate representation of the queue at any given time.
    Other things to check:
    - message selectors - are you setting a message selector on your queue receiver which is resulting in not all of the messages 'matching'.
    - expired messages - are you setting a time-to-live on the messages that you publish.
    Hope this helps,
    David Ingham
    http://www.arjuna.com

  • How to restrict the Number of sales orders in theTCode:VL10A whil creation

    I'm creating the Delivery by using the batch job with program: RVV50R10C Here I need to restrict the number of sales orders numbers while creating deliveries for sales orders
    Like system should pick the sales orders (sales documents) from 1 to 100 OR 100 to 200
    Please advise me how to do it and what changes I need to do it

    Hi,
    Aslo, you can see Note 198137 - VL10: Customer-specific enhancements / user exits. As is for SO, check subroutine LV50R_VIEWG03. If cf_subrc = 1 thin this SO isn't seen in list.
    ***INCLUDE LV50R_VIEWG03 .
    *&      Form  POSTAB_VEPVG_FILL_USER
    FORM POSTAB_VEPVG_FILL_USER
         USING    IX_LIST_PROFIL    TYPE      SHP_VL10_LIST_PROFIL
                  IX_PARAMETERS     TYPE      SHP_VL10_PARAMETERS
                  IX_SELECT_OPTIONS TYPE      SHP_VL10_SELECT_OPTIONS
                  IT_ENQUEUE        TYPE      SHP_VL10_PACKAGE_T
                  IX_SD_ORDER       TYPE      SHP_VL10_SD_ORDER
                  IS_VEPVG          TYPE      VEPVG
         CHANGING CS_POSTAB         TYPE      SHP_VL10_ITEM
                  CF_SUBRC          TYPE      SYSUBRC.
    CF_SUBRC = 0.
    *  cs_postab-zzfield = ......              "add new field to List
    *  if xxxxxxx = yyyyyyy.
    *    cf_subrc = 1.                         "Exclude this index from List
    *  endif.
    ENDFORM.                    " POSTAB_VEPVG_FILL_USER
    I hope this helps you
    Regards
    Eduardo

  • Alert about the loading time & Restrict the number of the rows retrieved

    Hi everybody, maybe the question is stupid, but I didn't find yet an answer...
    I'm using BIP 10.1.3.4.1
    Because I have many reports with a huge amount of data to display (in HTML format) and customers once clicked on "View" have to wait a lot of time, they asked me if there is the possibility to do the following things:
    1. restrict the number of the rows retrieved (this for each report); this request has to be dynamic (different rows' number for each report and for each user); so, I can't modify the query into the data template in order to retrieve a fixed number of rows;
    2. show an alert who says for example " The data loading will take 5 minutes. Do you want to proceed ? YES - NO" This to inform the users how much time they have to wait if they click on Yes.
    I checked under the Administrator TAB...but I didn't find nothing "native" about the two questions above.....
    So, I ask you if there is a way to activate these features (if they exist "native") or a workaround to implement what I described above.
    Any help will be appreciated.
    Thanks in advance
    Alex

    Hi Vetsrini, thanks for your answer.....but what does it mean ? There are no solutions for my requests ? I remember that Discoverer had the possibility to have an alert as I would like to have with BI Publisher and there was the possibility to choose how many rows it was required from the customer....Is it possible that with BIP is not applicable ?
    Have a good day
    Alex

  • To restrict the number of characters in the Paragraph text box

    Hi Experts,
              I have created a custom container on my screen using module pool programming.
    Here I need to restrict the number of characters to be entered to 250.
             Please tell me how to restrict the number of characters.
    Sharon

    Hi Rich,
    I'm also facing the same problem; when i'm trying to use this method LIMIT_TEXT than i'm getting error saying that this method is protected or private. Please let me know how to access the protected method in this case. Code pertaining to this will be very helpful.
    Thanks & Regards,
    Megha

  • How to restrict the number of Records into the Table?

    Is there any way that I can restrict the number of records can be entered into the table?
    For example I have created a table TAB1 with size category 0( zero).
    User dont want to enter more than 100 values, How to restrict the number entries? Whether Basis can do it?
    Regards,
    Prathap

    Hi Prathap,
    You can write a code in table maintenance events to restrict the number of Records added into the Table to constant.
    Solution:
    Se11 -> enter table name (TAB1) -> F6 -> Utlities -> Table maint. generator -> Envirnment -> modification -> events -> write here the form routine name.
    Double click on routine name. You will get into include section of the code. Write here code like:
    IF current_rec_num > 100.
       messgae error 'Entry restriceted to 100'
    ENDIF.
    Somewhat this way you can achieve your target.
    Regards,
    Sachin

  • TS3899 how do i control or limit the number of email messages in my inbox?

    how do i control or limit the number of email messages in my inbox? i used to be able to pick the number of emails on my phone 100, 500, 1000, or 1500 etc. now all my (new inbox) emails are  coming to me at once. how can i control it? i have went through my entire phone and i cant find way to filter??? HELP

    That function was removed in iOS 7.

  • HT201320 How do I change the number of email messages I can view in the new iOS.

    I have the new IOS on my phone and can't find the setting that allows me to change the number of email messages I can view. Anyone know?

    You should have 200 undos, and can verify this in the bottom left flyout >> show >> number of undos (this show shows many undos you have cahced, not your max amount, will max out at 200)
    You can try changing the 200 in the illustrator preferences, by using a text editor, saving and then booting illustrator. Not sure this is a great idea, as 200 should be plenty, but let us know your results if you try.
    /undoDepth 5
    /maxUndoDepth 200
    Older versions of Illustrator let you change this in the preferences, but they must have decied that hitting CMD Z more than 200 times is not a good way to spend your afternoon.

  • How can I restrict the number of emails in iOS 7?

    In the previous versions of iOS you could indicate how much emails you wanted to store on your iPhone. Now in iOS 7 that option is gone.
    I don't want to clogg my iPhone whit all my emails.
    What can I do to restrict the number of emails?

    Other than changing to an IMAP or Exchange account, you can't. The feature you're referring to was removed in iOS 7.0.

  • How can I get the number of missed messages to pop up on my message icon like the would if i missed a call

    How can I get the number of missed messages to pop up on my message icon like the would if i missed a call

    Hi,
    Go to Settings>Notifications Center>Messages, and make sure the Badge App Icon is turned ON.
    Cheers,
    GB

Maybe you are looking for

  • Automatic date update in Pages for iPad

    I want the date (date feild?) in a Pages for iPad letter template to update automatically (using the system date, like other word process application) but cannot see how to do this. This automatic date update appears to work in the Pages for iPad tem

  • DataSource for FBL5N - Customer Line Items

    Hello, Could someone please let me know if there is any Business Content DataSource existing for fetching data from FI transaction - FBL5N for Customer Line Items? Many thanks. Regards, Sri.

  • #unavailable on User defined variables in WEBI  using BEX (BO 4.0)

    Hi Experts, I am using Business Objects 4.0 SP2   with SAP BEX. I am using WebI and from WebI I direcltly connect to BEX connection and pull the report. I have a field in which i need to do like this if the value of a is between 1 to 5 then the resul

  • Home page...its purpose

    Folks, What is the purpose of a home page? If the answer is dependent on whether once uses tabs or a navigation list. Let me state that in this case its tabs. For a nav list. I think page 1 is where the nav list would go? However with tabs I am not s

  • How to fix Firefox when stops loading content

    Firefox has become virtually unusable for me. After a little bit of use, the program just refuses to load new content. I don't know what the issue is that's causing it but I've done everything I can to try to fix it: "Reset" Firefox in the Help area