|
From: <jue...@we...> - 2003-12-02 11:52:31
|
Everybody, =20 I've just finished an intial version of our JPetStore adaptation. = Quoting myself from the readme: =20 <quote> Based on Clinton Begin's JPetStore (http://www.ibatis.com = <http://www.ibatis.com> ). =20 Features a Spring-managed middle tier with iBATIS Database Layer as data = access strategy, in combination with Spring's transaction and DAO abstractions. Can work with local JDBC transactions or JTA, with the latter on two = databases. Uses the same data model and demo contents as the original JPetStore. See "WEB-INF/applicationContext.xml" for details. =20 Offers two alternative web tier implementations with the same user = interface: one based on Spring's web MVC, and one based on Struts 1.1. The latter = is close to the original JPetStore but reworked for JSTL, to make the JSP = implementations as comparable as possible. See "WEB-INF/web.xml", = "WEB-INF/petstore-servlet.xml", and "WEB-INF/struts-config.xml" for details. =20 Compared to the original JPetStore, this implementation is significantly improved in terms of internal structure and loose coupling: Leveraging = Spring's application context concept, there's a central place for wiring = application objects now. The most notable improvement is the former PetStoreLogic, = now called PetStoreFacade: It it not concerned with transaction details = anymore. =20 Note that the Spring-based web tier implementation is deliberately = similar to the Struts-based one and does not aim to improve in terms of in-place = error messages or the like. The inclusion of two web tier alternatives = outlines the differences as well as the similarities in the respective programming = model, and also illustrates the different configuration styles. </quote> =20 Before I commit this initial version, I'd like to settle on a directory = name: Should we use "samples/jpetstore", as it is still pretty close to the = original JPetStore, and mainly serves for comparison with Clinton's version? I'm inclined to = adopt that: Then we can still implement a clean-room own PetStore in the future, if = we feel the need to, naming that other implementation "spetstore" or whatever. =20 Juergen =20 |