How to Delete consumed persistent messages form database store (openjms.db)

"Deepa Lalla" <[email protected]>
Newsgroups gmane.comp.java.openjms.user
Message-ID <[email protected]>
Hello,
  Am using openjms-0.7.6.1 and am using queue's and the message are sent in
persistent delivery mode and am using openjms.db for database store.

Does anyone know if openjms has any inbuilt mechanism wherein the
successfully consumed persistent messages are removed from the openjms.db?
or do i have to write a code to read openjms and delete the consumed
messages?

At present even though my persistent messages are being consumed my
openjms.db size keeps increasing.

I have tried using ObjectAdapter O=new ObjectAdapter("openjms.db",50,50,50);
				O.purgeMessages();
however it gives an error saying cant get lock over openjms.db

I have also tried using DatabaseService.getAdapter().purgeMessages();but
null pointer

Fatal error: java.lang.NullPointerException
Exiting.....
java.lang.NullPointerException
        at
org.exolab.jms.persistence.DatabaseService.getAdapter(DatabaseService.java:1
30)


Thanks
Deepa





------------------------------------------------------------------------------------------------------------------------
Disclaimer: This e-mail message along with attachment, contain Patni GE Confidential, proprietary & legally privileged information for the sole use of the person or entity to whom this message was originally addressed. Any review, e-transmission dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error kindly delete this e-mail from your records. If it appears that this mail has been forwarded to you without proper authority, please notify the sender and delete this mail. This email (in whole or in part) is not to be reproduced or furnished to third parties or made public without the prior express written permission of the sender.
------------------------------------------------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.