/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
Bill Siggelkow
Jade Cove Solutions
/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
Originally posted by Bill Bailey:
Another related question.
Why should I use an O/R mapping tools instead of the EJB mechanism for persistence ?
Originally posted by ruilin yang:
Entity beans are best implemented as coarse-grained objects due to the hight overhead associated with each entity bean. Therefore, use composite entity to model, represent, and manage a set of interrelated persistent objects rather than representing them as individual fine-grained entity object beans. I fully understand the advantage of using the coarse-grained composite entity bean.
[BOLD]
However, my questions are:
1) what are the guidelines to do the design in the above manner?
2) how to decide/group entity objects to implement as a composite entity bean? What are strateges ?
3)In order to implement composite entity bean, is it true we can only use BMP or CMP (of EJB 1.1)can do it, too ?
4) The present O/R mapping tools are still useful to implement the composite entity bean ? Or we have to manually figure out the mapping and implementation of the composite entity bean ?
I am not clear about the implementation. I need help from the book author to give me some lights.
Thanks
Ruilin
[This message has been edited by ruilin yang (edited December 05, 2001).]
[This message has been edited by ruilin yang (edited December 05, 2001).][/B]
Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
Wouldn't this tie a bean to a particular physical implementation? The Sun book, "Core J2EE Patterns" which just came out doesn't agree with this conclusion. I just finished reading Richard Monson-Haefel's book, "EJB - Third Edition" and could find nothing that would lead one to believe that EJB 2.0 entity beans should be fine-grained objects.Originally posted by Kyle Brown:
Well, that [implementing entity beans as coarse-grained objects] used to be true with EJB 1.0 and to a lesser extent 1.1. However,with EJB 2.0 this is certainly no longer true.
Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Originally posted by Thomas Paul:
could find nothing that would lead one to believe that EJB 2.0 entity beans should be fine-grained objects.[/B]
/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
Originally posted by Bill Bailey:
Thomas,
Don't you think the local interface has been introduced to allow fine-grained objects ?
Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Originally posted by Thomas Paul:
[b] No. It was introduced to allow one EJB to access another without doing a remote call. Since many of the server vendors were providing this functionality in a vendor-specific way, this avoids the problem of adding vendor-specific code to your applications.
B]
/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
(About Kyle comment)Originally posted by Thomas Paul:
.....and could find nothing that would lead one to believe that EJB 2.0 entity beans should be fine-grained objects.
/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Originally posted by Thomas Paul:
The reason that I disagree with this has nothing to do with remote vs. local. The overhead of creating a single EJB as compared to a regular Java object is about 20:1.
/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
Originally posted by Bill Bailey:
I'm sorry but I've missed something in your explanation.
If you have a couple of minutes, could you explain a little bit further please ?
Do you mean you recommend to access Entity beans thru Java objects and no thru session beans ?
Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
Originally posted by Thomas Paul:
Originally posted by Bill Bailey:
[b] Thomas,
Don't you think the local interface has been introduced to allow fine-grained objects ?
-------
No. It was introduced to allow one EJB to access another without doing a remote call. Since many of the server vendors were providing this functionality in a vendor-specific way, this avoids the problem of adding vendor-specific code to your applications.
[This message has been edited by Thomas Paul (edited December 06, 2001).]
Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Destroy anything that stands in your way. Except this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|