This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Using a business delegate within the class diagram for assignment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Using a business delegate within the class diagram for assignment" Watch "Using a business delegate within the class diagram for assignment" New topic
Author

Using a business delegate within the class diagram for assignment

Joe O'Toole
Ranch Hand

Joined: Mar 02, 2009
Posts: 51
Hi

Support I have a stateless session bean in my class diagram. My controllers are decoupled from the stateless session bean via the use of a business delegate. If the session bean exposes operations/methods: oper_1,...,oper_N - do people think it is overkill to have the same method names in the delegate. Personally, think it makes things look very cluttered

Thanks
Joe
Marcelo Ortega
Ranch Hand

Joined: May 31, 2005
Posts: 519

I had a similar issue. But the fact is that a business delegate shields clients from business services, so the methods may or may not have the same name. It may look cluttered / redundant, but it's not wrong. E.g. you may have a method in your BD named fetchUser(Long id), which calls a session bean method named searchUserById(Long). Or it may have the same name. Depends on your naming convention and if you like the adopted approach.


SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJD, SCEA/OCMJEA

Live life to an interface, not an implementation!
Joe O'Toole
Ranch Hand

Joined: Mar 02, 2009
Posts: 51
Thanks Marcelo
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using a business delegate within the class diagram for assignment
 
Similar Threads
Representation of SessionBeans in UML Sequence Diagrams
Procedure Oriented or Object Oriented approach in session bean?
Question regarding Business Delegate, Stateless Session Bean and Entity Bean in SCEA Part 2
Business Delegate/Session Facade Question
Club Business Delegate with Command Pattern, pros-cons