After some pointers from David, I have implemented this.
When we are embedded we switch the default provider package to
org.apache.openejb.embedded. This provider file has hsql and active
persistence disabled.
Anyway, when you run openejb in unit tests (like in the OpenEJB
build) we won't dump activemq-data and hsqldb.* files in your project
directory.
-dain
On Jan 3, 2008, at 12:58 PM, Dain Sundstrom wrote:
Should we default hsqldb and activemq to in-memory only when in
embedded testing mode? Right now, when we execute a test, we get
hsql and activemq data files in the directory where the process was
started, which I find really annoying.
Anyway, what do you think? Also, if anyone knows how to actually
implement this idea, that would also be helpful :)
-dain