Threading In Java Beans  
Author Message
DerrickHaller





PostPosted: 2005-8-15 14:04:00 Top

java-programmer, Threading In Java Beans 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





PostPosted: 2005-8-16 16:01:00 Top

java-programmer >> Threading In Java Beans 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

<email***@***.com> schrieb im Newsbeitrag
news:email***@***.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
>