Skip to content

Re-architect my hjpetstore1.0 Spring Framework Sample project (https://github.com/pizirun/hjpetstore1) by using the latest open-source frameworks and tools: * JQuery fisheye * kaptcha * Spring MVC 3 * Spring Security * Hibernate 3.5 * JBoss Cache 3 (alternative infinispan) * JMS External Integration * GlassFish 3 cluster * Mysql fail-over and cl…

License

pizirun/hjpetstore2.0

Repository files navigation

Hibernate Jpetstore 2.0 (hjpetstore2)

https://github.com/pizirun/hjpetstore2.0

  1. INTRODUCTION Re-architect my hjpetstore1.0 Spring Framework Sample project (https://github.com/pizirun/hjpetstore1) by using the latest open-source frameworks and tools:
    • JQuery fisheye
    • kaptcha
    • Spring MVC 3
    • Spring Security
    • Hibernate 3.5
    • JBoss Cache 3 (alternative infinispan)
    • JMS External Integration
    • GlassFish 3 cluster
    • Mysql fail-over and cluster
    • Zabbix / Zapcat

The intension is to guide younger architects to design a java EE application by making use of latest open-source techniques at hand, with the serious flexibility and scalability in mind as well as reasonable performance and security.

  1. Setup before run

    1. Download NetBeans with GlassFish and install, if you still have not
    2. Download Mysql and install, if you still have not
    3. Mysql intializaton, see ${hjpetstore2.0}/src/main/resources/conf/db/mysql/mysql_readme.txt
    4. install maven, if you still have not
    5. several artifacts missed in community maven repository, we need to import them into your local repository, see ${hjpetstore2.0}/src/main/resources/conf/maven-readme.txt
  2. Glassfish configurations

    1. JGroup ip v6 issue: (only linux) change glassfish to disable ipv6, otherwise jgroup will be failed. a. start up glassfish admin console if still not b. JVM setting -> JVM options -> add JVM option: -Djava.net.preferIPv4Stack=true

    2. Mysql connectorJ a) Download Connector/J, the MySQL JDBC driver (e.g., Connector/J 5.1.x), which can be found here: http://dev.mysql.com/downloads/connector/j/ b) added mysql-connector-java-xxx.jar into glassfish-3.0.1/glassfish/lib for datasource setup

    3. Create XA datasource 'jdbc/hjpetstore', see here: http://hi.baidu.com/quest2run/blog/item/4cc48eff5e6e368fb801a009.html

    4. Create JMS resource, see here: http://hi.baidu.com/quest2run/blog/item/4cc48eff5e6e368fb801a009.html

  3. Launch the project (assume you downloaded the hjpetstore 2.0) In Netbeans, right click the project -> run

Let me know if you have questions

Pprun doublepi@qq.com https://github.com/pizirun

About

Re-architect my hjpetstore1.0 Spring Framework Sample project (https://github.com/pizirun/hjpetstore1) by using the latest open-source frameworks and tools: * JQuery fisheye * kaptcha * Spring MVC 3 * Spring Security * Hibernate 3.5 * JBoss Cache 3 (alternative infinispan) * JMS External Integration * GlassFish 3 cluster * Mysql fail-over and cl…

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published