[jboss-jira] [JBoss JIRA] Closed: (EJBTHREE-1108) The EJB3 Consumer test is not thread safe

Adrian Brock (JIRA) jira-events at lists.jboss.org
Tue Nov 13 12:53:18 EST 2007


     [ http://jira.jboss.com/jira/browse/EJBTHREE-1108?page=all ]

Adrian Brock closed EJBTHREE-1108.
----------------------------------

    Resolution: Done

> The EJB3 Consumer test is not thread safe
> -----------------------------------------
>
>                 Key: EJBTHREE-1108
>                 URL: http://jira.jboss.com/jira/browse/EJBTHREE-1108
>             Project: EJB 3.0
>          Issue Type: Task
>            Reporter: Adrian Brock
>         Assigned To: Adrian Brock
>             Fix For: AS 5.0.0.Beta3
>
>
> The EJB3 Consumer testQueueXA appears to be checking that method2 is invoked after method1.
> However, it creates an ActivationSpec with the default maxSession=15
> which means methods can compete with each other to be delivered on upto 15 threads.
> It needs changing to be single threaded delivery to consistently pass this test.
> @Consumer(activationConfig =
>         {
>         @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"),
>         @ActivationConfigProperty(propertyName="destination", propertyValue="queue/mdbtest"),
> +        @ActivationConfigProperty(propertyName="maxSession", propertyValue="1")
>         })
> public class QueueTestConsumer implements QueueTestRemote, QueueTestXA, QueueTestLocal

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list