User: starksm 
  Date: 02/01/02 18:40:18

  Modified:    src/main/org/jboss/test/ejb/bean Tag: Branch_2_4
                        PooledMDB.java
  Log:
  Allow enough time for the mdb responses such that a max pool size of 1
  could be tested and don't send the reply until after the onMessage method
  has slept.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.2   +1 -1      jbosstest/src/main/org/jboss/test/ejb/bean/Attic/PooledMDB.java
  
  Index: PooledMDB.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/ejb/bean/Attic/PooledMDB.java,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- PooledMDB.java    2001/12/28 22:45:19     1.1.2.1
  +++ PooledMDB.java    2002/01/03 02:40:18     1.1.2.2
  @@ -22,7 +22,7 @@
    are active in the onMessage method.
   
   @author [EMAIL PROTECTED]
  -@version $Revision: 1.1.2.1 $
  +@version $Revision: 1.1.2.2 $
   */
   public class PooledMDB implements MessageDrivenBean, MessageListener
   {
  @@ -95,8 +95,8 @@
               // Send an ack
               reply = session.createTextMessage("Recevied msg="+tm.getText());
            }
  -         sender.send(reply);
            Thread.currentThread().sleep(1000);
  +         sender.send(reply);
         }
         catch(JMSException e)
         {
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to