• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Re-Post: CMP Entity Beans in Component Diagram

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,

This is a re-post. Can someone please help me out?

I need to depict CMP Entity Beans and the Database they are connecting to in a component diagram.

For BMP Entity Beans I know that one can use the following approach:
(Entity-Bean ---> DAO ---> Database)

1. One Component for the Entity Bean
2. One Component for the DAO
3. One package (with a sterotype <<subsystem>> or <<database>> for the database.


How would I do this in the case of CMP since no DAO are used in this case?
How do I depict a connection from a CMP Entity Bean to the Database in a component diagram?

Can I just draw the CMP Entity bean and leave the database component out?

Any help would be highly appreciated.

Thanks.

Essia
 
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Can I just draw the CMP Entity bean and leave the database component out?


Why not? You may use <<entity bean>> stereo type if you want to have your design more J2EE specific.
[ April 18, 2005: Message edited by: Keerthi P ]
 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I totally aggree with Kerthi,

Lucy
 
Essia Tara
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much Keerthi and Luci for your replies.
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

The whole point of entity beans is that they should be considered the actual "entity view" i.e. it is better to forget there is a database behind the beans. So I woudl not represent anything behind the entity bean. Also, the database itself really only needs to go into the deployment digram as an execution node or a subsystem since it is not a J2EE component or any kind of software component.

does this clarify it?
 
Essia Tara
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Jono,

Thank you for your reply. It does clarify my doubts. I was trying to build a component diagram based on the model I saw in Mark Cade's book. In that book, the database was shown in the component diagram with a package icon and I was not sure if I had to draw another component (persistence Object/mechanism?) between the CMP entity bean and the database.

Once again, thank you for your reply.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic