• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pattern for the Manager SLSBs used in Cad diagrams

 
Dannyf Soon
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, Ranchers,

Anybody can tell me what pattern is used for the two SLSBs BidManager and AvailabilityManager in Cad Class Diagram & Sequqnce Diagram in Chapter 9? From my point of view, it's neither Business Delegate nor Session Facade. Any comments on this?

BTW, how many design patterns or J2EE/JEE Core patterns are used in Cad Diagrams? Front Controller, DAO, what else patterns can you identify?

Looking forward to your response!

-Danny
 
kumar naresh
Ranch Hand
Posts: 120
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One more can be added ie Transfer Object (ValueObject) pattern. Objects like Bidder, Seller, Wood, Steel, Concrete.
 
Rishi Shehrawat
Ranch Hand
Posts: 218
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bidder, Seller are entities, so it is not transfer object pattern. I think that transfer object is a anti-pattern that we were forced to use while working with EJB 2.0 entities. Thankfully with ORM/JPA this pattern is no longer required.

 
Dannyf Soon
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rishi, kumar,

I appreciate your responses. Thanks!
 
Mario Kerk
Greenhorn
Posts: 10
Android Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dannyf Soon wrote:Anybody can tell me what pattern is used for the two SLSBs BidManager and AvailabilityManager in Cad Class Diagram & Sequqnce Diagram in Chapter 9? From my point of view, it's neither Business Delegate nor Session Facade. Any comments on this?


I'm not sure I agree. I think the Manager classes ARE an example of the Session Facade pattern. I re-read the description of the pattern in the (older) version of the "core J2EE patterns" and I think they match the pattern: The Manager classes "provide a simpler interface to the client by hiding all the complex interactions between other business components" (such as the DAOs in this case) and "reduce the number of business objects that are exposed to the client" (the web layer in this case).




 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic