• Post Reply Bookmark Topic Watch Topic
  • New Topic

EntityBean clarification

 
Kalaiselvan Selvamani
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I created a Entity Bean.
If i update or delete a table through a bean whether that changes will affect all the beans or not.
Also if i hard codedly changes the values in the table.. How the Bean knows the changed are made in table. Is it any possible way to do these...
 
Dharmesh Chheda
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Kalaiselvan
are you talking about a scenario such as bank.. where many applications are accessing one same account at the same time?.. if thats the case then yes there will be data corruption.. a solution for this is something known as instance caching and using transactions.. i dont have knowledge about your problem but i went through a book i had for your problem solution.
in it was a detailed explanation of both questions you have ..
1> data corruption
2> database insertion directly..
you can refer to the book Mastering EJB which is available for download
here.
refer to page 147 for the solution of your first problem and page 155 for your second question ...
(page numbers are the pdf page numbers not the book page numbers)
 
Kalaiselvan Selvamani
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx for ur reply Mr.Dharmesh Chheda..
I'm going through the book. If i have any doubt i will contact u further ..
Thanx.
Kalaiselvan.S
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!