hi, i am using jboss as application server for jms and database is postgres.For an message store i am using the "*database store*".while starting the jms adding queue it is adding the messages to the jms queue after starting the jms receiver the datas are received sucessfully....afte some 10 to 13 hours i am getting java.lang.OutOfMemoryError in jms..so i checked the postgres table space.Table space is increased gradually...I think that the after receiver received that message the messages are not deleted in the database.how to debugg the the secnario in jboss as wel as in database.....how to chaeck the queue is in persistance or not persistance...
I am not sure, i understood the question right. If you are looking for checking the messages in a queue, JBoss provides MBeans for monitoring the queues. You will find the MBeans listed at http://localhost:8080/jmx-console
dear what you need to do is, just need an action of stopDelivery on Queue. after this your messages will start saving into the database. you will see your queue entry in the section of - jboss.j2ee in JMX-console(http://localhost:8080/jmx-console)
when you click on that link.. you will have a MBean Form, just click on the button invoke of stopDelivery.
your MDB onMessage() won't be called for any messages.. instead your all messages be stored in JMS_MESSAGES table in your database. when you click on invoke button of startDelivery() Method, you will notice your all messages stored in the database start flushing and your onMessage of MDB will be called.. i hope it will help you..