This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB failover" Watch "EJB failover" New topic
Author

EJB failover

nitin pokhriyal
Ranch Hand

Joined: May 19, 2005
Posts: 263
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
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3700
    
    5

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 ]

My Blog: Down Home Country Coding with Scott Selikoff
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: http://aspose.com/file-tools
 
subject: EJB failover
 
Similar Threads
EJB Demand
Question about Transactions and EJBs
SCBCD preparation ..please help
connecting to EJB deployed in WAS 4.0 through VAJ 3.5.3
Head First EJB