• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic