Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Re-Post: CMP Entity Beans in Component Diagram

 
Essia Tara
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Keerthi P
Ranch Hand
Posts: 203
  • 0
  • Mark post as helpful
  • send pies
  • 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 ]
 
Lucy Hummel
Ranch Hand
Posts: 71
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I totally aggree with Kerthi,

Lucy
 
Essia Tara
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much Keerthi and Luci for your replies.
 
jono
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic