1 18 package org.apache.activemq.perf; 19 20 import java.io.File ; 21 22 import org.apache.activemq.broker.BrokerService; 23 import org.apache.activemq.store.amq.AMQPersistenceAdapter; 24 27 public class AMQStoreQueueTest extends SimpleQueueTest{ 28 29 30 protected void configureBroker(BrokerService answer) throws Exception { 31 32 File dataFileDir = new File ("target/test-amq-data/perfTest/amq"); 33 34 AMQPersistenceAdapter adaptor = new AMQPersistenceAdapter(); 35 adaptor.setDirectory(dataFileDir); 36 37 answer.setPersistenceAdapter(adaptor); 38 answer.addConnector(bindAddress); 39 answer.setDeleteAllMessagesOnStartup(true); 40 41 } 42 43 } 44 | Popular Tags |