Hi!

Bernard Olivier wrote:
> 
>                 Hi everyboby and Merry Chistmas....
> 
>         Once again, I got a problem I'm hope you will solve.
> 
>         To test jboss and my lettle understanding about it I've made
>         1 session Bean which job is to take money from one
checking-account
>         (a CMP) to another ( another CMP).
>         The two CMPs are linked to a database on Oracle 7.
> 
>         I'm on windows NT4 sp6 with 192mb of ram and a 733mhtz processor.
> 
>         All was fine with my client application until I tried to test the
> reaction
>         of Jboss with many clients : I've done a little program who made
20
> new threads
>         (to simulate 20 clients of the session-bean )and  each time I
> randomly take money
>         20 times from one checking-account (of 10) to another(of 10 too).
>         I've got no problem for 10 threads, but many times ,with 20
threads,
>         (1 for 2) my program stops: "Uc utilisation" falls to 0% allthough
> the program is not finished.
>         After a while I got these messages on Jboss:
> 
> [Container Factory]Transaction XidImpl [ID=257, Global=f05-cltdev/1916,
> Branch=] timed out. status=STATUS_ACTIVE
> 
>         others till cltdev/ ->1954

Sounds like a classical deadlock to me. The usual principles apply (lots
of books cover this topic).


        What do you mean ?
        Where did I mess, and what do I have to do ( or read, or perhaps
understand....  :(  )
        to make my application run better.


         

>         and my program prints me accounts' balances of 0.00
>         allthough they're not empty on my Database.     :(

This is not right though. Is the sum of all accounts balances always the
same? (they should be)
/Rickard

        

        Yes of course, it's just a test.  ;)

        I Hope, I'm not annoying you too much.


                        Olivier, beginner in Java programming



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to