This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB failover

 
nitin pokhriyal
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am having an issue, suppose if a client is using shopping cart and suddenly server crashes then do i have any option in EJB to get back handle so thatuser do not have to start from scratch.

Thanks in advance.

Regards,
Nitin
 
Scott Selikoff
author
Saloon Keeper
Posts: 4015
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which server? Application or database? If the application server crashes then I don't see how the user could do anything at all.

As far as not starting from scratch, many servers, take Amazon.com for example, record session information such as current shopping card in the database. It's a lot of extra information to store but the advantage is the user can return any time to see their shopping cart.
[ March 27, 2008: Message edited by: Scott Selikoff ]
 
nitin pokhriyal
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi scott,

As far i know the clustering can be used here for rescue but i was looking for answer in single app server environment. I think you provided me good example of storing in database. Is there any other way?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic