Hi Ken,

What do you mean by "some value not managed by the container"?
If you're saying that your bean needs to retrieve data from more than one
table there are a number of ways you can achieve that just by using regular
CMPs. One way would be to create a view in the DB that has all the
information that you need and then map the bean directly to the view.

Dimitar

-----Original Message-----
From: Kenneth D. Litwak [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 14, 2002 6:37 PM
To: [EMAIL PROTECTED]
Subject: JDBC from a CMP entity bean

   Consider this scenario:
   1.  I have a CMP bean.
   2.  My requirements make it necesary for this CMP bean to access data,
say
from a table, to build some value that is not managed by he container, e.g.,
a
Collection from another table.
   3.  I don't want to use CMR (it looks really complicated to use CMR, and
I
haven't seen a benefit at least equal to the complexity).

   How can I do this?  Use a DAO from the bean?  Thanks.

   Ken

===========================================================================
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