I am using non-persistent messages. Is there any way to store than in DB, not in memory?
Otherwise I get out of memory error after running Jboss for some time.
DefaultDS uses Hypersonic DB as default. Hypersonic is an in-memory db and can give outOfMemory.
Switch to filestore, or some "real" db for message store.