=========================================
== Spring JPetStore sample application ==
=========================================
@author Juergen Hoeller
Based on Clinton Begin's JPetStore (http://www.ibatis.com).
1. MOTIVATION
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 the context definitions "WEB-INF/dataAccessContext-local.xml" respectively
"WEB-INF/dataAccessContext-jta.xml" for details.
Offers two alternative web tier implementations with the same user interface:
one based on Spring's web MVC, and one based on Struts 1.2. 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.
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 is no longer concerned with configuration, resource,
or transaction details.
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.
2. BUILD AND DEPLOYMENT
This directory contains the web app source. For deployment, it needs to be built
with Apache Maven. The only requirements are JDK >=1.5 and Maven >=2.0.8.
Run "mvn package" in this directory to build the war files. The war file
(org.springframework.samples.jpetstore-1.0.0-SNAPSHOT.war) will be created
in the "target" directory.
To execute the web application with its default settings, simply start the
HSQLDB instance in the "db/hsqldb" directory, for example using "server.bat".
For other databases, you'll need to use the corresponding schema and load scripts
in the "db" subdirectories (same as with the original JPetStore). In the local
case, the JDBC settings can be adapted in "WEB-INF/jdbc.properties". With JTA,
you need to set up corresponding DataSources in your J2EE container.
Note that the "WEB-INF/dataAccessContext-*.xml" files might have to be adapted
for certain databases like MS-SQL and Oracle, to use appropriate generation
strategies for order IDs. See the corresponding commented-out DAO definitions
in the context XML files.
A guide to step-by-step deployment, assuming JDK 1.5.x and Tomcat 6.x:
1. Run "mvn package" to generate the WAR file
2. Copy the generated "target/org.springframework.samples.jpetstore-1.0.0-SNAPSHOT.war"
to "<TOMCAT_HOME>/webapps/jpetstore.war"
3. Start HSQLDB via "db/hsqldb/server.bat" or "db/hsqldb/server.sh"
4. Start Tomcat (default port will be 8080)
5. Open "http://localhost:8080/jpetstore" in an Internet browser
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
AspectJInActionSecondEdition-sources (3649个子文件)
BeanMakerAspect.aj 2KB
BeanMakerAspect.aj 2KB
SwingThreadSafetyAspect.aj 2KB
CacheAspect.aj 2KB
AggregateBoundaryEnforcementAspect.aj 2KB
SwingThreadSafetyAspect.aj 2KB
AbstractTransactionManagementAspect.aj 2KB
CacheAspect.aj 2KB
TraceAspect.aj 2KB
DetectEJBViolations.aj 2KB
PricingStrategyDependencyInjectionAspect.aj 2KB
AnnotationDrivenTransactionManagementAspect.aj 2KB
DetectEJBViolations.aj 2KB
LayeringViolation.aj 2KB
OrderSimplificationAspect.aj 2KB
OrderSimplificationAspect.aj 2KB
OrderSimplificationAspect.aj 1KB
SwingThreadSafetyAspect.aj 1KB
TraceAspect.aj 1KB
CacheAspect.aj 1KB
Swing.aj 1KB
DetectSwingSingleThreadRuleViolationAspect.aj 1KB
ReadWriteLockAspect.aj 1KB
TraceAspect.aj 1KB
ExceptionTraceAspect.aj 1KB
ReadWriteLockAspect.aj 1KB
TraceAspect.aj 1KB
TimeTracker.aj 1KB
Swing.aj 1KB
Swing.aj 1KB
Swing.aj 1KB
Swing.aj 1KB
Swing.aj 1KB
TransactionPointcuts.aj 1KB
SystemArchitecture.aj 1KB
IndentationTraceAspect.aj 1KB
IndentationTraceAspect.aj 1KB
IndentationTraceAspect.aj 1KB
IndentationTraceAspect.aj 1KB
TrackingAspect.aj 1KB
InventoryMonitoringAspect.aj 1KB
IndentationTraceAspect.aj 1KB
IndentationTraceAspect.aj 1KB
EJBPointcuts.aj 1KB
EJBPointcuts.aj 1KB
AssociationDemoAspect.aj 1KB
EJBPointcuts.aj 1KB
TraceAspect.aj 1KB
PricingStrategyDependencyInjectionAspect.aj 1KB
PricingStrategyDependencyInjectionAspect.aj 1KB
PricingStrategyDependencyInjectionAspect.aj 1KB
PricingStrategyDependencyInjectionAspect.aj 1KB
InventoryMonitoringAspect.aj 1KB
AsynchronousExecutionAspect.aj 1KB
TraceAspect.aj 1KB
SynchronousExecutionAspect.aj 1KB
AsynchronousExecutionAspect.aj 1KB
RepositoryNullReturnDetector.aj 1KB
LogRoutingDetailsAspect.aj 1KB
LogRoutingDetailsAspect.aj 1KB
AssociationDemoAspect.aj 1KB
SecurityAspect.aj 1KB
AssociationDemoAspect.aj 1KB
CacheMonitoring.aj 1KB
CacheMonitoring.aj 1KB
CacheMonitoring.aj 1KB
AssociationDemoAspect.aj 1KB
InterAdvicePrecedenceAspect.aj 1KB
OrderValidationAspect.aj 1KB
FailureHandlingAspect.aj 1KB
JoinPointTraceAspect.aj 1KB
AnnotationDrivenReadWriteAspect.aj 1KB
AnnotationDrivenReadWriteAspect.aj 1KB
LineItemExposureControlAspect.aj 1KB
SpringPointcuts.aj 1KB
MDCEstablishmentAspect.aj 1KB
ProfilingAspect.aj 1KB
ProfilingAspect.aj 1KB
TraceAspect.aj 1KB
OrderAccessAspect.aj 1KB
SpringPointcuts.aj 1KB
ProfilingAspect.aj 1017B
ProfilingAspect.aj 1017B
SecurityAspect.aj 1004B
SecurityAspect.aj 1004B
SecurityAspect.aj 1004B
LogRoutingDetailsAspect.aj 970B
SystemArchitecture.aj 958B
JDBCPointcuts.aj 935B
InventoryMonitoringAspect.aj 925B
InventoryMonitoringAspect.aj 925B
SlowAnnotationDrivenAsynchronousExecutionAspect.aj 913B
ContextIndentationAspect.aj 910B
LogUIActivitiesAspect.aj 896B
LogUIActivitiesAspect.aj 894B
LogUIActivitiesAspect.aj 894B
LogUIActivitiesAspect.aj 894B
LogUIActivitiesAspect.aj 894B
SaveEnergyAspect.aj 894B
SaveEnergyAspect.aj 894B
共 3649 条
- 1
- 2
- 3
- 4
- 5
- 6
- 37
资源评论
angelzhanmaster
- 粉丝: 0
- 资源: 39
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功