[snip]
> > Could you also
> > maybe point to a place to learn about making direct JDBC calls from CMP,
> > this sounds like one of the best possibilities.
> >
> no magic here, just grab a (or the current) connection and make
> calls on it. i like to extend a data-layer in my ejb's and this
> functionality derives from that layer. this sort of thing is typically
> vendor specific. pick a vendor or two and investigate their examples and
> generated code for insight into this.
After I sent the email, I found some examples on how to do this and you are
right, it is pretty easy. I have a couple more questions and a better
example:
Suppose I have have the following:
-Company
- Division -> Employees
- Dept
What I would like to do is have a transient collection of Employees in
Company, Division, and Dept so it's be easy to search only the relevant
Employees. This seems pretty easy to setup and wouldn't be hard to
implement. The one problem I can't seem to figure out is how do I keep the
collections in sync. Modifying objects wouldn't be a problem but Adding and
Deleting objects might. Do I have to use some sort of messaging to notify
Company, Division, Dept Beans to update their internal collections? Is this
where JMS would come in?
Would this design be bad since all of the objects would have to be loaded?
Thanks
Rick
===========================================================================
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".