File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Part 2/Assignment Question 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 "Part 2/Assignment Question" Watch "Part 2/Assignment Question" New topic
Author

Part 2/Assignment Question

Joe O'Toole
Ranch Hand

Joined: Mar 02, 2009
Posts: 51
Hi

I am trying to do the class diagram for my assignment.

The elements in my class diagram are modeled as entities or sessions(@entity and @session). Based on the requirements in my assignment I would like to have a number of "helper" type classes for the sessions. I understand the application service pattern to be "helpers" to sessions. Hence, was wondering if I could stereotype these classes with @application service. Hence I would end up with @entity, @session, @application service?

Thanks in advance

Joe
ntumba lobo
Ranch Hand

Joined: Oct 21, 2008
Posts: 180
Instead of using @Session I would rather use the more specific @Stateful and @Stateless, you could lose marks by not being specific enough.

As for the @application I would not personaly use it, I would stick to the default stereotypes @Entity, @Stateful, @Stateless, @MDB and the one for the JSF managed bean (@Managed ?) for the real component classes managed by the container. Any other other class that is not a component managed by the container is a regular class even if it comes from a JEE pattern.

Based on what I did in my own assignment ;-)

Good luck


SCJP 5 , SCWCD 5, SCEA 5
Sadanandam Kurapati
Ranch Hand

Joined: Sep 09, 2011
Posts: 78

Hi, I completely second Ntumba's suggestions. Be specific about statefull(@Statefull) or stateless(@Stateless) for session beans and also specify @Entity for entities.
Check this thread for more details on stereotypes.

Regards,
Sadanand


SCJP1.5, SCWCD5, SCEA5
Joe O'Toole
Ranch Hand

Joined: Mar 02, 2009
Posts: 51
Great - thanks folks
Joe O'Toole
Ranch Hand

Joined: Mar 02, 2009
Posts: 51
Sorry - had 1 more question on this general theme.

In Cade's example, everywhere he has a dependency he includes the text "uses" on the dependency line. I find this makes my diagram very cluttered looking. Just wondering if people typically follow that approach

Thanks
Joe
Murali Ranga
Ranch Hand

Joined: Dec 16, 2011
Posts: 38
In my design whereever the association Relationship between the classes I used <<uses>>, otherwise I used other
UML Relationships
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Part 2/Assignment Question