FAQ > Configuration > How do I disable persistence
There are three main ways to disable persistence, such as for unit testing JMS code
persistent=false
flag in the <broker/>
element of the Xml Configuration or on the property BrokerServiceIf you are unit testing you may be interested in How To Unit Test JMS Code.
Please refer to the Initial Configuration guide on how to disable persistence via system properties, java code or using the Xml Configuration