• 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

Petstore 2.0

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I am working on part 2 assignment and so am first trying to understand the architecture of Petstore 2.0. It doesnot use any of the design patterns like DAO, Service Locator and the DTO which would otherwise would be normally expected to be seen in a JEE application.

The PetStore uses a CatalogFacade which is a POJO and stored in the ServletContext for all usecases to lookup. This Facade interacts with the JPA Entities. Thus the Entities are hidden from the servlets and JSF managed objects.

Is this architecture scalable and performant? Since my assignment does not require a Swing front end , I was thinking of modelling my assignment on the blueprint guidelines here for a web-only application
https://blueprints.dev.java.net/bpcatalog/ee5/persistence/webfacade.html
https://blueprints.dev.java.net/bpcatalog/ee5/persistence/webonlyapp.html.

I am also wondering about the utility of SFSB in a Shopping Cart. We can have a SLSB or a POJO facade as above injecting an EntityManager which can store the state of the cart in the database rather than as an instance variable which is persisted at the time of removal in a SFSB.

Please let me know your thoughts..
[ July 18, 2008: Message edited by: Muddu Krishna ]
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Muddu,

One quick question, I am also planning to start part II, Do I need to purchase the "CX-310-301A" from SUN site first or I can download the assignment for https://www.certmanager.net site and start?

Its confusing because in the above site I there was link to download the assignment.

Thanks,
Arvn
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Arvn", please check your private messages for an important administrative matter.
 
Muddu Krishna
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You will have to purchase the voucher first. Only then you will get download rights.
 
reply
    Bookmark Topic Watch Topic
  • New Topic