This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

use of ArrayList in Java classes, EJB classes  RSS feed

 
Avianu Sud
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From a thread safety perspective, what kind of issues can we encounter using java.util.ArrayList class instances in Servlet classes, and EJB classes? It will be great to describe this with an example, where an error can occur

It is recommended as very safe, and widely used, so when should it be not used in a Web environment?

Thanks in advance,
Avi.
 
Mr. C Lamont Gilbert
Ranch Hand
Posts: 1170
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All of your references will need special attention in multithreaded environment. Nothing special about collections except they corrupt more noticeably. You hope...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!