For Programmers: Free Programming Magazines  


Home > Archive > Java Beans > August 2005 > Threading In Java Beans









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Threading In Java Beans
DerrickHaller@gmail.com

2005-08-15, 4:00 am

Hello, I was trying to find some information regarding Concurrency in
J2EE. In my application I simply put a lock on the session and the
accessor/mutator methods inside the bean. Is this the proper way of
ensuring data consistency in a large scale web site. Any opinions or
links would be appreciated.
thanks

Daniel Rohe

2005-08-16, 4:00 am

Look at the EJB Specification 2.1, chapter 25.1.2 Programming Restrictions
on page 562ff. It prohibits usage of threading. Use transactions (JTA) to
ensure data consistency.

Kind regards,
Daniel

<DerrickHaller@gmail.com> schrieb im Newsbeitrag
news:1124085843.101768.112870@f14g2000cwb.googlegroups.com...
> Hello, I was trying to find some information regarding Concurrency in
> J2EE. In my application I simply put a lock on the session and the
> accessor/mutator methods inside the bean. Is this the proper way of
> ensuring data consistency in a large scale web site. Any opinions or
> links would be appreciated.
> thanks
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com