How to read the number of pending and delivered messages from a Queue

Hi
          Can anyone please tell me that how to peek through a queue to get the total number of messages pending and number of messages delivered from a Queue.
          I just have to peek through the queue and I do not want to process the messages.
          Any code snippet or guidance would be of great help.
          Thanks
          Raj

Use WebLogic's JMX/mbean management APIs directly, or tools that access these APIs such as the weblogic console, the WLST scripting language, or the weblogic.Admin command line. There are JMX examples on dev2dev.bea.com (including a program called JMSStats.java).
          For programming convenience, JMS provides a helper method to get the destination runtime stat mbean:
          weblogic.jms.extensions.JMSHelper#getJMSDestinationRuntimeMBean()
          Tom, BEA

Similar Messages

  • How to change the number im using on my messages?

    how to change the number im using on my messages?

    If you are asking about the telephone number, Messages/Preferences/Accounts/Messages account - click add e-mail and enter it.

  • How do you transfer pictures,video's and text messages from iphone 4 to the new model

    How do you transfer pictures,video's and text messages from iphone 4 to the new model?

    http://support.apple.com/kb/ht2109

  • 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 count the number of Fridays and Saturdays between two dates

    Hi every one ... If we want to count the number of Fridays and Saturdays between two dates, how would we do that ? !
    Dates are ( 11-Feb-2010) to (19-May-2010)
    how to do it in SQL
    Edited by: khalidoracleit on Jul 28, 2010 5:51 AM

    some nice coding here, I'm still amazed with what some people can do with "connect by". But I agree with some statements here that this can take "time", and to be honest, it's funny to see it working, but if you do not have a computer, just a calendar and some paper, would you go for "counting" so there must be a better solution?
    The best working math in here is done by Aketi Jyuuzou, who writes so good English that I wonder why he still insists that he doesn't ;-)
    Anyhow I "translated" that code to English, and I really like that math. Math is math and data is data.
    ALTER SESSION SET NLS_DATE_LANGUAGE='ENGLISH';
    WITH my_dates AS (
    SELECT to_date('20100211','yyyymmdd') start_date,to_date('20100519','yyyymmdd') end_date FROM DUAL
    UNION ALL
    SELECT to_date('20100211','yyyymmdd') start_date,to_date('20100214','yyyymmdd') end_date FROM DUAL
    UNION ALL
    SELECT to_date('20100211','yyyymmdd') start_date,to_date('20100213','yyyymmdd') end_date FROM DUAL
    UNION ALL
    SELECT to_date('20100211','yyyymmdd') start_date,to_date('20100212','yyyymmdd') end_date FROM DUAL
    SELECT to_char(start_date,'DD.MM.YYYY') start_date,to_char(end_date,'DD.MM.YYYY') end_date,
           to_char(start_date,'DAY') start_weekday,to_char(end_date,'DAY') end_weekday,
           end_date-start_date day_difference,
           (next_day(end_date,'FRIDAY')-7
           -next_day(start_date -1,'FRIDAY'))/7+1
           +(next_day(end_date,'SATURDAY')-7
           -next_day(start_date -1,'SATURDAY'))/7+1 as count_of_fr_and_sat
    FROM my_dates;
    START_DATE END_DATE   START_WEEKDAY                        END_WEEKDAY                          DAY_DIFFERENCE         COUNT_OF_FR_AND_SAT   
    11.02.2010 19.05.2010 THURSDAY                             WEDNESDAY                            97                     28                    
    11.02.2010 14.02.2010 THURSDAY                             SUNDAY                               3                      2                     
    11.02.2010 13.02.2010 THURSDAY                             SATURDAY                             2                      2                     
    11.02.2010 12.02.2010 THURSDAY                             FRIDAY                               1                      1                      -- andy

  • How to count the number of dirty and clean block

    i want to count the number of dirty and clean block.
    because i want to know which datablock is updated.

    I dont think it is possible to count the no. of dirty and clean blocks. But we can understand the implications of intelligent calculation by understanding when the blocks are marked dirty and clean.
    Here are few cases.
    There are four definable circumstances under which datablocks are marked dirty, thereby making them eligible for calculation on the next round using intelligent calc.
    1. Input Data: Any block created from a data load or lock & send is automatically marked dirty when created.
    2. Modified Data: Any block for whom a data cell has been modified is marked dirty and therefore eligible for calculation using intelligent calc on the next calculation round.
    3. Ancestors Of Condition 1 & 2
    4. Restructure The Database: Blocks changes as a result of outline changes potentially become dirty.
    There are three definable circumstances under which Intelligent Calc operates, thereby marking blocks clean.
    1. Calc Dim On All Dimensions: When you execute a calc script which contains a CALC ALL statement or CALC DIM statement whose arguments include all dimensions.
    2. Set ClearUpdateStatus After: SET CLEARUPDATESTATUS AFTER is a calc script command that will engage Intelligent Calc for any calc script regardless of construction.You typically use this command where you cannot meet the conditions in 1 above for a Calc Dim on all dimensions.
    3. Set ClearUpdateStatus Only: SET CLEARUPDATESTATUS ONLY is a calc script command that does not calculate. When included in a calc script, this command only
    marks dirty blocks clean. That's all.

  • How to read the J2EE server hostname and port programmatically

    Is there any API to read the J2EE server host and port programmatically? I am looking for the hostname where the components are deployed so that I can append the wsdl path to the server and create an URL.

    Hi Larry,
    there is a standard J2EE Servlet API  for your case.
    In a servlet or jsp file you can get the host and prot from the request object.
    For example in a JSP file :
    request.getScheme();
      request.getServerName()
        request.getServerPort()
    You can check the whole API here :
    http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/ServletRequest.html#getServerName()
    Bets Regards
    Bojidar

  • How to find the number of users  connected to database from OS level(Linux)

    Hi All,
    Could anyone know , how to find the number of users connected to database without connecting with sql*plus
    is there any command to find it?
    example we have 10 databases in one server, how to find the number of users connected to particular database without connecting to database(v$session)?
    oracle version:- 10g,11g
    Operating System:- OEL4/OEL5/AIX/Solaris
    any help will be appreciated.
    Thanks in advance.
    Thank you.
    Regards,
    Rajesh.

    Excellent.
    Tested, works as long as you set the ORACLE_SID first ( to change databases )
    ps -ef | grep $ORACLE_SID | grep "LOCAL=NO" | awk '{print $2}' | wc -l
    Thanks!
    select OSUSER
        from V$SESSION
    where AUDSID = SYS_CONTEXT('userenv','sessionid')
        and rownum=1;Best Regards
    mseberg

  • How to read the gain list of a DAQ card from labview?

    Hi,
    Its known that you can set the gain of an ADC of a DAQ card by setting the high and low values.
    Different cards have got different signal ranges corresponding to different gains.
    My question is ... Is it possible to read the gain list of a DAQ card from labview?
    It is definitely possible to read the signal ranges available for the device. It would be very helpful if some one can tell me the method to read the gains corresponding to the signal ranges.
    (Even the device specification provides only the signal range but not the gain corrsponding to it )
    Thanks
    Message Edited by Vsh on 04-08-2008 03:50 AM

    Hi Vsh,
    It appears that you have found the gains applied for the various ranges (I assume from the user manuals).  So if I understand your question correctly, you are looking to poll the card for the current gain (or the various gains available)
    Because DAQmx selects this for you (unlike Traditional DAQ), there is not a way to poll directly. If you want, you could poll the min/max values and then use this to figure out the range setting (and thus the gain).
    Please refer to this post, it gives more information about the gains/ranges in general.
    I would suggest putting in a product suggestion if you would like this feature.  Those go into the decision making process for our R&D team, meaning they actually do look at them.  If you wish, I can submit a suggestion internally was well for you, that way your suggestion gets 2x the exposure.  Let me know if you want me to do this.
    Neal M.Applications Engineering       National Instruments        www.ni.com/support

  • How to Read the Timestamp of a File on Unix from Form?

    If you have a file located on UNIX operating, what is the best way to read the time stamp (the date that file has been created) of that file from Oracle SQL, SQL*plus, or Developer Forms 6i/9i/10g?

    Thanks Robin for the reply! Your suggestion seems to be good!
    However, We found a solution now! I would like to share with you the way we did, in case anyone out there need the solution:
    In SQL*Plus, we created a Java Source below:
    CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "FileDate"
    AS
    import java.io.File;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    public class FileDate {
    public static String GetDate(String strFilePath) {
    String ReturnValue = null;
    if (strFilePath == null || strFilePath.length()==0)
    // do nothing
    else
    File aFile = new File(strFilePath);
    if (aFile.exists())
    long lngTime = aFile.lastModified();
    Date aDate = new Date(lngTime);
    SimpleDateFormat fmtDate =
    new SimpleDateFormat("dd-MM-yyyy HH:mm:ss");
    ReturnValue = fmtDate.format(aDate);
    fmtDate = null;
    aDate = null;
    aFile = null;
    return ReturnValue;
    -- Then we created a wrapper to call the Compiled Java above:
    CREATE or REPLACE FUNCTION FileDate_GetDate(FilePath IN STRING)
    RETURN VARCHAR2 IS
    LANGUAGE JAVA
    NAME 'FileDate.GetDate(java.lang.String) return int';
    -- Then we created a database package:
    -- Package Spec:
    PACKAGE sap_dnld AS
    FUNCTION get_file_date2 (s1 varchar2) RETURN VARCHAR2;
    END sap_dnld;
    -- Package Body:
    PACKAGE BODY sap_dnld AS
    FUNCTION get_file_date2( s1 VARCHAR2 )
    RETURN VARCHAR2 AS LANGUAGE JAVA
    NAME 'FileDate.GetDate(java.lang.String) return int';
    END sap_dnld;
    -- Then we tested the whole thing in SQL*Plus:
    set serveroutput on;
    declare
    x varchar2(2000);
    begin
    x := sap_dnld.get_file_date2;
    dbms_output.put_line(x);
    end;
    -- Then we called the function from the package using a procedure from the form:
    PROCEDURE Find_date IS
    BEGIN
    :control.file_date := sap_dnld.get_file_date2('directory1/subdirectory/filename.txt');
    END;

  • How to Read Idoc - Segment fields values and status messages

    Hi,
      I am having one requirement as i want to read the segments along with the field values and also i want to read all the status messages.
    first i read the idoc data from EDIDS and segments data from EDID4 and the staus messges from T100. but still i am not getting all the status messages.
    is there any other table which contains the information of IDOC segments and field values and also the status messages.
    Regards,
    Kumar

    You need to use
    V_MSGNO = EDIDS-STAMNO.
    CALL FUNCTION 'MESSAGE_PREPARE'
      EXPORTING
        MSG_ID   = EDIDS-STAMID
        MSG_NO   = V_MSGNO
        MSG_VAR1 = EDIDS-STAPA1
        MSG_VAR2 = EDIDS-STAPA2
        MSG_VAR3 = EDIDS-STAPA3
        MSG_VAR4 = EDIDS-STAPA4
      IMPORTING
        MSG_TEXT = V_TEXT.
    WRITE: / V_TEXT.

  • Hi how can i recover all my pic and my messages from a broken iphone

    hi

    All you can do is restore your most recent backup to another working iPhone.  The backup will include your camera roll photos and text messages (among other things).

  • How to read the status of Installation and service order for a BP

    Hi Experts,
    1. I have a business partner and i would like to know  the staus of the installation(Disconnected or connected etc.,)  existed for this business partner. For this Please provide me the tables which i can use to get the above information.
    2. I have a business partner and i would like to know the status of the service orders(open, completed etc.,) existed for this business partner. For this please provide me the tables which i can use.
    Contributions will be highly appriciated. Thanks
    Regards,
    Lakshmana.P

    Hi,
    I propose to check this thread
    List of ISU Tables
    Best regards
    Vlado

  • How to read the source code

    Hi,
    I want to know how to read the source code of web dynpro java from the source folder i.e. without loading the project in NWDS. Please answer me as soon as possible.
    Thanks & Regards,
    Aniruddha

    Hi,
    If you are using DC's then you can find the .Java files in the path
    <project Name>\_comp\gen_wdp\packages\<Pacjage>\<ComponentName>\..
    In the above path you can find the Java files of the controllers.
    Thanks,
    Raju Bonagiri

  • Report to show Number of sent and received messages

    Hi,
    We are on PI 7.1 EHP 1.
    I'm wondering if there is a way to set up a daily report that will output the number of inbound and outbound messages by message type?
    I know this can be done manually in the RWB but is there a way to automate it?
    Thanks,
    Gareth

    Yes, is possible using standard AbapStack function & tables.
    Check in SDN Forum, this is an old 3D.
    Re: Get count of the messages to particular Interface in a day and send email
    *& Report ZPI_MESSAGES_COUNT
    REPORT zpi_messages_count.
    TYPES : BEGIN OF gty_filter_t,
    ob_system TYPE ait_sndr,
    ob_name TYPE rm_oifname,
    END OF gty_filter_t.
    DATA : im_filter TYPE sxi_msg_select,
    pids TYPE sxms_sel_options,
    pid TYPE sxmsselopt,
    gt_msg TYPE sxmsmsgtab,
    gt_fil TYPE TABLE OF gty_filter_t,
    gs_fil TYPE gty_filter_t,
    gs_fil_t TYPE gty_filter_t,
    gs_msg TYPE SXMSMSGLST,
    gv_lines TYPE int4,
    cnt TYPE i.
    PARAMETERS : s_st_dat TYPE sxi_msg_select-exedate OBLIGATORY,
    s_ed_dat TYPE sxi_msg_select-exe2date OBLIGATORY,
    n_hits TYPE int4 OBLIGATORY.
    START-OF-SELECTION.
    im_filter-exedate = s_st_dat.
    im_filter-exe2date = s_ed_dat.
    pid-sign = 'E' .
    pid-option = 'EQ'.
    pid-low = 'CENTRAL_BACK'.
    APPEND pid TO pids.
    CLEAR pid.
    pid-sign = 'E' .
    pid-option = 'EQ'.
    pid-low = 'RECEIVER_BACK'.
    APPEND pid TO pids.
    CLEAR pid.
    pid-sign = 'E' .
    pid-option = 'EQ'.
    pid-low = 'SENDER_BACK'.
    APPEND pid TO pids.
    CLEAR pid.
    pid-sign = 'E' .
    pid-option = 'EQ'.
    pid-low = 'PE_ADAPTER'.
    APPEND pid TO pids.
    CLEAR pid.
    pid-sign = 'E' .
    pid-option = 'EQ'.
    pid-low = 'PE_PROCESS'.
    APPEND pid TO pids.
    CLEAR pid.
    im_filter-pids = pids.
    CALL FUNCTION 'SXMB_SELECT_MESSAGES_NEW'
    EXPORTING
    im_filter = im_filter
    im_number = n_hits
    im_adapter_or = '0'
    im_process_mode = '0'
    IMPORTING
    ex_msgtab = gt_msg
    EX_RESULT =
    EX_FIRST_TS =
    EXCEPTIONS
    persist_error = 1
    missing_parameter = 2
    negative_time_range = 3
    too_many_parameters = 4
    OTHERS = 5.
    IF sy-subrc 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    DESCRIBE TABLE gt_msg LINES gv_lines.
    SORT gt_msg BY ob_system.
    LOOP AT gt_msg INTO gs_msg.
    MOVE-CORRESPONDING gs_msg TO gs_fil.
    APPEND gs_fil TO gt_fil.
    CLEAR gs_fil.
    ENDLOOP.
    LOOP AT gt_fil INTO gs_fil.
    gs_fil_t = gs_fil.
    cnt = cnt + 1 .
    AT END OF OB_SYSTEM .
    WRITE :/ cnt, gs_fil_t-ob_name .
    CLEAR cnt.
    ENDAT.
    ENDLOOP.
    WRITE :/ gv_lines, 'Records Received'.

Maybe you are looking for

  • Why my iMac does not change picture when waking from sleep ?

    My iMac has Yosemite installed, I have tried to kill the system preferences in the library but it did not solve the problem. I restarted, PRAM, repaired system permissions, log on off, etc. and nothing, nada ! It used to work without problems, changi

  • Print to PDF from Indesign on a Mac?

    I have just switched from Windows to Mac. I am used to generating PDFs in Indesign through the print dialogue. This does not seem to be the option in Mac OSx. How do I do this?

  • Using servlet in combination with public_html subfolders

    Hi, I'm fairly new to servlet and jsp technology. Up to this point I only really used PHP for developing dynamic web content. But since I have finally been working more with Java I want to start using Java for my web needs as well. So I've started wi

  • HT3576 I cant accept the terms of service when i try to download apps

    ever since i downloaded the new update i cant download new apps it says i have to accept terms of service a 54 page post comes up and at the end there is no way to accet it and i have to cancel ot and cant download the app

  • All or nothing approach to non-Apple downloads

    I downloaded software from a site. Opening it was blocked because I did not get it from the Apple store or, apparently, through their channels. In order to run it, I have to allow my laptop to allow downloads from anywhere. I want to be able to accep