java - How many messages can be queued up in a JMS topic? -


for web app, have jms topic receiving many messages @ given time. have mdb processes messages , updates database based on message data. had been getting org.hibernate.exception.lockacquisitionexception when topic receiving multiple messages @ same time changed maxsessions attribute mdb 1 , made singleton.

now not seeing hibernate exceptions anymore, have concerns performance. how large can expect topic before start seeing problems? using jboss 4.3 eap , tried searching how configure nothing turned up. topic size grow until java runs out of memory or can configured in jboss?

by default, jboss messaging store messages in embedded hypersonic database. if topic starts filling up, memory consumption shouldn't increase linearly, sooner or later database fill (from recall, hypersonic has 40,000 row limit, in configuration @ least).

more generally, if you're producing messages faster you're consuming them, have problem. either need produce them more slowly, consumer them more quickly, or work out way of discarding messages.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -