my dog learned polymorphism
The moose likes EJB and other Java EE Technologies and the fly likes Are JMS Queue and Topic limited? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Are JMS Queue and Topic limited?" Watch "Are JMS Queue and Topic limited?" New topic

Are JMS Queue and Topic limited?

hani Ibrahim
Ranch Hand

Joined: Sep 06, 2006
Posts: 182
Dear all,
im new to JMS.. and run "Hello World JMS" example is there any limitions on JMSQueue and Topic?
in other words,
if i send to queue 10,2000,or infinity objects to be stored in Queue.
and the Consumer (Asynch.)was too late to start to consume.
what is the limitation of size or objects that can be stored in Queue or topic without any problems?

Thanks all.
Amit M Tank
Ranch Hand

Joined: Mar 28, 2004
Posts: 257
Things are not that Straightforward. The capacity of the Queue depends on the vendor. High end Application Servers like Weblogic provides Message paging on JMS server for temporarily swapping messages out from memory when this JMS server's load reaches a specified message threshold.

The maximum number of messages stored in the JMS server like weblogic is configurable. The maximum message quota (between 0 and a positive 64-bit integer) that can be stored in this JMS server. The default value of -1 specifies that there is no WebLogic-imposed limit on the number of messages that can be stored. However, excessive message volume can cause memory saturation, so this value should correspond to the total amount of available system memory relative to the rest of your application load.

Amit Tank
Linked In
Joseph Sweet
Ranch Hand

Joined: Jan 29, 2005
Posts: 327
This is such a detail that i would not expect a beginner to care about. How many tabs can I open in one window of Firefox before the application crashes. First understand the mechanism of messaging, acknowledgment, transactions, message-driven bean. It can be quite convoluted.

We must know, we will know. -- David Hilbert
I agree. Here's the link:
subject: Are JMS Queue and Topic limited?
It's not a secret anymore!