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

Bill DeCoste bdecoste at jboss.com
Mon Jul 24 17:28:31 EDT 2006


  User: bdecoste
  Date: 06/07/24 17:28:31

  Modified:    src/test/org/jboss/ejb3/test/strictpool  
                        OverrideStrictlyPooledMDB.java
                        StrictlyPooledMDB.java
  Log:
  MDB cleanup, standalone test for standard testcases, fixed class level @Resources jndi env bindings
  
  Revision  Changes    Path
  1.4       +5 -11     jboss-ejb3/src/test/org/jboss/ejb3/test/strictpool/OverrideStrictlyPooledMDB.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: OverrideStrictlyPooledMDB.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-ejb3/src/test/org/jboss/ejb3/test/strictpool/OverrideStrictlyPooledMDB.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- OverrideStrictlyPooledMDB.java	20 Jun 2006 19:21:31 -0000	1.3
  +++ OverrideStrictlyPooledMDB.java	24 Jul 2006 21:28:31 -0000	1.4
  @@ -37,27 +37,21 @@
   import javax.jms.TextMessage;
   import javax.naming.InitialContext;
   
  -import org.jboss.annotation.ejb.MessageDrivenConfig;
  -import org.jboss.annotation.ejb.MessageDrivenConfigProperty;
   import org.jboss.annotation.ejb.PoolClass;
   import org.jboss.annotation.ejb.PoolClass;
   
   /**
  - * @version <tt>$Revision: 1.3 $</tt>
  + * @version <tt>$Revision: 1.4 $</tt>
    * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
    */
   @MessageDriven(activationConfig =
           {
           @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"),
  -        @ActivationConfigProperty(propertyName="destination", propertyValue="queue/overrideQueueA")
  -        
  +        @ActivationConfigProperty(propertyName="destination", propertyValue="queue/overrideQueueA"),
  +        @ActivationConfigProperty(propertyName="maxMessages", propertyValue="10"),
  +        @ActivationConfigProperty(propertyName="minSession", propertyValue="10"),
  +        @ActivationConfigProperty(propertyName="maxSession", propertyValue="10")
           })
  - at MessageDrivenConfig(mdbConfig=
  -{
  -      @MessageDrivenConfigProperty(propertyName="maxMessages", propertyValue="10"),
  -      @MessageDrivenConfigProperty(propertyName="minSession", propertyValue="10"),
  -      @MessageDrivenConfigProperty(propertyName="maxSession", propertyValue="10")
  -})
   @PoolClass (value=org.jboss.ejb3.test.strictpool.BogusPool.class, maxSize=0, timeout=0)
   public class OverrideStrictlyPooledMDB implements MessageListener
   {
  
  
  
  1.11      +5 -10     jboss-ejb3/src/test/org/jboss/ejb3/test/strictpool/StrictlyPooledMDB.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: StrictlyPooledMDB.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-ejb3/src/test/org/jboss/ejb3/test/strictpool/StrictlyPooledMDB.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -b -r1.10 -r1.11
  --- StrictlyPooledMDB.java	20 Jun 2006 19:21:31 -0000	1.10
  +++ StrictlyPooledMDB.java	24 Jul 2006 21:28:31 -0000	1.11
  @@ -37,27 +37,22 @@
   import javax.jms.TextMessage;
   import javax.naming.InitialContext;
   
  -import org.jboss.annotation.ejb.MessageDrivenConfig;
  -import org.jboss.annotation.ejb.MessageDrivenConfigProperty;
   import org.jboss.annotation.ejb.PoolClass;
   import org.jboss.annotation.ejb.PoolClass;
   
   /**
    * Adapted from the EJB 2.1 tests (org.jboss.test.cts.ejb.StrictlyPooledMDB)
    * @author <a href="mailto:kabir.khan at jboss.org">Kabir Khan</a>
  - * @version $Revision: 1.10 $
  + * @version $Revision: 1.11 $
    */
   @MessageDriven(activationConfig =
           {
           @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"),
  -        @ActivationConfigProperty(propertyName="destination", propertyValue="queue/queueA")
  +        @ActivationConfigProperty(propertyName="destination", propertyValue="queue/queueA"),
  +        @ActivationConfigProperty(propertyName="maxMessages", propertyValue="10"),
  +        @ActivationConfigProperty(propertyName="minSession", propertyValue="10"),
  +        @ActivationConfigProperty(propertyName="maxSession", propertyValue="10")
           })
  - at MessageDrivenConfig(mdbConfig=
  -{
  -      @MessageDrivenConfigProperty(propertyName="maxMessages", propertyValue="10"),
  -      @MessageDrivenConfigProperty(propertyName="minSession", propertyValue="10"),
  -      @MessageDrivenConfigProperty(propertyName="maxSession", propertyValue="10")
  -})
   @PoolClass (value=org.jboss.ejb3.StrictMaxPool.class, maxSize=StrictlyPooledMDB.maxActiveCount, timeout=10000)
   public class StrictlyPooledMDB implements MessageListener
   {
  
  
  



More information about the jboss-cvs-commits mailing list