How to get the NO of MESSAGEs in a particular queue

Hi,
I would like to get the TOTAL no of messages in a queue. Any idea please
mail me at [email protected]

JMS destinations are termed as Administered Objects.
I feel that administration of Administered objects will have to be done by an Application Server administrator rather than the client code which is using the JMS service.
The Application server would have exposed an API or a JMX management console through which the details about the queue may be viewed.
--E.Sriram                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • How to get the number of messages consumed by a MDB ??

    Hi all,
    How to get the number of messages consumed by a MDB displayed in OEM in a Java Application ???
    DMS ??? what use DMS ???
    tanks

    ok.
    Well using DMS is one way to get at these sorts of stats in a programmatic manner.
    There's a Java API you can use, or you could call out to the Spy servlet to query the DMS stats in either text or XML form.
    I don't have an MDB published so I can't show you specifiically, but here's the sort of query you can use to extract the data.
    http://localhost:8888/dms0/Spy?format=raw&table=oc4j_ejb_stateless_bean&recurse=children
    Which produces a table of the TEXT form:
    <DMSDUMP version='9.0.4' timestamp='1163456821185 (Tue Nov 14 08:57:01 CST 2006)' id='8888' name='OC4J'>
    <statistics>
    /oc4j [type=n/a]
    /oc4j/default [type=oc4j_ear]
    /oc4j/default/EJBs [type=oc4j_ejb]
    /oc4j/default/EJBs/jmsrouter_ejb [type=oc4j_ejb_pkg]
    /oc4j/default/EJBs/jmsrouter_ejb/AdminMgrBean [type=oc4j_ejb_stateless_bean]
    pooled.count:     11     ops
    pooled.maxValue:     1     count
    pooled.minValue:     0     count
    pooled.value:     0     count
    ready.count:     11     ops
    ready.maxValue:     1     count
    ready.minValue:     0     count
    ready.value:     0     count
    session-type.value:     Stateless     
    transaction-type.value:     Bean     
    /oc4j/default/EJBs/jmsrouter_ejb/EnqueuerBean [type=oc4j_ejb_stateless_bean]
    pooled.count:     11     ops
    pooled.maxValue:     0     count
    pooled.minValue:     0     count
    pooled.value:     0     count
    ready.count:     11     ops
    ready.maxValue:     0     count
    ready.minValue:     0     count
    ready.value:     0     count
    session-type.value:     Stateless     
    transaction-type.value:     Bean     
    /oc4j/default/EJBs/jmsrouter_ejb/TimerHandlerBean [type=oc4j_ejb_stateless_bean]
    pooled.count:     11     ops
    pooled.maxValue:     0     count
    pooled.minValue:     0     count
    pooled.value:     0     count
    ready.count:     11     ops
    ready.maxValue:     0     count
    ready.minValue:     0     count
    ready.value:     0     count
    session-type.value:     Stateless     
    transaction-type.value:     Bean     
    </statistics>
    </DMSDUMP>
    Or produces an XML document of the form:
    http://localhost:8888/dms0/Spy?format=xml&table=oc4j_ejb_stateless_bean&recurse=children
    You can use the Spy console to find the table that contains the details for MDB and then take it from there.
    This is not what you specifically want to do, but it does provide a good overview of how DMS is used.
    http://www.oracle.com/technology/pub/notes/technote_dms.html
    -steve-

  • URGENT: how to get the database error message into application?

    Hi, pls give some idea:
    For example, the database is MS Access. When insertion failed, the getMessage() method of SQLException will print "General error", while the log file created by ODBC will be "[MICROSOFT][ODBC DRIVER]column ID no found in student table"(...just a example).
    So, how to get this message in our application?

    instead of using the getMessage method, have you tried something like this:
             try {
             } catch (Throwable t1) {
                System.out.println(t1.toString());
             }If that still doesn't work, you can always redirect the log entries into a textarea but then everything that appears in the log file will be redirected!
    ;o)
    V.V.

  • How to get the content of message in the mail body

    Hi,
    Can anyone suggest me to get the message content as the mail body using messagetTransformation bean????

    Hi
    In the Receiver Mail Adapter use these settings
    Message Protocol:XIPAYLOAD
    and tick on Use mail package.
    Gt back if you have more doubts
    Thanks

  • How to get the returned error messages in the Try/Catch block in DS 3.0?

    A customer sent me the following questions when he tried to implement custom error handling in DS 3.0. I could only find the function "smtp_to" can return the last few lines of trace or error log file but this is not what he wants. Does anyone know the answers? Thanks!
    I am trying to implement the Try/Catch for error handling, but I have
    hard time to get the return the msg from DI, so I can write it to out
    custom log table.
    Can you tell me or point me to sample code that can do this, also, can
    you tell me which tables capture these info if I want to query it from
    DI system tables

    Hi Larry,
    In Data Services XI 3.1 (GAd yesterday) we made several enhancements for our Try/Catch blocks. One of them is the additional of functions to get details on the error that was catched :
    - error_message() Returns the error message of the caught exception
    - error_number() Returns the error number of the caught exception
    - error_timestamp() Returns the timestamp of the caught exception.
    - error_context() Returns the context of the caught exception. For example, "|Session Datapreview_job|Dataflow debug_DataFlow|Transform Debug"
    In previous versions, the only thing you could do was in the mail_to function specify the number of lines you want to include from the error_log, which would send the error_log details in the body of the mail.
    Thanks,
    Ben.

  • How to get the entire MIME message from a  BodyPart?

    Hi there,
    I am new to javaMail and quite lost with its way of working.
    I have a tool that creates SMIME stuff that needs to be put into MIME envelopes. In the same time I have to manage parsing of simple MIME messages.
    My current problem is the following:
    I have a BodyPart and I am testing if it is SMIME or not (with checks on the ContentType). If it is, then I want to retrieve the entire MIME message (I mean, the the whole text stuff with the headers and the -possibly- encoded64 content) as a String or a byte[]. But I haven't found anything in BodyPart that returns such a thing (everything is about the content). There might be writeTo() but it gives need an output stream that if piped in a pipedinputstream results in a dead lock...
    Help please!!
    Lionel

    hai
    i think you can use the methods in the MimeMessage to get the headers of the message
    by using any one the following
    1) getAllHeaders() use the enumeartion concept and then get the values for the headers using the getHeader(enum.getNextElements())
    2) or use the specific methods such as
    getFrom()
    getAllRecepients()
    getContentType()
    3) getHeader(string headername)
    bye

  • How to get the connected Adapter Object for a particular BDoc Type?

    Hi All,
    I have a scenario in which CRM system is connected to ERP system.
    In SMW01 transaction, I can see one BDoc with BUS_TRANS_MSG as the BDoc Type in CRM.
    Now, how do I get to know if this one BDoc is a SALESDOCUMENT or SALESCONTRACT.
    Is there any way thorough which I can get to know the Adapter Object for this particular BDoc.
    Regards,
    Madhuri

    Hi Madhuri,
               Happy new year.
    In Transaction : R3AC1.
    You can observe the Linked BDOC for the adaptor objects. For example Sales docuemnt and Sales contrcat will have the same linked BDOC as "BUS_TRANS_MSG".
    If you see an error in SMW01, you want to find whether it is salesdocument or contract.
    1. Please take the Queue name from SMW01.
    from the queue name you can find whether it is sales contract or sales document.
    Queue name is customized in tables: SMOFQFIND.
    I hope this helps you.
    regards,
    Sri...

  • I recently thought I lost my iPhone and I erased it but now that I found it. I cannot get the this iPhone message is lost please call ********* I am out of the country my laptop is at home. I cannot access I tune. How do I fix this. I have an iPhone 4s

    I recently thought I lost my iPhone and I erased it but now that I found it. I cannot get the this iPhone message is lost please call ********* I am out of the country my laptop is at home. I cannot access I tune. How do I fix this. I need to get it back on so I can face time with my family. The phone says 3G but it keeps saying on list mode. I signed on icloud and removed it from the account and nothing. Please help!

    If you removed the device from your iCloud account rather than using the "Stop Lost Mode" option, then you will most certainly need to restore the iPhone, and that will require a computer running iTunes.
    http://support.apple.com/kb/HT1414
    Regards.

  • While my friend was setting up his iphone, i used my icloud. So now, when i send him a message i get the exact same message from myself. How do i fix this?

    While my friend was setting up his iphone because i had recently updated it for him he needed a itunes account to use for "bump" so i could transfer his contacts back. So i used my itunes and icloud account to sign in so he could download that because he didnt have any of those accounts. So when i logged in he was basically me, my name was his phones name aswell. Well i used "bump" his name was the same as mine. I got the contacts to work but now every time i send him a text message, (imessage) i get the exact same message from myself. How to i unverify him off of my icloud so i can be the only one using it?

    The fact that the problem only occurs when iphones are texting you leads me to think that iMessage may be the culprit. The fact that it is only iphones using SPRINT however is weird. Try turning imessage off on both yours and your sons phones to see if the problem persists. If it does, it may be a carrier problem.

  • How do I get the number of messages shown in the current MessageArea

    Hi there,
    I try to display the messages at the top of the screen in a MessageArea inside a scrollable Container which shows only one message to save space.
    In case that there are more than one message I would like to show a hint, that there are more than the displayed message.
    Is there an possiblity to get the count of messages shown in the current MessageArea? I already tried to get the MessageArea and had a look at the properties of the object: No Luck
    Afterwards I got the MessageManager but there was no apropriate method

    Hi ,
    Looks like there is no such an API !!! How about implementing on our own
    Take a int variable or valueAttribute "count" and increment the count after calling reportwarning or reportsuccess methods on the MessageManager.
    This will give count of the exceptions that you are handling in your code.
    @All, Correct me if there is such an API exists
    Regards, Anilkumar
    Message was edited by:
            Anilkumar Vippagunta

  • HT1766 At the end of a synch I am getting the following error message "iTunes could not back up the iPod because the backup could not be saved on the computer".  Any ideas on how to resolve?

    At the end of a synch I am getting the following error message "iTunes could not back up the iPod because the backup could not be saved on the computer".  Any ideas on how to resolve?

    See:
    iOS: Troubleshooting backup issues in iTunes
    Try going to iTunes>Preferences>Devices and delete the existing backup so iTunes creates an entire new one vice changing the existing one.

  • I get the -1 error message when i have tried to restore my iphone, the phone will no longer work how can i rectify this?

    I have tried to restore my iPhone but when it has gone through all the restore I get the -1 error message and now my phone will not work at all, how do I rectify this please.

    Error 1 or -1
    This may indicate a hardware issue with your device. Follow Troubleshooting security software issues, and restore your device on a different known-good computer. If the errors persist on another computer, the device may need service.

  • Can no longer access blueyonder emails on iphone.I get the following error message: The mail server 'imap4.blueyonder.co.uk is not responding', how do I fix pls?

    Hi there
    As I've mentioned above, I can't seem to access my emails from my blueyonder account on my iphone. When I first set up my account on the phone, I had no problems at all receiving emails. Then recently, just out of the blue I get the following error message: 'Cannot Get Mail, The Mail Server 'imap4.blueyonder.co.uk' is not responding.  Verfiy that you have entered the correct account info in mail settings.  I definitely have the right settings, I even checked with Virgin but they are not able to assist with my problem. Has anyone else experienced this problem, if so,how did you fix it? If you could explain in simple terms as I'm not tech savvy!
    Many thanks!

    http://www.apple.com/uk/support/iphone/mail/
    work through this

  • I am trying to reinstall itunes 10.5 and am getting the following error message. An error occurred during the installation of assembly "Microsoft.VC80.CRT.type="win32".version="8.0.50727.6195".publicKey Token="1fc8b3b9a1e18e3b"Anyone know how to fix this?

    i am trying to reinstall itunes 10.5 and am getting the following error message.
    An error occurred during the installation of assembly “Microsoft.VC80.CRT.type=”win32”.version=”8.0.50727.6195”.publicKeyToken=”1fc8b 3b9a1e18e3b”.processorArchitecture=”x86””. Please refer to Help and Support for more information. HRESULT:0X800736B3.
    Anyone know how to fix this?

    same problem. tried the ff fixes from microsoft but no joy
    http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_programs/gett ing-error-message-an-error-occurred-during-the/10122022-2d88-4266-a695-6c6ddeafd 019?tab=AllReplies&page=1
    http://answers.microsoft.com/en-us/windows/forum/windows_vista-windows_programs/ windows-vista-unable-to-install-itunes-an-error/19b48df7-54c8-47f3-8854-d34118fa a79a
    http://support.microsoft.com/mats/system_maintenance_for_windows/en-us
    other ideas would be appreciated.
    cheers

  • How to get the java code of the message mapping

    how to get the java code of the message mapping,
    I mean to ask how to get the background java code of the message mapping(graphical mapping).
    And where to view it?

    Hi Satya,
    The JAVA code for graphical msg mapping is in below folder:
    \usr\sap\<SID>\<DVEBMGS10>\j2ee\cluster\server0\temp\classpath_resolver
    Here all the mapping jars are there in this folder.
    Just decompile these jars and you can see the code.
    Thanks,
    Rajeev Gupta
    Message was edited by:
            RAJEEV GUPTA

Maybe you are looking for

  • In need of a Mighty Mouse Track Ball

    Something small and hard, fell in the mouse track ball area and while i was pressing it (upside down) on a piece of paper to clean it, that little hard piece of dust, carved the surface of my track ball making it unable to scroll without jumping arou

  • Need Preloader for FLVplayback Component

    Hi, I'm playing external .flv videos using the 'FLVplayback' component. My client's complaining that they stall and stutter a bit when they start to stream, and wants to know if I can create a preloader for them. Can anyone help or point me in the ri

  • HT5527 stored in the cloud? how do I get in there?

    How do I find out what of mine is being stored in the cloud? How do i access the cloud to see what I have stored - it seems I have 6.3 GB stored and 5 GB of free storage and dont know if need to increase or delete what is being stored - thanks

  • Clone&Test tool availability for 4.6C HCM systems

    Hi Experts! We are about to migrate the personnel masterfile from a 4.6C standalone HCM system into the companie's central ECC 6.0 system. To get rid of the problem with the collision of personnel numbers (numbers from the 4.6C system are already exi

  • HI, when i now hook up my A510 camera to the computer, the scan to printer page does not show

    My A510 camera does not come up on my computer so I can save and print.