The original posting asked if there are two database
on two machine. The have the same table, same column
and posibaly, some data have the same PK value.
When I said *one* table, I mean: not two.

If I had twin sons, I would name them differently.


>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Entity Bean representes a piece of data in *one*
database. If you have two database, even there
the table name, column name and primary keys are
the same, they are different pieces of data. They
can not be represented by the same bean.

--- David Gasul <[EMAIL PROTECTED]> wrote:
> EJBers,
>
> The following situation can arise when there are
> multiple EJB
> containers/servers, each
> hosting the same set of deployed beans, and each
> working with a different
> DB, so that
> the set of entity beans instances is different.
>
> 1. Locate the Home Interface of a bean at container
> A;
>
> 2. Invoke a finder method at that interface (i.e. at
> container A);
>
> 3. The finder method returns a reference to an
> object which is located on
> server B ( A != B).
>
> Is this valid?
>


--- Shawn McKisson <[EMAIL PROTECTED]> wrote:
> Well, actually I was looking at the same problem and
> I found that it *was*
> possible to do this. It's not very pretty, but I
> wrote custom ejbLoad and
> ejbStore methods that would maintain the bean
> internal from >1 database. So, it
> is possible to have an entity bean represent tables
> from multiple databases.
>
> --shawn
>
> Wei Jiang wrote:
> >
> > Entity Bean representes a piece of data in *one*
> > database. If you have two database, even there
> > the table name, column name and primary keys are
> > the same, they are different pieces of data. They
> > can not be represented by the same bean.
>
>
===========================================================================
> 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".
>
>


=====

__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.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".

Reply via email to