1 18 package org.apache.activemq.perf; 19 20 import javax.jms.ConnectionFactory ; 21 import javax.jms.DeliveryMode ; 22 import javax.jms.Destination ; 23 import javax.jms.JMSException ; 24 27 public class SimpleDurableTopicTest extends SimpleTopicTest{ 28 protected PerfProducer createProducer(ConnectionFactory fac,Destination dest,int number, byte payload[]) throws JMSException { 29 PerfProducer pp=new PerfProducer(fac,dest, payload); 30 pp.setDeliveryMode(DeliveryMode.PERSISTENT); 31 return pp; 32 } 33 34 protected PerfConsumer createConsumer(ConnectionFactory fac,Destination dest,int number) throws JMSException { 35 return new PerfConsumer(fac,dest,"subs:"+number); 36 } 37 38 } 39 | Popular Tags |