How To list Total Number Of Message in specific queue
Hi All,
Message queue
How to list total number of message in specific queue using wlst command
Edited by: 666666 on Mar 8, 2012 4:42 AM
You might have better luck posting this one on the JMS forum....
Similar Messages
-
How to list total number of message in specific Topic/queue using wlst comm
Hi All,
Message queue
How to list total number of message in specific Topic/queue using wlst commandaaaah sorry, I didn't notice you were looking for a SPECIFIC topic, bad me
then do something like
<pre>
connect('weblogic','weblogic','t3://localhost:8001')
servers = domainRuntimeService.getServerRuntimes();
if (len(servers) > 0):
for server in servers:
jmsRuntime = server.getJMSRuntime();
jmsServers = jmsRuntime.getJMSServers();
for jmsServer in jmsServers:
destinations = jmsServer.getDestinations();
for destination in destinations:
if destination.getName() == 'YOURQUEUE':
print "Destination ", destination.getName(), " MessageCount ", destination.getMessagesCurrentCount()
</pre>
of course performance-wise this is a terrible script because you loop on all destinations, I am sure there is a way to lookup a specific destination, but I am too lazy to investigate.... -
How to determine the number of messages in a queue, that ...
Hi,
what's the proper way to count the number of the messages in an Advanced Queue that are currently visible to consumers?
Currently we use:
select count(*) from aq$queue_tab_name q where q.QUEUE = 'Q_NAME';
The problem with that approach:
If one consumer dequeues a lot of messages in one transaction, that change in the number of messages visible to other consumers is only made visible after the consumer issues a commit. Before the commit is issued, the above "select count(*) ..." statement (issued from a different DB-session) does not reflect the fact that one consumer consumed a lot of messages, messages that are not available to other consumers anymore (only exception: the original consumer issues a rollback sooner or later).
So before the commit is issued:
-the consumed messages are NOT visible to other consumers anymore (which is intended behaviour)
-but the "select count(*) ..." statement (issued from a different DB session) does NOT reflect that fact
So the case could arise that the queue becomes empty, while "select count(*) ..." says that e.g. 1000 messages are still in the queue.
Is there a solution to this problem?
PS: For our use-case we need these dequeue option :
dbms_aq.remove;
dbms_aq.first_message;
dbms_aq.on_commit;
Again, the queue itself works correctly, I just need to find a way to determine the number messages that are currently dequeable / visible to the consumers at specific point in time.
I couldn't find a func/proc in dbms_aq for that purpose.
Best wishes
PeterThe following might be of interest in better understanding the issue you are facing in a broader context:
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:5771117722373 -
How do i find the number of messages in a queue
Sorry if this is too trivial, but i haven't been able to figure out how to determine the number of messages in a queue. business case being that i can only have 3 messages in the send queue, so i need to stop sending if there are 3 outstanding messages still in the send queue.
Can someone point the way?
Thanks,
NileshHi,
To get the depth using JMS you must create a QueueBrowse and browse the entire queue. Its generally horribly inefficient if you want to do it with any regularity.
In Hermes I have had to write plugins that open separate connections to providers using their non-JMS APIs or JMX and get that kind of information that way.
Look at the getDepth() method in this JBoss plugin for an example that uses JMX:
http://cvs.sourceforge.net/viewcvs.py/hermesjms/Hermes4/src/java/hermes/ext/jbossmq/JBossMQAdmin.java?view=markup
And here is one for WebSphereMQ that uses one of its many APIs..
http://cvs.sourceforge.net/viewcvs.py/hermesjms/Hermes4/src/java/hermes/ext/mq/MQSeriesAdmin.java?view=markup
Colin.
http://hermesjms.com -
How can I get Total Number of messages in an EDI Interchange
Hi All,
I am migrating a solution from Covast EDI to native BizTalk EDI and ran into an issue. In Covast when an Incoming interchange is debatched some of the properties like The total number of messages in an Interchange is saved into the XML of the debatched
message. I am trying to find this value in Native BizTalk EDI.
How can I determine this value? I only see the InterchangeSequenceNumber property which is only the sequence number of the a message in Interchange.
Thanks!My first advice in situations like this is the double and triple check that this requirement still exists and it is driven
by the business. This is great opportunity to refactor some unnecessary complexity out of the solution if you identify it.
Assuming it is a valid and verified requirement, how you approach depends on the composition of the Interchange. Meaning, if you receive single ISA...IEA blocks with a single GS...GE, you can use the max of BTS.InterchangeSequenceNumber.
If you receive multiple ISA or GS's, it's a little different. -
How to get total number of days
Hi All,
how to get total number of days , for example if month eq 05 then need to get total number of days until MAY 31.
and how to get total number of days in a month.
Thank You,,
Sriii..Hi Sridhar,
Pls Try to search before posting general questions.
Try this,
CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES'
EXPORTING
i_datum_bis = p_lv_date1
i_datum_von = p_lv_date2
IMPORTING
e_tage = p_e_date_difference
EXCEPTIONS
days_method_not_defined = 1
OTHERS = 2
IF sy-subrc 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Regards,
Sunil kairam. -
How do I show number of messages in mailboxes for Mail?
I can't figure out how to show the number of messages in my mailboxes. When I go to View > Message Attributes, Number is grayed out. Nothing in Customize Toolbar that would suggest #. Any advice? Thanks!
no, like in classic, there was a column "#" which showed how many messages you had in that particular email account. but all that info is in the email itself, but no total of emails for that mailbox. When I go to View > Message Attributes, "Number" is grayed out. thanks for your input.
-
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 ???
tanksok.
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- -
How to calculate total number of pages in a script
hi
how to calculate total number of pages in a scriptJyothsna,
Date:-&sy-datum&
Time:-&sy-timlo&
Total No.of Pages:-&sapscript-formpages&
Page No:-&PAGE&/&SAPSCRIPT-FORMPAGES&
Give the above said lines in your text editor,and given the paragraph format.Better create one more window and give the above said lines in the text editor.
K.Kiran. -
My core.log file keeps showing these errors everytime I start to stream. My streams are not viewable on PC's and only viewable on iOS devices.
Is there something wrong with the libf4f.dll file? I'm using FMS 4.5 on Windows 2003 Server.
2011-12-28 15:44:09 4020 (e)2611178 Error from libf4f.dll: Total number of messages waiting to be recorded has exceeded the limit. -
2011-12-28 15:44:09 4020 (e)2611423 Failed to record bbc2011-BBC73 (Unknown Error). -
2011-12-28 16:02:00 4020 (e)2611178 Error from libf4f.dll: Total number of messages waiting to be recorded has exceeded the limit. -
2011-12-28 16:02:00 4020 (e)2611423 Failed to record bbc2011-BBC71 (Unknown Error). -
2011-12-28 16:57:12 4020 (e)2611363 Server detected a backward timestamp from 5006873 to 0 in file: C:\FMSHOME\applications\livepkgr\streams\_definst_\bbc2011
2011-12-28 17:18:21 4020 (e)2611178 Error from libf4f.dll: Total number of messages waiting to be recorded has exceeded the limit. -
2011-12-28 17:18:21 4020 (e)2611423 Failed to record bbc2011-BBC83 (Unknown Error). -
2011-12-28 17:36:12 4020 (e)2611178 Error from libf4f.dll: Total number of messages waiting to be recorded has exceeded the limit. -
2011-12-28 17:36:12 4020 (e)2611423 Failed to record bbc2011-BBC81 (Unknown Error). -
2011-12-28 18:38:09 4020 (e)2611363 Server detected a backward timestamp from 5420086 to 0 in file: C:\FMSHOME\applications\livepkgr\streams\_definst_\bbc2011-BBC82 -
2011-12-28 19:12:44 4020 (e)2611178 Error from libf4f.dll: Total number of messages waiting to be recorded has exceeded the limit. -
2011-12-28 19:12:44 4020 (e)2611423 Failed to record bbc2011-BBC92 (Unknown Error). -
2011-12-28 19:23:38 4020 (e)2611178 Error from libf4f.dll: Total number of messages waiting to be recorded has exceeded the limit. -
2011-12-28 19:23:38 4020 (e)2611423 Failed to record bbc2011-BBC91 (Unknown Error). -
2011-12-28 20:41:50 4020 (e)2611363 Server detected a backward timestamp from 6390123 to 0 in file: C:\FMSHOME\applications\livepkgr\streams\_definst_\bbc2011-BBC93 -
2011-12-28 21:12:05 4020 (e)2611178 Error from libf4f.dll: Total number of messages waiting to be recorded has exceeded the limit. -
2011-12-28 21:12:05 4020 (e)2611423 Failed to record bbc2011-BBC102 (Unknown Error). -
2011-12-28 22:49:23 4020 (i)2581247 Core (4020) disconnected from edge. -
2011-12-28 22:49:23 4020 (i)2581233 Core (4020) disconnecting from admin: 200. -
Thanks,
DaveThere is a concept of Absolute Time Code which enables the encoders to publish the livestream based on absolute system time rather than starting the messages from timestamp 0 everytime you append to a recording.
I suspect you encoder is starting everytime from 0 timestamp but since the server already has recording till some time - say x, for the server these are backward timestamps and hence the continous warnings.
Also to safeguard FMS against such conditions and cause memory crashes, we only allow messages with backward timestamps to accumulate in the process queue upto a limit and then the recording is stopped. Thats why you are observing the errors -
"Error from libf4f.dll: Total number of messages waiting to be recorded has exceeded the limit. -
2011-12-28 19:23:38 4020 (e)2611423 Failed to record bbc2011-BBC91 (Unknown Error). -"
Try to check your encoder settings for stream synchronization or ATC settings and enable them. -
Displaying total number of messages in Inbox
Using Mail in OS 10.3.9, the total number of messages in any selected mailbox was displayed just below the toolbar. This was very useful - when it got to around 800 I would know the time had come to archive some!
However, in Leopard (10.5.2) there doesn't seem to be any way to simply display just this total number.
Does anyone know of a way to display just the total?
Thanks!Of course it does! Gosh, I'm stupid!
Just goes to show that when you have looked at something for so long you take its location for granted!
Thanks for helping!! -
Count the number of message in remote queue.
Does any method in MQSeries or JMS, can count the number of message in remote queue.
I try to use QueueBrowser to browser, but got exception when browse the remote queue.
thanks.You cannot read from, browse or query a remote MQ Queue, only write to it. Try www.mqseries.net or ibm website for any ways around this...
-
Old How to find total number of events in an event list?
Hi,
I am developing a j2me application. i Want to find the total number of events in an event list.(ie, If it contains 15 events then it should return length as 15).
Not the length of EVENT LISTS i want to find the Length of EVENTS.
Thanks,
kumarHi,
you can find the number of columns and their order using
the <b>'REUSE_ALV_FIELDCATALOG_MERGE'</b>
call function 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = sy-repid
I_INTERNAL_TABNAME = 'ITAB'
I_INCLNAME = sy-repid
changing
ct_fieldcat = IT_FIELDCAT
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif
now describe your fieldcat . and find no of columns.
and their order also..
regards
vijay -
How to get total number of result count for particular key on cluster
Hi-
My application requirement is client side require only limited number of data for 'Search Key' form total records found in cluster. Also i need 'total number of result count' for that key present on the custer.
To get subset of record i'm using IndexAwarefilter and returning only limited set each individual node. though i get total number of records present on the individual node, it is not possible to return this count to client form IndexAwarefilter (filter return only Binary set).
Is there anyway i can get this number (total result size) on client side without returning whole chunk of data?
Thanks in advance.
Prashantuser11100190 wrote:
Hi,
Thanks for suggesting a soultion, it works well.
But apart from the count (cardinality), the client also expects the actual results. In this case, it seems that the filter will be executed twice (once for counting, then once again for generating actual resultset)
Actually, we need to perform the paging. In order to achieve paging in efficient manner we need that filter returns only the PAGESIZE records and it also returns the total 'count' that meets the criteria.
If you want to do paging, you can use the LimitFilter class.
If you want to have paging AND total number of results, then at the moment you have to use two passes if you want to use out-of-the-box features because LimitFilter does not return the total number of results (which by the way may change between two page retrieval).
What we currently do is, the filter puts the total count in a static variable and but returns only the first N records. The aggregator then clubs these info into a single list and returns to the client. (The List returned by aggregator contains a special entry representing the count).
This is not really a good idea because if you have more than one user doing this operation then you will have problems storing more than one values in a single static variable and you used a cache service with a thread-pool (thread-count set to larger than one).
We assume that the aggregator will execute immediately after the filter on the same node, this way aggregator will always read the count set by the filter.
You can't assume this if you have multiple client threads doing the same kind of filtering operation and you have a thread-pool configured for the cache service.
Please tell us if our approach will always work, and whether it will be efficient as compared to using Count class which requires executing filter twice.
No it won't if you used a thread-pool. Also, it might happen that Coherence will execute the filtering and the aggregation from the same client thread multiple times on the same node if some partitions were newly moved to the node which already executed the filtering+aggregation once. I don't know anything which would even prevent this being executed on a separate thread concurrently.
The following solution may be working, but I can't fully recommend it as it may leak memory depending on how exactly the filtering and aggregation is implemented (if it is possible that a filtering pass is done but the corresponding aggregation is not executed on the node because of some partitions moved away).
At sending the cache.aggregate(Filter, EntryAggregator) call you should specify a unique key for each such filtering operation to both the filter and the aggregator.
On the storage node you should have a static HashMap.
The filter should do the following two steps while being synchronized on the HashMap.
1. Ensure that a ConcurrentLinkedQueue object exists in a HashMap keyed by that unique key, and
2. Enqueue the total number count you want to pass to the aggregator into that queue.
The parallel aggregator should do the following two steps while being synchronized on the HashMap.
1. Dequeue a single element from the queue, and return it as a partial total count.
2. If the queue is now empty, then remove it from the HashMap.
The parallel aggregator should return the popped number as a partial total count as part of the partial result.
The client side of the parallel aware aggregator should sum the total counts in the partial result.
Since the enqueueing and dequeueing may be interleaved from multiple threads, it may be possible that the partial total count returned in a result does not correspond to the data in the partial result, so you should not base anything on that assumption.
Once again, that approach may leak memory based on how Coherence is internally implemented, so I can't recommend this approach but it may work.
Another thought is that since returning entire cached values from an aggregation is more expensive than filtering (you have to deserialize and reserialize objects), you may still be better off by running a separate count and filter pass from the client, since for that you may not need to deserialize entries at all, so the cost on the server may be lower.
Best regards,
Robert -
How to get Total Number of XML Nodes?
Hello All,
I have a Flash program I'm doing in Actionscript 3, using CS6.
I'm using the XMLSocket Class to read-in XML Data. I will write some sample XML Data that is being sent to the Flash
program below...
I know with this line here (below) I can access the 4th "element or node" of that XML Data.
Accessing XML Nodes/Elements:
// *I created an XML Variable called xml, and "e.data" contains ALL the XML Data
var xml:XML = XML(e.data);
// Accessing the 4th element of the data:
xml.MESSAGE[3].@VAR; ---> "loggedOutUsers"
xml.MESSAGE[3].@TEXT; ---> "15"
SAMPLE XML DATA:
<FRAME>
0 <MESSAGE VAR="screen2Display" TEXT="FRAME_1"/>
1 <MESSAGE VAR="numUsers" TEXT="27"/>
2 <MESSAGE VAR="loggedInUsers" TEXT="12"/>
3 <MESSAGE VAR="loggedOutUsers" TEXT="15"/>
4 <MESSAGE VAR="admins" TEXT="2"/>
</FRAME>
I'm new to Flash and Actionscript but I'm very familiar with other languages and how arrays work and such, and I know for
example, in a Shell Script to get the total number of elements in an array called "myArray" I would write something like
this --> ${#myArray[@]}. And since processing the XML Data looks an awful lot like an array I figured there was maybe
some way of accessing the total number of "elements/nodes" in the XML Data...?
Any thoughts would be much appreciated!
Thanks in Advance,
MattHey vamsibatu, thanks again for the quick reply!
Ohhh, ok I gotcha. That makes more sense.
So I just tried this loop below and I guess I could use this and just keep assigning an int variable to the output so
when it finishes I will be left with a variable containing the total number of elements:
for (var x:int in xml.MESSAGE)
trace("x == " + x);
*Which OUTPUTS the Following:
x == 0
x == 1
x == 2
x == 3
x == 4
So I guess I could do something like this and when the loop completes I will be left with the total number of elements/nodes...
var myTotal:int;
for (var x:int in xml.MESSAGE)
myTotal = x;
// add '1' to myTotal since the XML Data is zero-based:
myTotal += 1;
trace("myTotal == " + myTotal);
*Which Prints:
"myTotal == 5"
Thanks again for you suggestions, much appreciated!
I think that should be good enough for what I needed. Thanks...
Thanks Again,
Matt
Maybe you are looking for
-
Line Chart to Compare Current Year vs Last Year
I am on BI 7 SP9. I need to create a line chart that shows 2 lines to compare revenue for the current year against last year. The first line should show the revenue for the current year. The second line should show the revenue for last year. In my B
-
Creating fancy pdf-files for costumers and other purposes is great. However, if the experimental data include many datapoints (>200000) a line-2d-graph ends up in a very big pdf-file. Especially when many pages need to be used. Explanation: When I us
-
I constantly receive the alert <SID>XBD is down. We are not using XDB nor DISPATCHERS, or multi-threaded servers. At database creation time, from dbca, the parameter DISPATCHERS had a value. Afterwards we created a pfile and removed this parameter an
-
I have studied the tuturials of PSE11 but some basic functions are missing. I assume that the basic functions are obvious to the younger people. I take an album from the organiser into the photo bin in editor. Carryout photo editing then it appears t
-
Equium A100-147 with error message "PXE-E61 Media Test Failure"
Hi all, I have Equium A100 out of warranty, due to error message "PXE-61 Media Test Failure" I took it to my local computer menders, they told me my Toshiba 60gb hard drive had failed (MG6034GSX) and replaced it with a another 120gb model. I tried to