Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why don't use delegate PetStore?

 
Jose Jim´┐Żnez
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Petstore application use a ClientSessionController how proxy with methods:
handleEvent , getCustomerEJB , .... ) is said that :

1) execute action
2) Have methods that return references to facades

Then .... don't it's necessary use bussines delegate for each facade ?? the client use directly the refences to facades ???

What do you thinks about this ??

Thanks
 
Vishwa Bandhu
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To me Petstore is not the best solution to a problem but it only demonstrates J2EE capabilities (architectural possibilities?) with whatever design patterns at hand. Not necessary that the used pattern is required. It talks all about session facade and then exposes the customer entity bean through shoppincart statefull session bean. Their excuse is they all use local interfaces. While for a small application this is an overkill to use so many session facades and statefull session beans, for a large application this strong coupling between servlet container and the ejb container won't be a nice thing. But when you seperate them, then you deal with remote interfaces or end up redesining your application.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic