Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/activemq/perf/SimpleNonPersistentQueueTest.java


1   /**
2    * <a href="http://activemq.org">ActiveMQ: The Open Source Message Fabric</a>
3    * 
4    * Copyright 2005 (C) Simula Labs Inc.
5    * 
6    * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
7    * the License. You may obtain a copy of the License at
8    * 
9    * http://www.apache.org/licenses/LICENSE-2.0
10   * 
11   * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
12   * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
13   * specific language governing permissions and limitations under the License.
14   * 
15   */
16  package org.activemq.perf;
17  
18  import javax.jms.ConnectionFactory;
19  import javax.jms.DeliveryMode;
20  import javax.jms.Destination;
21  import javax.jms.JMSException;
22  /**
23   * @version $Revision: 1.3 $
24   */
25  public class SimpleNonPersistentQueueTest extends SimpleQueueTest{
26      
27      protected PerfProducer createProducer(ConnectionFactory fac,Destination dest,int number) throws JMSException{
28          PerfProducer pp=new PerfProducer(fac,dest);
29          pp.setDeliveryMode(DeliveryMode.NON_PERSISTENT);
30          return pp;
31      }
32  }