aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Re-Post: CMP Entity Beans in Component Diagram Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Re-Post: CMP Entity Beans in Component Diagram " Watch "Re-Post: CMP Entity Beans in Component Diagram " New topic
Author

Re-Post: CMP Entity Beans in Component Diagram

Essia Tara
Greenhorn

Joined: Mar 30, 2005
Posts: 4
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

Joined: Aug 19, 2003
Posts: 203
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 ]

Cheers.<br />Keerthi<br />(SCJP, SCWCD, SCBCD)
Lucy Hummel
Ranch Hand

Joined: Jul 22, 2004
Posts: 71
I totally aggree with Kerthi,

Lucy
Essia Tara
Greenhorn

Joined: Mar 30, 2005
Posts: 4
Thank you very much Keerthi and Luci for your replies.
jono
Greenhorn

Joined: Dec 22, 2004
Posts: 25
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

Joined: Mar 30, 2005
Posts: 4
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.
 
 
subject: Re-Post: CMP Entity Beans in Component Diagram