hjpestore 设计实现系列

来源:互联网 发布:日本二战海军知乎 编辑:程序博客网 时间:2024/06/05 06:54

关于本文

  • 本文是一篇 基于Hibernate Spring 开源框架的JAVA 企业应用的设计与实现说明书

  • 本文采用开源技术: 从基础的 load balancer Base64工具性的代码

  • 本文面象一线工程师,内容布满源代码

  • 本文不适合 JAVA 初学者,起码要使用 Spring, Hibernate 写过至少一个实际的项目

  • 本文不会是老练的设计师的菜肴

  • 本文以 hjpetstore2.0 为例展开

 

 

获取Hjpetstore源代码

check out hjpetstore2 source code


Hjpetstore配置与部署

Assumptions:

  1. you have check out hjpetstore2 source code

  2. you have installed maven

  3. you have installed glassfish and set it up according to Create GlassFish JNDI resource for hjpetstore 2.0

  4. you have completed the task described in hjpetstore2.0/src/main/resources/conf/maven-readme.txt
    (install two jar into local maven repository as they are not available in open community maven repositories)


Steps:

  1. cd to the checkout folder
    cd /home/pprun/cvsout/hjpetstore/hjpetstore2/

  2. mvn clean package -Dmaven.test.skip=true
    depends on the status of your network, it may take a while to finish at first time

 

  1. start GlassFish default domain
    /home/pprun/java/glassfish-3.0.1/bin/asadmin start-domain

 

  1. deploy it by:
    pprun@pprun-laptop:/home/pprun/java/glassfish-3.0.1/bin/asadmin deploy target/hjpetstore.war

 

  1. access the application in browser: http://localhost:8080/


    BTW, to
    undeploy it:
    pprun@pprun-laptop:asadmin undeploy

原创粉丝点击