https://github.com/pizirun/hjpetstore2.0
- 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.
-
Setup before run
- Download NetBeans with GlassFish and install, if you still have not
- Download Mysql and install, if you still have not
- Mysql intializaton, see ${hjpetstore2.0}/src/main/resources/conf/db/mysql/mysql_readme.txt
- install maven, if you still have not
- 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
-
Glassfish configurations
-
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
-
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
-
Create XA datasource 'jdbc/hjpetstore', see here: http://hi.baidu.com/quest2run/blog/item/4cc48eff5e6e368fb801a009.html
-
Create JMS resource, see here: http://hi.baidu.com/quest2run/blog/item/4cc48eff5e6e368fb801a009.html
-
-
Launch the project (assume you downloaded the hjpetstore 2.0) In Netbeans, right click the project -> run
Let me know if you have questions