Okay, I think I figured out the problem. I was setting the PrefetchSize value
on the ConnectionFactory mbean, but not on the NonClusteredConnectionFactory
mbean. However, the MDB is configured to use the java:/JmsXA JNDI name which
uses java:/DefaultJMSProvider which connects to
java:/NonClus
Ok I have performed a simple test.
I deployed an MDB that just sleeps for 24 hours when it receives a message.
I deployed that MDB in JBAS 4.2.0 consuming from queue queue/testQueue
I then wrote a simple client program that sent 2000 messages to testQueue.
I think waited 2 seconds before immedi
I will do a quick verification to see if there is a problem here before I cut
the next release, but I doubt I'll see anything unexpected.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049830#4049830
Reply to the post :
http://www.jboss.com/index.html?module
As I also mentioned before, do not use QueueBrowsers if you want them to
reflect exact snapshot of what is in the queue, this is not what they were
designed for.
The JMS spec is quite clear about this.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049822#40
You can use a QueueBrowser if an MDB is attached, it's just that you will only
see those messages that are on the queue.
Exactly the same applies whether you're using an MDB or any other consumer.
The prefetch size determines how many messages will be prefetched.
View the original post :
http
Okay, so there is no way to use a QueueBrowser when an MDB is attached? If
not, I suppose I'll rip out the MDB and create my own pool of listeners in
separate threads. Then I could have the listeners only consume a specified
number of messages, right? Also, if I do it this way, would the
Red
As I mentioned before, the message consumer will prefetch messages from a queue.
So if you add 20 messages to the queue and have a consumer they will all be
prefetched into the consumer, so they are no longer on the queue to be browsed.
So in your "step by step", not seeing messages in the queue
Okay, maybe I wasn't asking the question very well before. My question to you
is, how do I configure an MDB to not consume all the messages on a queue? This
is the question I thought you were answering when you recommended setting the
PrefetchSize variable. So, now that the correct question h
If you could explain to me *exactly* what you did to see the issue that would
be the best way to handle this.
Imagine I am an idiot (it won't take much stretch of the imagination).
Then you:
1) Deployed MDB consuming from queue A
2) Sent 20 messages to queue A from a jms client
3) Browsed que
"parressh" wrote : Would that be a sufficient explanation for how I prevent
messages from being consumed by the MDB before I browse them?
|
| Thanks
That's not what I meant.
You said that you could see no messages in your queue if you attached an MDB to
it.
If you attach an MDB to the qu
Tim, here are the details of my setup:
jboss-messaging-1.2.0.sp1
jboss-as-4.0.5.GA
MDB is configured to consume on one thread, one message at a time.
>From standardjboss.xml
|
| message-driven-bean
| default
|
org.jboss.ejb.plugins.jms.JMSContainerInvoker
|
Tim, I'll get you all that information, but quickly, you said
anonymous wrote : and also explain how you send prevent messages from being
consumed by the MDB before you browse them.
This is the information I was asking for previously. Your suggestion was to
alter the PrefetchSize to be less t
Ok, so in order for me to help you here you need to give me more information.
Please post the version of JBM you are using, the version of JBAS you are
using, and your MDB config and source that replicates the issue.
Please also post instructions on how you send messages to the queue, and your
Tim, the browser is also working for me... when there is not an MDB attached to
the queue. The test cases in the suite do not have any MDB's or other message
listeners when testing the browser which is why they are working just fine.
View the original post :
http://www.jboss.com/index.html?m
If you want to see an example of browsing working, please see the test suite.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049549#4049549
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049549
Tim, thanks for pointing me to the correct documentation. However, changing
the PrefetchSize property didn't work for me. I set it to 3 and then sent 15
messages to the queue. However, the QueueBrowser never saw any of them. I did
see the MessageCount of the Queue slowly drop to zero over ti
Theoretically it would be possible to browse over the union of the set of
messages actually in the queue, and the set in the delivery state, but this
would be fairly tricky to implement since they are scattered over the various
server side consumers.
Also please be warned that setting prefetchs
"parressh" wrote : So, it would make sense for the JMX MBean for the queue to
show a message count of 20, but for the QueueBrowser to not see any messages?
So that inconsistency is normal?
|
The Message Count attribute is defined as:
Number of messages in queue + Number of messages that hav
So, it would make sense for the JMX MBean for the queue to show a message count
of 20, but for the QueueBrowser to not see any messages? So that inconsistency
is normal?
I'm looking through the docs now to see how to configure the number of messages
pulled down from JMS, but I'm not sure I've
An MDB is a consumer of messages.
Consumers buffer messages locally (default size = 200 if I remember rightly -
see userguide for details).
So if you create a consumer and there are say 1000 messages on the queue, then
the first 200 messages will be taken off the queue and buffered in the consu
Hi Tim. I've written a QueueBrowser to look at the messages on the queue. But
it's not quite working if I have an MDB configured to listen on the queue.
Once I do that, I no longer see the messages on the queue. It does show the
messages when I remove the MDB. On the JMX console, it shows t
There's this thing called "google", maybe you've heard of it? ;)
http://www.google.co.uk/search?hl=en&q=queuebrowser&btnG=Google+Search&meta=
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048502#4048502
Reply to the post :
http://www.jboss.com/index.html?mo
Yeah, I'd rather not hit the database directly. What is a QueueBrowser? Where
can I find that?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048500#4048500
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048500
_
I would suggest against query a database table since this couples your
application to implementation details of JBM.
Have you thought about using a QueueBrowser?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048499#4048499
Reply to the post :
http://www.jb
24 matches
Mail list logo