Topic: 给对PetStore已有认识的人一个礼物--xPetstore

  Print this page

1.给对PetStore已有认识的人一个礼物--xPetstore Copy to clipboard
Posted by: chaos
Posted on: 2003-03-05 17:15

1.直接进入 http://xpetstore.sourceforge.net/index.html
....-源码网上已由java2html处理,可直接looklook

2.原来如此
xPetstore 3.0 has been released. xPetstore is a re-implementation of the Sun Microsystem PetStore based on xDoclet( http://xdoclet.sourceforge.net ).

This demo application demonstrates how to use open source frameworks to build WODRA (Write Once, Deploy and Run Anywhere) J2EE applications.

xPetstore has been implemented using 2 differents approaches:
....- A pure EJB solution based on JSP, Struts, Sitemesh, EJB 2.0 and CMP 2.0
....- A Servlet solution based on Velocity, WebWork, Sitemesh, POJO and Hibernate.

Both solutions have been deployed and tested on the following platforms:
....- Operating System:
..........o Linux
..........o Windows
....- Application Servers:
..........o JBoss 3.x
..........o WebLogic 7.x
....- Databases:
..........o Hypersonic SQL
..........o PostgreSQL
..........o SapDB
..........o MySQL
..........o Oracle
..........o MS SQL Server

Checkout xPetstore at: http://xpetstore.sourceforge.net

xPetstore is also a great sample to application to learn from. With xPetstore, you will learn how to use xDoclet to:

....- Generate EJB 2.0 files:
..........o Home and Business interfaces (local and remotes) ejb-jar.xml
..........o Application server specific deployment descriptors
..........o Value Objects classes
....- Use J2EE 1.3 features like CMP 2.0 and CMR
....- Generate web deployment descriptors for:
..........o Servlets
..........o Web Filters
..........o JSP Taglibs
....- Generate Struts deployment descriptors
....- Generate Webwork deployment descriptor
....- Use other web template technology like Velocity
....- Use Hibernate as persistence layer
....- Use xDoclet merge points to add extra stuff
....- Test J2EE application using JUnitEE framework

3.七嘴八舌-- http://www.theserverside.com/home/thread.jsp?thread_id=18161#75619

4.精彩吧

2.Re:给对PetStore已有认识的人一个礼物--xPetstore [Re: chaos] Copy to clipboard
Posted by: Biubiu
Posted on: 2003-03-07 19:14

是原创吗?Smile

3.Re:给对PetStore已有认识的人一个礼物--xPetstore [Re: Biubiu] Copy to clipboard
Posted by: chaos
Posted on: 2003-03-08 22:35

Biubiu wrote:
是原创吗?Smile

并非我原创 Clown
我是在订阅的theserverside.com 的news上得知的
xdoclet利用原本javadoc处理特定属性的特性,再扩充,使得xdoclet
能根据tag name 获得除了java source code外的额外描述,而能自动
配置出整体应用程序的执行环境(即处理meta-data)。所以大量减少源
码的编写。另外由于.Net 原本即支持这种attribute-oriented programming
的特性,所以在可能的未来jsdk1.5应会加入此一特性,甚至更进一步将
attribute embedded in .class来大幅扩充java runtime环境的能力(别问我,我也不懂!!)
看了xPetstore才渐渐了解xdoclet的潜力,挺好玩的。

4.Yet Another PetStore [Re: chaos] Copy to clipboard
Posted by: why
Posted on: 2003-03-09 00:04

JPetStore 2.1.0 *NEW (March 5, 2003)*
http://www.ibatis.com/jpetstore/jpetstore.html

Just 2 weeks after Microsoft and TMC released their new study, a new, slimmer, faster JPetStore will once again push Microsoft's .Net marketing agenda aside. The new JPetStore has the following qualities:

- Only 2215 lines of code (using Microsoft's own CLOC utility -- only 119 line difference)
- XA compliant distributed transaction (separate DB for orders etc.) [now coded through the JTA API]
- Web Service for order lookups
- Catalogue/favourites paging (i.e. Next/Prev pages)
- Declarative caching
- Business logic layer (noun/verb separation)
- Implemented (refactored) in about 40-50 hours total developer time.
- It still uses a better overall design that the .Net Pet Shop (consistent design, no public fields, no DB details in source code etc.)

5.Re:给对PetStore已有认识的人一个礼物--xPetstore [Re: chaos] Copy to clipboard
Posted by: richardluo
Posted on: 2003-03-10 10:08

什么好东东,有什么改进??谢谢!


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923