I have finally figured out how to get ActiveMQ to use our database
pool instead of letting it create it's own (Derby). To configure the
datasource that ActiveMQ uses to store persistent messages, simply
set the following property on the ActiveMQ resouce adapter in the
OpenEJB conf file:
# DataSource for persistence messages
DataSource Default Unmanaged JDBC Database
If the property is null (empty), you get in memory persistence.
Also, since ActiveMQ was the sole user of Derby, we no longer have a
dependency on the 2M Derby jar. This means the the tomcat war is a
mere 13M now!
-dain