Hi Tim Shaw ,

Sorry for bothering you!   I have a question about "modifying  a row created by a 
EB(entity bean)":

I can use a EB to create a row,  but I don't how to modify the same row with the same 
EB
twice (in another "transaction").   Because in my client software(for example, a 
servlet), when I "call" a method
of a EB(both CMP or BMP),  a new row of data will be created(if PK is different), or 
get a Exception
(Duplicate PK).


>The answer is yes. It is completely allowed to create/access a row using
>JDBC (or any other method) as well as via EB's.

Does it mean:
1. we can modify a row with another EB?(or other SB or ... )?
2. or in another "transaction" later ,  we can modify this row with the same EB which 
create this row ?

So if 2 is possible, would you please tell me how to do it?


Thanks in advance!



Bo
June 22, 2000




Tim Shaw wrote:

> I read the question as wanting to know if a mixed model was possible - data
> being modified by (say) JDBC as well as via EB's.
>
> The answer is yes. It is completely allowed to create/access a row using
> JDBC (or any other method) as well as via EB's. Watch out for primary key
> values. Locking/concurrent updates should be OK.
> Note that, if business data logic is in the EB's, it would be possible to
> 'corrupt' the database by using non-EB access.
>
> Gluck
>
> tim
>
> > -----Original Message-----
> > From: Goud, Venkata [SMTP:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 21, 2000 4:40 PM
> > To:   [EMAIL PROTECTED]
> > Subject:      Re: access data represented by an Entity Bean
> >
> > What do you mean represented by an EntityBean and without EJB? How did you
> > get the EntityBean without EJB Server?
> >
> >
> > -----Original Message-----
> > From: Tom�s P�rez [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 21, 2000 11:30 AM
> > To: [EMAIL PROTECTED]
> > Subject: access data represented by an Entity Bean
> >
> >
> > Hello,
> >
> >
> >         I have an application that needs modify (directly,without an EJB)
> > data
> > represented by an Entity Bean. is this possible without problems?
> >
> >
> > TIA.
> >
> > Tom�s P�rez Fern�ndez
> > CEDETEL
> > Parque Tecnol�gico de Boecillo
> > Edificio Centro, Parcela 109
> > E-47151 Boecillo (Valladolid)
> >
> > Tfno: +34 983 54 65 02
> > Fax:  +34 983 54 66 96
> >
> > ==========================================================================
> > =
> > 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".
>
> This e-mail, and any attachment, is confidential. If you have received it in error, 
>please delete it from your system, do not use or disclose the information in any way, 
>and notify me immediately. The contents of this message may contain personal views 
>which are not the views of the BBC, unless specifically stated.
>
> ===========================================================================
> 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".

Reply via email to