[jboss-cvs] jboss-ejb3/src/test/org/jboss/ejb3/test/mdb ...

Bill DeCoste bdecoste at jboss.com
Thu Jul 27 14:29:05 EDT 2006


  User: bdecoste
  Date: 06/07/27 14:29:05

  Added:       src/test/org/jboss/ejb3/test/mdb  DlqTestMDB.java
  Log:
  DLQ tests
  
  Revision  Changes    Path
  1.1      date: 2006/07/27 18:29:05;  author: bdecoste;  state: Exp;jboss-ejb3/src/test/org/jboss/ejb3/test/mdb/DlqTestMDB.java
  
  Index: DlqTestMDB.java
  ===================================================================
  /*
    * JBoss, Home of Professional Open Source
    * Copyright 2005, JBoss Inc., and individual contributors as indicated
    * by the @authors tag. See the copyright.txt in the distribution for a
    * full listing of individual contributors.
    *
    * This is free software; you can redistribute it and/or modify it
    * under the terms of the GNU Lesser General Public License as
    * published by the Free Software Foundation; either version 2.1 of
    * the License, or (at your option) any later version.
    *
    * This software is distributed in the hope that it will be useful,
    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    * Lesser General Public License for more details.
    *
    * You should have received a copy of the GNU Lesser General Public
    * License along with this software; if not, write to the Free
    * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
    * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
    */
  package org.jboss.ejb3.test.mdb;
  
  import javax.ejb.ActivationConfigProperty;
  import javax.ejb.MessageDriven;
  import javax.jms.Message;
  import javax.jms.MessageListener;
  
  import org.jboss.logging.Logger;
  
  /**
   * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
   * @version <tt>$Revision: 1.1 $</tt>
   */
  @MessageDriven(activationConfig =
          {
          @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"),
          @ActivationConfigProperty(propertyName="destination", propertyValue="queue/dlqtest"),
          @ActivationConfigProperty(propertyName="dLQMaxResent", propertyValue="1")
          })
  public class DlqTestMDB implements MessageListener
  {
     private static final Logger log = Logger.getLogger(DlqTestMDB.class);
     
     public void onMessage(Message message)
     { 
        System.out.println("*** DlqTestMDB onMessage ");
        throw new RuntimeException("force resend");
     }
  }
  
  
  



More information about the jboss-cvs-commits mailing list