Assaf Arkin wrote:
> D Swaminathan wrote:
> >
> > Hi,
> >
> > I have a query regarding entity bean failover. To
> > begin with, is there any such thing as entity bean
> > failover? The scenario is such that the EJB client has
> > obtained a reference to the bean (EJBObject) through a
> > finder method and quite possibly invoked a few methods
> > on the bean. At this stage, the server/container
> > crashes. What would happen for subsequent method
> > invocations on the bean ( assuming that we have a
> > clustered server environment)?
>
> The EJB server will deal with that at the stub level by looking up the
> same entity on a different server if you are not within a transaction.
Depends on the server. I don't think theres is anything in the spec about that.
WLS does not fail over automatically.
>
> If you are within a transaction, then in all probability your
> transaction just failed.
Why can't the container failover in this case?
>
>
> > Also, how can the EJB container achieve this? Would
> > this imply that to have entity bean failover all
> > entity beans would have to be replicated across the
> > containers? What would be the implication of such
> > replication on concurrent access to the entity beans?
>
> The EJB container achieves that by reloading that entity bean on the
> other server. It may, or may not, and that might depend on the bean (and
> certainly the EJB container) replicate the entity bean. If your entity
> bean simply holds information retrieved from the database, just
> reloading it on the other server will do the trick.
>
> arkin
>
> > We are trying to come up with a set of test suites to
> > compare the different EJB servers and this is one of
> > the things we needed to check.
> >
> > Prasad
> > __________________________________________________
> > Do You Yahoo!?
> > Talk to your friends online with Yahoo! Messenger.
> > http://im.yahoo.com
> >
> > ===========================================================================
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> > of the message "signoff EJB-INTEREST". For general help, send email to
> > [EMAIL PROTECTED] and include in the body of the message "help".
>
> --
> ----------------------------------------------------------------------
> Assaf Arkin www.exoffice.com
> CTO, Exoffice Technologies, Inc. www.exolab.org
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".