The moose likes EJB and other Java EE Technologies and the fly likes EJB failover Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB failover" Watch "EJB failover" New topic

EJB failover

nitin pokhriyal
Ranch Hand

Joined: May 19, 2005
Posts: 263

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.

Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3753

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 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 ]

[OCA 8 Book] [Blog]
nitin pokhriyal
Ranch Hand

Joined: May 19, 2005
Posts: 263
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?
I agree. Here's the link:
subject: EJB failover
It's not a secret anymore!