• Post Reply Bookmark Topic Watch Topic
  • New Topic

About Database Crash

 
sonu kumar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happens to entity bean if database crashes? Is it still accessible to the client? what is the maximum life span of entity bean?
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends on the EJB caching option you are using. If you are using Option C, then you're out of luck -- any access to the EJB will fail. If you're using Option A, on the other hand, the EJB will merrily continue along its way for some queries.
Kyle
 
sonu kumar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mr Kyle,
Thanks for giving rply to my question. But i am using weblogic 7.0. How to set those option which u mentioned in weblogic
sonu
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know. I'm not a WebLogic expert. Why don't you search the documentation for "Commit Option A" and "Commit Option C"?
Kyle
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am a bit curious about why you are so concerned with your Entity Beans working in the event of a database failure. Most applications are only as reliable as the underlying datasource. I would think that you would be more concerned with ensuring that you have good fault-tolerance and fail-over on the database tier, instead of trying to handle this failure in the business tier.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!