I set ActiveMQ broker SystemUsage property as below;
SystemUsage systemUsage=new SystemUsage();
StoreUsage storeUsage=new StoreUsage();
storeUsage.setLimit(1L);
systemUsage.setStoreUsage(storeUsage);
MemoryUsage memoryUsage =new MemoryUsage();
memoryUsage.setLimit(1L);
systemUsage.setMemoryUsage(memoryUsage);
TempUsage tempUsage=new TempUsage();
tempUsage.setLimit(1L);
systemUsage.setTempUsage(tempUsage);
broker.setSystemUsage(systemUsage);
broker.start();
but my db.data file goes on growing up.But I have to restrict it.