Hi!
Shelly Aggrawal wrote:
> My question is 'Do entity beans need to manage their own transactions?'
> Suppose an entity bean represents a fields from two tables.
> Create() method of this bean will require insertion into two tables. In
>such a case, whose responsibility is transaction > management ::: (container + bean)
> or the DBMS.
Both. The beans declare how transactions should be managed, the
container begins/commits them, and the DBMS executes them on behalf of
the container/bean.
> Another doubt :-> can a bean directly map to two tables or there is need to have a
>view in the database that exactly matches the entity > bean.
There is no limitation in the EJB specification about this. You can have
100 tables if you want. Your specific implementation may have
limitations however. In these cases the normal thing to do is to use
BMP.
/Rickard
--
Rickard �berg
@home: +46 13 177937
Email: [EMAIL PROTECTED]
Homepage: http://www-und.ida.liu.se/~ricob684
Question reality
===========================================================================
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".