This week's book giveaway is in the Features new in Java 9 forum.
We're giving away four copies of Java 9 Revealed and have Kishori Sharan on-line!
See this thread for details.
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Why don't use delegate PetStore?  RSS feed

 
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!