• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Why don't use delegate PetStore?

 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
expectation is the root of all heartache - shakespeare. tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic