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

  Modified:    src/main/org/jboss/test/ejb/test Tag: Branch_2_4
                        MDBInvoker.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   +2 -2      jbosstest/src/main/org/jboss/test/ejb/test/Attic/MDBInvoker.java
  
  Index: MDBInvoker.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/ejb/test/Attic/MDBInvoker.java,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- MDBInvoker.java   2001/12/28 22:45:19     1.1.2.1
  +++ MDBInvoker.java   2002/01/03 02:40:18     1.1.2.2
  @@ -15,7 +15,7 @@
   
   /** Invoker thread for StatelessSession tests.
   * @author [EMAIL PROTECTED]
  -* @version $Revision: 1.1.2.1 $
  +* @version $Revision: 1.1.2.2 $
   */
   public class MDBInvoker extends Thread
   {
  @@ -44,7 +44,7 @@
            message.setText(this.toString());
            sender.send(message);
            QueueReceiver receiver = session.createReceiver(queueB);
  -         Message reply = receiver.receive(5000);
  +         Message reply = receiver.receive(10000);
            if( reply == null )
               runEx = new IllegalStateException("Message receive timeout");
            else if( reply instanceof ObjectMessage )
  
  
  

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

Reply via email to