SourceForge.net
2006-06-08 13:43:21 UTC
Bugs item #1502902, was opened at 2006-06-08 23:43
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=474136&aid=1502902&group_id=54559
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: message engine
Group: v0.7.7-alpha-3
Status: Open
Resolution: None
Priority: 5
Submitted By: Tim Anderson (tanderson)
Assigned to: Tim Anderson (tanderson)
Summary: Admin API reports available messages when queue is empty
Initial Comment:
The Admin API reports available messages when a queue
is empty, for messages that were present before a
server restart.
To reproduce:
1. start the server
2. Run QueueCount (below) to get the no. of messages ->
"queue1 has 0 messages"
3. send 10 messages to queue1
4. stop & restart the server
5. use the QueueCount to get the no. of message ->
"queue1 has 10 messages"
6. receive 10 messages from queue1
7. Run QueueCount. Incorrectly reports:
"queue1 has 10 messages"
public class QueueCount {
public static void main(String[] args) {
try {
JmsAdminServerIfc admin =
AdminConnectionFactory.create("tcp://localhost:3035/");
int count =
admin.getQueueMessageCount("queue1");
System.out.println("queue1 has " + count +
" messages");
admin.close();
System.exit(1);
} catch (Exception exception) {
exception.printStackTrace();
}
}
}
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=474136&aid=1502902&group_id=54559
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=474136&aid=1502902&group_id=54559
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: message engine
Group: v0.7.7-alpha-3
Status: Open
Resolution: None
Priority: 5
Submitted By: Tim Anderson (tanderson)
Assigned to: Tim Anderson (tanderson)
Summary: Admin API reports available messages when queue is empty
Initial Comment:
The Admin API reports available messages when a queue
is empty, for messages that were present before a
server restart.
To reproduce:
1. start the server
2. Run QueueCount (below) to get the no. of messages ->
"queue1 has 0 messages"
3. send 10 messages to queue1
4. stop & restart the server
5. use the QueueCount to get the no. of message ->
"queue1 has 10 messages"
6. receive 10 messages from queue1
7. Run QueueCount. Incorrectly reports:
"queue1 has 10 messages"
public class QueueCount {
public static void main(String[] args) {
try {
JmsAdminServerIfc admin =
AdminConnectionFactory.create("tcp://localhost:3035/");
int count =
admin.getQueueMessageCount("queue1");
System.out.println("queue1 has " + count +
" messages");
admin.close();
System.exit(1);
} catch (Exception exception) {
exception.printStackTrace();
}
}
}
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=474136&aid=1502902&group_id=54559