Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

EntityBean clarification  RSS feed

 
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...
 
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
 
Bring me the box labeled "thinking cap" ... and then read this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!